import { TypeFlags } from '../type-flags'; import { Type, ISimpleType } from '../Type'; import { IContext, IValidationResult } from '../type-checker'; import { ObjectNode } from '../../core/ObjectNode'; import { INode } from '../../core/interface'; export declare class Literal extends Type { readonly shouldAttachNode: boolean; readonly value: any; readonly flags: TypeFlags; constructor(value: any); instantiate(parent: ObjectNode | null, subpath: string, environment: any, snapshot: T): INode; describe(): string; isValidSnapshot(value: any, context: IContext): IValidationResult; } export declare function literal(value: S): ISimpleType;