/** * @file transforms.ts * @description Primitive decorators: @Get, @Set, @Validate. Composed: @Default, @NotNull, @Name * @description Decoradores primitivos: @Get, @Set, @Validate. Compuestos: @Default, @NotNull, @Name */ /** * @description Output pipeline -- transforms value on read * @description Pipeline de salida -- transforma el valor al leer * @param fn (current) => any */ export declare const Get: (...params: any[]) => (target: any, propertyKey: string | symbol) => void; /** * @description Input pipeline -- transforms value on write * @description Pipeline de entrada -- transforma el valor al escribir * @param fn (next, current) => any */ export declare const Set: (...params: any[]) => (target: any, propertyKey: string | symbol) => void; /** * @description Validates value on write. Returns true to pass, or string as error message. * @description Valida valor al escribir. Retorna true para pasar, o string como mensaje de error. * @param validators (next, current) => true | string */ export declare const Validate: (...params: any[]) => (target: any, propertyKey: string | symbol) => void; /** * @description Assigns default value when nullish. Lives in set pipeline. * @description Asigna valor default cuando es nullish. Vive en el set pipeline. * @param val Static value or () => value */ export declare const Default: (val: any) => (target: any, propertyKey: string | symbol) => void; /** * @description Rejects null, undefined, and empty string. Composed from @Validate. * @description Rechaza null, undefined y string vacĂ­o. Compuesto desde @Validate. * @param msg Optional error message */ export declare const NotNull: (msg?: string) => (target: any, propertyKey: string | symbol) => void; /** * @description Renames table (on class) or column (on property) * @description Renombra tabla (en clase) o columna (en propiedad) * @param label Custom name */ export declare function Name(label: string): ClassDecorator & PropertyDecorator;