import type { JsonValue } from '@skyleague/axioms/types'; import { NodeTrait } from '../../cst/mixin.js'; import type { Node } from '../../cst/node.js'; import type { SchemaOptions } from '../base.js'; export type ConstOptions = object; export declare class ConstType extends NodeTrait { _type: "const"; _options: ConstOptions; const: unknown; infer: T; input: T; constructor(value: unknown, options: SchemaOptions); } export interface ConstType extends Node, NodeTrait { } /** * Create a new `EnumType` instance with the given options. * * ### Example * ```ts * $const(1) * * $const("foobar") * ``` * * @param options - Additional options to pass to the constant. * * @group Primitives */ export declare function $const(value: T, options?: SchemaOptions): ConstType;