/**
 * Implementation of PII sanitization from @coffeeandfun/remove-pii (MIT licensed) without unnecessary methods
 */
type PIIConfigOption = {
    enabled: false;
    replacement?: string;
    pattern?: RegExp;
} | {
    enabled: true;
    replacement: string;
    pattern?: RegExp;
};
type PIIConfig = {
    [key: string]: PIIConfigOption;
};
/**
 * Removes or masks personally identifiable information (PII) from a given text string.
 *
 * This function identifies and replaces sensitive data such as email addresses,
 * phone numbers, credit card numbers, and other personal identifiers with
 * configurable placeholder strings. It’s a lightweight implementation inspired by
 * `@coffeeandfun/remove-pii` (MIT licensed), keeping only the essential sanitization logic.
 *
 * By default, all common PII patterns (email, phone, SSN, credit card, address,
 * passport number, driver’s license, ZIP code, bank account, and date of birth)
 * are detected and replaced. Custom configuration can override or disable any pattern.
 *
 * Non-string inputs are returned unchanged.
 *
 * @param text - The input text that may contain personally identifiable information.
 * @param options - Optional configuration to enable, disable, or customize PII replacements.
 * @returns A sanitized string with PII masked or removed; if the input is not a string, returns it unchanged.
 */
export declare function removePii(text: unknown, options?: PIIConfig): unknown;
export {};
//# sourceMappingURL=remove-pii.d.ts.map