import type { Messages } from '../types'; /** * Sanitize messages data to match the schema. * Stored messages might contain keys that are not in the config. * This happens when messages in the config were (re)moved. * * Keep exactly the keys from `shape`, fill values from `source` when present. * When `useSchemaDefaults` is true, missing leaves fall back to the schema value. * - Leaf present as string -> included * - Leaf missing/non-string + useSchemaDefaults -> schema value used * - Leaf missing/non-string + !useSchemaDefaults -> omitted * - Empty nested groups -> omitted (unless filled by defaults) */ export declare function sanitizeMessages({ config, data, useSchemaDefaults, }: { config: Messages; data: unknown; useSchemaDefaults?: boolean; }): Messages; //# sourceMappingURL=sanitize.d.ts.map