/** * @module @arcis/node/sanitizers/prototype * Prototype pollution prevention */ /** * Checks if a key is dangerous for prototype pollution. * Case-insensitive — catches __PROTO__, Constructor, etc. * * @param key - The key to check * @returns True if the key could cause prototype pollution * * @example * isDangerousProtoKey('__proto__') // true * isDangerousProtoKey('__PROTO__') // true * isDangerousProtoKey('Constructor') // true * isDangerousProtoKey('name') // false */ export declare function isDangerousProtoKey(key: string): boolean; /** * Recursively checks if an object contains prototype pollution keys. * * @param obj - The object to check * @param maxDepth - Maximum recursion depth (default: 10) * @returns True if dangerous keys found */ export declare function detectPrototypePollution(obj: unknown, maxDepth?: number): boolean; /** * Get list of all keys considered dangerous for prototype pollution. * Useful for documentation or custom validation. * * @returns Array of dangerous key strings */ export declare function getDangerousProtoKeys(): string[]; //# sourceMappingURL=prototype.d.ts.map