/** * Removes keys whose value is `undefined` from an object, returning a * cleaned copy that satisfies `exactOptionalPropertyTypes`. * * Zod's `.optional()` produces `T | undefined` in inferred types, which * can't be assigned to optional properties under `exactOptionalPropertyTypes`. * This helper strips those `undefined` entries at runtime and casts the * result so TypeScript accepts it. */ export declare function stripUndefined(obj: T): T extends Record ? { [K in keyof T]: Exclude; } : T; /** Keys that must never be exposed in API responses. */ declare const VENDOR_SECRET_KEYS: readonly ["storeAccessToken", "storeConsumerSecret", "storeWebhookSecret", "bankAccount"]; /** * Returns a copy of a vendor record with sensitive fields removed. * * Accepts any object with string keys so it works with both single vendor * rows and Drizzle `InferSelectModel` types without importing the schema. */ export declare function stripVendorSecrets>(vendor: T): Omit; export {}; //# sourceMappingURL=util.d.ts.map