import { z } from 'zod'; export declare function semanticallyCleanObject(obj: T, id?: string): T | undefined; export declare function isEmptyObjectOrArray(arg: unknown): boolean; export declare function deepDiff(source: T | undefined, target: T | undefined): T | undefined; /** * Marks a zod schema as a password field so it gets masked when logged. * @param schema The zod schema to mark * @returns The same schema with `x-password: true` merged into its metadata */ export declare function password(schema: T): T; /** * Masks sensitive values in an object for safe logging: * - strings of the fields marked `x-password` in the schema, * - every value at one of the masked paths, whatever its type, * - every string equal to one of the masked values, wherever it is (e.g. in a diff that does not keep the config shape). * @param value The value to mask (can be object, array, or primitive) * @param schema JSON schema of the setting with every $ref inlined (see inlineRefs()) * @param maskedPaths paths relative to the setting, see toMaskingPath(): 'portals.adminUser' masks the field in every * item, 'portals[0]' masks only that item, '' masks everything * @param maskedValues strings to mask wherever they appear * @returns Masked value safe for logging */ export declare function maskSensitiveValues(value: unknown, schema?: unknown, maskedPaths?: string[], maskedValues?: string[]): unknown;