import { type StaticParser, type StaticEnsure } from './static'; import { type IParser, type IProperties, type IMapping } from './parser'; export type StaticUnion = StaticEnsure> : Result>; export interface IUnion extends IParser { type: 'Union'; parsers: IParser[]; } export declare function Union>>(parsers: [...Parsers], mapping: Mapping): IUnion>; export declare function Union(parsers: [...Parsers]): IUnion>; /** True if the value is a Union parser */ export declare function IsUnion(value: unknown): value is IUnion; export declare function ParseUnion(context: Context, parsers: [...Parsers], input: string): [] | [unknown, string];