import { type ConstExpr } from '@skyleague/axioms'; import type { NodeTrait } from '../../cst/mixin.js'; import { Node } from '../../cst/node.js'; import type { SchemaOptions } from '../base.js'; export declare class NullableType extends Node { _type: "nullable"; _children: [Node]; infer: T['infer'] | null; input: T['input'] | null; constructor(item: T, options?: SchemaOptions); unwrap(): T; static from(item: T, options?: SchemaOptions): NullableType; } export interface NullableType extends Node, NodeTrait { } /** * Create a new `ThereforeNode` instance with the given options. * * ### Example * ```ts * $object({ * foo: $nullable($string) * }) * ``` * * @param literal - The schema to make a nullable property. * * @group Modifiers */ export declare function $nullable(literal: ConstExpr): NullableType;