/** * Handler function type. */ export declare type CastHandler = "String" | "Boolean" | "Integer" | "Float" | "Number" | "Date" | ((v: any) => any); /** * Model property type interface. */ export interface CastConfig { handler?: CastHandler; array?: boolean; } /** * Converts the provided value into desired type. * @param value Value or an object. * @param handler Cast handler function or type name. * @param array Set to `true` to automatically convert to array. */ export declare function cast(value: any, handler: CastHandler, array: boolean): any; //# sourceMappingURL=parser.d.ts.map