import type { Schema } from '../base.ts'; import { SCHEMA_KIND } from '../base.ts'; /** * Schema for validating exact literal values. * * @template T - The exact value type * * @example * ```typescript * const adminSchema = s.literal('admin'); * adminSchema.parse('admin'); // 'admin' * adminSchema.parse('user'); // throws ValidationError * ``` */ export declare class LiteralSchema implements Schema { private value; readonly [SCHEMA_KIND] = "LiteralSchema"; description?: string; private parseMethods; constructor(value: T); readonly '~standard': { version: 1; vendor: string; validate: (input: unknown) => import("@agentuity/core").StandardSchemaV1.FailureResult | import("@agentuity/core").StandardSchemaV1.SuccessResult; types: { input: T; output: T; }; }; describe(description: string): this; optional(): import("../index.ts").OptionalSchema; nullable(): import("../index.ts").NullableSchema; parse: (this: Schema, value: unknown) => T; safeParse: (this: Schema, value: unknown) => import("../base.ts").SafeParseResult; } /** * Create a schema for an exact literal value. * * @param value - The exact value to match * * @example * ```typescript * const adminRole = s.literal('admin'); * const maxValue = s.literal(100); * const enabled = s.literal(true); * ``` */ export declare function literal(value: T): LiteralSchema; //# sourceMappingURL=literal.d.ts.map