export type CustomValidationFunction = (schema: TSchema, value: unknown) => boolean; /** Provides functions to create user defined types */ export declare namespace Custom { /** Clears all user defined types */ function Clear(): void; /** Returns true if this user defined type exists */ function Has(kind: string): boolean; /** Sets a validation function for a user defined type */ function Set(kind: string, func: CustomValidationFunction): void; /** Gets a custom validation function for a user defined type */ function Get(kind: string): CustomValidationFunction | undefined; }