/** * Function types for prepare and consume operations */ export type CustomPrepareFunction = (value: unknown) => unknown; export type CustomConsumeFunction = (value: unknown) => unknown; export type DefaultPrepareFunction = (key: string, value: unknown, nullable?: boolean) => T; export type DefaultConsumeFunction = (key: string, value: unknown, nullable?: boolean) => T; /** * Utility class for building chained prepare and consume functions. * * The chaining order reflects the data flow: * - Prepare chain: Default → Custom (data flows TO database) * - Consume chain: Custom → Default (data flows FROM database) */ export declare class PrepareConsumeChainBuilder { /** * Creates a chained prepare function that calls default first, then custom. * * @param propertyKey - The property name for error context * @param nullable - Whether the field accepts null values * @param defaultPrepare - The default prepare function from decorator * @param customPrepare - The custom prepare function from options * @returns A chained prepare function or undefined if no functions provided */ static chainPrepare(propertyKey: string, nullable: boolean, defaultPrepare?: DefaultPrepareFunction | undefined, customPrepare?: CustomPrepareFunction | undefined): CustomPrepareFunction | undefined; /** * Creates a chained consume function that calls custom first, then default. * * @param propertyKey - The property name for error context * @param nullable - Whether the field accepts null values * @param defaultConsume - The default consume function from decorator * @param customConsume - The custom consume function from options * @returns A chained consume function or undefined if no functions provided */ static chainConsume(propertyKey: string, nullable: boolean, defaultConsume?: DefaultConsumeFunction, customConsume?: CustomConsumeFunction): CustomConsumeFunction | undefined; }