import type { Schema } from "./Schema.js"; import { ThroughSchema, type ThroughSchemaOptions } from "./ThroughSchema.js"; /** Allowed options for `NullableSchema` */ export interface NullableSchemaOptions extends ThroughSchemaOptions { /** Default value (defaults to `null`). */ readonly value?: T | null; } /** Validate a value of a specific type or `null`. */ export declare class NullableSchema extends ThroughSchema { readonly value: T | null; constructor({ value, ...options }: NullableSchemaOptions); validate(unsafeValue?: unknown): T | null; } /** Create a new nullable schema from a source schema. */ export declare const NULLABLE: (source: Schema) => NullableSchema;