import type { Runtype } from 'runtypes'; import * as Runtypes from 'runtypes'; import type { RuntypeBase } from 'runtypes/lib/runtype'; import type { FieldDefinition, SuccessHandler } from './merge-props.types'; export declare const withType: (runtype: Runtype) => (fields: KeyType_1[]) => FieldDefinition[]; export declare const withStringTypes: (fields: KeyType_1[]) => FieldDefinition[]; export declare const passThroughSuccess: () => SuccessHandler; export declare const tryOrDefault: (fn: (...a: A) => B, defaultValue: () => B) => (...a: A) => B; /** * a typeguard to check if a given runtype is of type record * * @param input * @return */ export declare const isRecordRuntype: (input: Runtype) => input is Runtypes.Record> & TargetType, false>; /** * a typeguard to check if a given runtype is of type dictionary * * @param input * @return */ export declare const isDictionaryRuntype: (input: Runtype) => input is Runtypes.StringDictionary>;