@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
19 lines (18 loc) • 955 B
TypeScript
import type { ByteSource } from '@enonic-types/lib-value';
import { BinaryAttachment } from '../implementation/util/BinaryAttachment';
import { GeoPoint } from '../implementation/util/GeoPoint';
import { Instant } from '../java/time/Instant';
import { LocalDate } from '../java/time/LocalDate';
import { LocalDateTime } from '../java/time/LocalDateTime';
import { LocalTime } from '../java/time/LocalTime';
import { Reference } from '../implementation/util/Reference';
export declare class LibValue {
static binary(name: string, stream: ByteSource): BinaryAttachment;
static geoPoint(lat: number, lon: number): GeoPoint;
static geoPointString(value: string): GeoPoint;
static instant(value: string | Date): Instant;
static localDate(value: string | Date): LocalDate;
static localDateTime(value: string | Date): LocalDateTime;
static localTime(value: string | Date): LocalTime;
static reference(value: string): Reference;
}