import type { DefaultPropOptions, PropOptions, RequiredPropOptions } from '../types'; import type { Validator } from '../validators'; interface FunctionPropOptionsGenerator { optional: PropOptions & { default?: () => T; }; nullable: DefaultPropOptions & { default?: (() => T) | null; }; required: RequiredPropOptions & { default?: () => T; }; } /** * Allows any function. No further runtime validation is performed by default. * * @template T - can be used to restrict the type to a specific function signature at compile time. * @param validator - Optional function for further runtime validation; should return `undefined` if valid, or an error string if invalid. */ export declare const functionProp: (validator?: Validator) => FunctionPropOptionsGenerator; export {};