declare type TFunction = () => void; export default function castFunction(value: any, defaultValue?: TFunction): TFunction; export {};