import type { ArcjetRedactCustomRedact } from "./wasm/interfaces/arcjet-redact-custom-redact.js"; /** * Initialize the WebAssembly. * * @param detect * Custom detection function. * @param replace * Custom replacement function. * @returns * Promise to the initialized WebAssembly instance. */ export declare function initializeWasm(detect: CustomDetect, replace: CustomRedact): Promise; /** * Detect sensitive info. * * @param tokens * Tokens to detect in. * @returns * Array of detected entities. */ type CustomDetect = typeof ArcjetRedactCustomRedact.detectSensitiveInfo; /** * Redact sensitive info. * * @param entityType * Entity to redact. * @param plaintext * The plaintext string to redact. * @returns * Redacted string. */ type CustomRedact = typeof ArcjetRedactCustomRedact.redactSensitiveInfo; export type { RedactedSensitiveInfoEntity, RedactSensitiveInfoConfig, SensitiveInfoEntity, } from "./wasm/arcjet_analyze_bindings_redact.component.js";