import { Constructor, Narrowable, Tuplize } from './magic'; export declare type F = (a?: any) => T; export declare type O = { [k: string]: F; }; export declare type AR = T extends F[] ? U : never; export declare type RR = RR1; declare type RR1 = T extends [F] ? [A1] : RR2; declare type RR2 = T extends [F, F] ? [A1, A2] : RR3; declare type RR3 = T extends [F, F, F] ? [A1, A2, A3] : RR4; declare type RR4 = T extends [F, F, F, F] ? [A1, A2, A3, A4] : RR5; declare type RR5 = T extends [F, F, F, F, F] ? [A1, A2, A3, A4, A5] : RR6; declare type RR6 = T extends [F, F, F, F, F, F] ? [A1, A2, A3, A4, A5, A6] : never; export declare type RT> = { [k in keyof T]: ReturnType; }; export declare const opSymbol: unique symbol; declare function optional>(typ: T): F>; export declare class Z { static undefined: F; static null: F; static string: F; static number: F; static boolean: F; static literal: (typ: T) => (val: T) => T; static optional: typeof optional; static o: typeof optional; static array: >(typ: T) => (ary: any) => ReturnType[]; static object: >(typeobj: T) => >(obj: S) => RT; static oneOf: []>(...typs: T) => (val: any) => AR; static tuple: [] & Tuplize>(typ: T) => (ary: any) => RR1; } export declare namespace Z { type z = typeof Z.undefined | typeof Z.null | typeof Z.string | typeof Z.number | typeof Z.boolean | typeof Z.literal | typeof Z.optional | typeof Z.array | typeof Z.object | typeof Z.oneOf | typeof Z.tuple; } export declare class G { [k: string]: F; } export declare function I(def: T): Constructor> & { _: >(obj: S) => RT; _type: T; }; export {};