/**
 * Sanitizes personally identifiable information (PII) found within a URL or query string.
 *
 * This function scans all query parameter values and removes or masks any PII using
 * the {@link removePii} function. It gracefully handles both absolute and relative URLs.
 *
 * - If the input is not a string, it is returned unchanged.
 * - If parsing as a URL fails, the function falls back to applying {@link removePii}
 *   directly on the raw string.
 * - The output preserves the original format (absolute or relative).
 *
 * @example
 * ```ts
 * removePiiFromUrl('https://example.com?email=john.doe@example.com&phone=555-123-4567');
 * // → 'https://example.com/?email=[email_removed]&phone=[phone_removed]'
 *
 * removePiiFromUrl('/profile?ssn=123-45-6789');
 * // → '/profile?ssn=[SSN_removed]'
 * ```
 *
 * @param url - The input URL string or relative path to sanitize.
 * @returns A sanitized URL string with PII masked, or the input value unchanged if not a string.
 */
export declare function removePiiFromUrl(url: unknown): unknown;
//# sourceMappingURL=remove-pii-from-url.d.ts.map