import { ParseSchema } from "../parse-schema"; import { Intersection, Union, Exclusion } from "../meta-types"; import { HasKeyIn } from "../utils"; import { MergeSubSchema } from "./utils"; export declare type ParseIfThenElseSchema> = HasKeyIn extends true ? Intersection, ParseSchema> : ApplyIfThenElse; declare type ApplyIfThenElse : never> = Union<("then" extends keyof S ? Intersection, ParseSchema>> : ParseSchema) | Exclusion<"else" extends keyof S ? ParseSchema> : ParseSchema, ParseSchema>>; export {};