import { type ConstExpr } from '@skyleague/axioms'; import type { Options } from 'ajv'; import type { GenericOutput, TypescriptOutput } from '../../cst/cst.js'; import { type Hooks, Node } from '../../cst/node.js'; import type { Intrinsic } from '../../cst/types.js'; import { type ValidatorInputOptions, type ValidatorOptions } from './types.js'; export declare function ajvOptions(node?: Node): Options; export declare class ValidatorType extends Node { _type: "validator"; _children: [Node]; _options: ValidatorOptions; formats: string[] | undefined; infer: T['infer']; intrinsic: Intrinsic; protected constructor(node: ConstExpr); _hooks: Partial; static _root(symbol: Node): Node; get _output(): (TypescriptOutput | GenericOutput)[]; } /** * Enable the generation of validator code to this schema. * * ### Example * ```ts * $validator( * $object({ * foo: $string, * }) * ) * ``` * * @param node - The schema to enable the validator for. * @param options - The validator options. * * @group Modifiers */ export declare function $validator(node: T, options?: ValidatorInputOptions): T;