import { Runtype, OptionalRuntype, Collapse, Unpack } from './runtype'; export declare function getRecordFields(r: Runtype): { [key: string]: Runtype; } | undefined; /** * An object with defined keys and values. * * In contrast to typescript types, objects checked by this runtype will fail * if they have any additional keys (strict checking) not specified in * typemap. * * Keeps you save from unwanted propertiers and evil __proto__ injections. */ export declare function record | OptionalRuntype; }, OptionalKeys extends keyof Typemap = { [K in keyof Typemap]: Typemap[K] extends OptionalRuntype ? K : never; }[keyof Typemap]>(typemap: Typemap): Runtype]: Unpack; } & { [K in OptionalKeys]?: Unpack; }>>; /** * Like record but ignore unknown keys. * * Returns a new object that only contains the keys specified in the typemap. * Additional keys are ignored. * * Keeps you save from unwanted propertiers and evil __proto__ injections. */ export declare function sloppyRecord | OptionalRuntype; }, OptionalKeys extends keyof Typemap = { [K in keyof Typemap]: Typemap[K] extends OptionalRuntype ? K : never; }[keyof Typemap]>(typemap: Typemap): Runtype]: Unpack; } & { [K in OptionalKeys]?: Unpack; }>>;