import type { ConstExpr } from '@skyleague/axioms'; import { NodeTrait } from '../../cst/mixin.js'; import { Node } from '../../cst/node.js'; import type { SchemaOptions } from '../base.js'; type TupleToInfer = { [K in keyof Elements]: Elements[K]['infer']; }; type TupleToInput = { [K in keyof Elements]: Elements[K]['input']; }; type ConstExprTuple = { [K in keyof Elements]: ConstExpr; }; export interface TupleOptions { rest?: Rest; } export declare class TupleType extends NodeTrait { _type: "tuple"; _children: Node[]; _isCommutative: boolean; _options: TupleOptions; items: Node[]; infer: Rest extends { infer: unknown; } ? [...TupleToInfer, ...Rest['infer'][]] : TupleToInfer; input: Rest extends { infer: unknown; } ? [...TupleToInput, ...Rest['input'][]] : TupleToInput; constructor(elements: ConstExprTuple, options: SchemaOptions, TupleToInfer>); rest(rest: ConstExpr): TupleType; } /** * Create a new `TupleType` instance with the given options. * * ### Example * ```ts * $tuple([$integer, $string]) * ``` * * @param items - The items in the tuple. * @param options - Additional options to pass to the tuple. * * @group Primitives */ export declare function $tuple(items: ConstExprTuple, options?: SchemaOptions, TupleToInfer>): TupleType; export {};