/** * MaskRule defines the currently supported types of mask rules for usage with * {@link mask}. */ export interface MaskRule { replace: { value: any; }; } /** * Apply masking rules to an object (i.e. "mask" it) * * @param maskRules Masking rules as returned from the Compile API. * @param targetObject Object to apply replacements to * @param targetType Type of the object to apply replacements to (prefix of maskRules). * @returns A new object with values replaced according to the rules */ export declare function mask>(maskRules: Record | MaskRule>, targetObject: T, targetType?: string): T; /** * Filter an object by key prefix, removing the prefix from the keys. * * @param obj The object to filter, e.g. `{"users.id": {...}, "groups.name": {...}}` * @param type The prefix to filter by (e.g. "users") * @returns A new object with only keys that had the specified prefix, with the prefix removed */ export declare function project(obj: Record, type: string): Record; //# sourceMappingURL=masks.d.ts.map