import { p as OperatorType } from "./constants2.mjs"; import { u as OperatorSelection } from "./types.mjs"; //#region src/native-search-config.d.ts /** * Structural type for the prepared static-search config the native binding * consumes and the Rust assembler emits (`assembleStaticSearchConfigJson`). * * This config used to be built in TypeScript by `build-unified-search.ts`; that * layer was retired in favor of the Rust assembler * (`crates/anonymize-adapter-contract` `assemble_static_search_config`). The * type now lives here as a pure, dependency-free description of the JSON the * binding accepts on its `fromConfigJsonBytes` / prepare paths, so callers that * hold a pre-assembled config keep a precise type without pulling in the * deleted detector modules. */ type PatternSlice = { start: number; end: number; }; type NativeSearchPatternKind = "literal" | "literal-with-options" | "regex" | "fuzzy"; type NativeSearchPattern = { kind: NativeSearchPatternKind; pattern: string; distance?: number; case_insensitive?: boolean; whole_words?: boolean; lazy?: boolean; prefilter_any?: string[]; prefilter_case_insensitive?: boolean; prefilter_regex?: string; prefilter_window_bytes?: number; prepared_artifact_policy?: "include" | "omit"; }; type NativeSearchOptions = { literal_case_insensitive?: boolean; literal_whole_words?: boolean; regex_whole_words?: boolean; regex_overlap_all?: boolean; regex_artifact_policy?: "include" | "omit"; fuzzy_case_insensitive?: boolean; fuzzy_whole_words?: boolean; fuzzy_normalize_diacritics?: boolean; }; type NativeRegexMatchMeta = { label: string; score: number; source_detail?: string; requires_validation?: boolean; validator_id?: string; validator_input?: string; min_byte_length?: number; }; type NativeSigningPlaceGuardData = { prefix_phrases: string[]; suffix_phrases: string[]; }; type NativeDenyListFilterData = { stopwords: string[]; allow_list: string[]; person_stopwords: string[]; person_trailing_nouns: string[]; address_trailing_nouns: string[]; address_stopwords: string[]; address_jurisdiction_prefixes: string[]; street_types: string[]; address_component_terms: string[]; ambiguous_street_type_terms: string[]; first_names: string[]; generic_roles: string[]; page_footer_markers?: string[]; number_abbrev_prefixes: string[]; sentence_starters: string[]; trailing_address_word_exclusions: string[]; document_heading_words: string[]; document_heading_ordinal_markers: string[]; defined_term_cues: string[]; signing_place_guards: NativeSigningPlaceGuardData[]; title_tokens: string[]; }; type NativeDenyListMatchData = { labels?: string[][]; label_table?: string[]; label_indices?: number[][]; custom_labels?: string[][]; custom_label_indices?: number[][]; originals: string[]; sources?: string[][]; source_table?: string[]; source_indices?: number[][]; filters?: NativeDenyListFilterData; }; type NativeTriggerStrategy = { type: "to-next-comma"; stop_words?: string[]; max_length?: number; } | { type: "to-end-of-line"; } | { type: "n-words"; count: number; } | { type: "company-id-value"; } | { type: "address"; max_chars?: number; } | { type: "match-pattern"; pattern: string; flags?: string; }; type NativeTriggerValidation = { type: "starts-uppercase"; } | { type: "min-length"; min: number; } | { type: "max-length"; max: number; } | { type: "no-digits"; } | { type: "has-digits"; } | { type: "matches-pattern"; pattern: string; flags?: string; } | { type: "valid-id"; validator: string; }; type NativeTriggerRule = { trigger: string; label: string; strategy: NativeTriggerStrategy; validations: NativeTriggerValidation[]; include_trigger: boolean; }; type NativeTriggerData = { rules: NativeTriggerRule[]; address_stop_keywords: string[]; party_position_terms: string[]; post_nominals: string[]; sentence_terminal_currency_terms: string[]; phone_extension_labels: string[]; number_markers: string[]; number_labels: string[]; person_field_labels: string[]; }; type NativeLegalFormData = { suffixes: string[]; non_ascii_name_short_suffixes: string[]; detection_only_suffixes: string[]; institutional_heads: string[]; normalized_boundary_suffixes: string[]; normalized_in_name_words: string[]; normalized_suffix_words: string[]; role_heads: string[]; sentence_verb_indicators: string[]; clause_noun_heads: string[]; connector_prose_heads: string[]; structural_single_cap_prefixes: string[]; leading_clause_phrases: string[]; leading_clause_direct_prefixes: string[]; connector_words: string[]; and_connector_words: string[]; in_name_prepositions: string[]; company_suffix_words: string[]; comma_gated_direct_prefixes: string[]; institutional_complement_heads: string[]; institutional_complement_starters: string[]; institutional_complement_connectors: string[]; institutional_generic_words: string[]; institutional_prefix_generic_words: string[]; lowercase_bridge: NativeLowercaseBridge; }; /** * Whether the legal-form name walk may cross arbitrary lowercase words once a * capitalized word is in the span (`open`), or only a closed connector set * (`closed`). */ type NativeLowercaseBridge = { policy: "open" | "closed"; /** Connector words admitted between capitalized name words (`closed`). */ words: string[]; }; type NativeDateMonthData = Record; type NativeYearWordData = Record; type NativeDateData = { month_names_by_language: NativeDateMonthData; lowercase_month_ambiguities: NativeDateMonthData; year_words_by_language: NativeYearWordData; }; type NativeMonetaryData = { currencies: { codes: string[]; symbols: string[]; local_names: string[]; }; amount_words: { written_amount_patterns: Array<{ keywords: string[]; }>; number_words: Array<{ words: string[]; joiners: string[]; }>; magnitude_suffixes: Array<{ words: string[]; abbreviations_case_insensitive: string[]; abbreviations_case_sensitive: string[]; abbreviations_attached: string[]; }>; share_quantity_terms: Array<{ modifiers: string[]; nouns: string[]; }>; }; }; type NativeStandaloneStreetData = { street_type_words: string[]; }; type NativeAddressSeedData = { boundary_words: string[]; br_cep_cue_words: string[]; unit_abbreviations: string[]; directional_abbreviations: string[]; /** Present only when `standaloneStreetDetection` is enabled. */ standalone_street?: NativeStandaloneStreetData; }; type NativeAddressContextData = { address_prepositions: string[]; temporal_prepositions: string[]; street_abbreviations: string[]; bare_house_stopwords: string[]; }; type NativeCoreferencePatternData = { pattern: string; flags: string; }; type NativeCoreferenceData = { definition_patterns: NativeCoreferencePatternData[]; role_stop_terms: string[]; legal_form_aliases: string[]; organization_suffixes: string[]; organization_determiners: string[]; }; type NativeNameCorpusData = { first_names: string[]; surnames: string[]; title_tokens: string[]; title_abbreviations: string[]; excluded_words: string[]; common_words: string[]; non_western_names: string[]; excluded_all_caps: string[]; ja_suffixes: string[]; arabic_connectors: string[]; relation_connectors: string[]; hyphenated_prefixes: string[]; cjk_non_person_terms: string[]; cjk_surname_starters: string[]; organization_terms: string[]; }; type NativeNameCorpusMode = "full" | "supplemental"; type NativeZonePatternData = { pattern: string; flags: string; }; type NativeZoneSigningClauseData = { prefix: string; suffix: string; prepositions: string[]; }; type NativeZoneData = { section_heading_patterns: NativeZonePatternData[]; signing_clauses: NativeZoneSigningClauseData[]; }; type NativeCountryData = { labels: string[]; isoCodes: string[]; variants: Array<"name" | "alias" | "alpha3" | "alpha2">; }; type NativeGazetteerData = { labels: string[]; is_fuzzy: boolean[]; }; type NativeHotwordRule = { hotwords: string[]; target_labels: string[]; score_adjustment: number; reclassify_to?: string; proximity_before: number; proximity_after: number; }; type NativeHotwordRuleData = { rules: NativeHotwordRule[]; pattern_rule_indices: number[]; }; type NativeSignatureData = { labels: string[]; person_value_labels: string[]; person_list_labels: string[]; party_role_name_evidence: string; witness_phrases: string[]; name_particles: string[]; post_nominal_suffixes: string[]; organization_suffixes: string[]; form_field_labels: string[]; contact_field_labels: string[]; signature_stamp_phrases: string[]; image_stub_prefixes: string[]; }; type NativePreparedSearchConfig = { regex_patterns: NativeSearchPattern[]; custom_regex_patterns: NativeSearchPattern[]; literal_patterns: NativeSearchPattern[]; regex_options: NativeSearchOptions; custom_regex_options: NativeSearchOptions; literal_options: NativeSearchOptions; literal_patterns_from_deny_list_data?: boolean; allowed_labels: string[]; threshold: number; confidence_boost: boolean; slices: { regex: PatternSlice; custom_regex: PatternSlice; legal_forms?: PatternSlice; triggers?: PatternSlice; deny_list: PatternSlice; street_types?: PatternSlice; gazetteer: PatternSlice; countries: PatternSlice; hotwords?: PatternSlice; }; regex_meta: NativeRegexMatchMeta[]; custom_regex_meta: NativeRegexMatchMeta[]; deny_list_data?: NativeDenyListMatchData; false_positive_filters?: NativeDenyListFilterData; gazetteer_data?: NativeGazetteerData; country_data?: NativeCountryData; hotword_data?: NativeHotwordRuleData; trigger_data?: NativeTriggerData; legal_form_data?: NativeLegalFormData; address_seed_data?: NativeAddressSeedData; zone_data?: NativeZoneData; address_context_data?: NativeAddressContextData; coreference_data?: NativeCoreferenceData; name_corpus_data?: NativeNameCorpusData; signature_data?: NativeSignatureData; name_corpus_mode?: NativeNameCorpusMode; date_data?: NativeDateData; monetary_data?: NativeMonetaryData; }; //#endregion //#region src/native.d.ts type NativeBindingOperatorConfig = { operators?: Record; redactString?: string; }; type NativeBindingCallerRedactionOptions = { requestJson: string; operators?: NativeBindingOperatorConfig; }; type NativeBindingSessionCallerRedactionInput = { fullText: string; requestJson: string; }; type NativeBindingSessionCallerRedactionPlanOptions = { inputs: NativeBindingSessionCallerRedactionInput[]; operators?: NativeBindingOperatorConfig; observedAtEpochSeconds?: number; }; type NativeBindingOpenSessionArchiveOptions = { archive: Uint8Array; key: Uint8Array; expectedSessionId: string; observedAtEpochSeconds?: number; }; type NativeDiagnosticsBatchCallback = (diagnosticsJson: string) => void; type NativeResultEventCallback = (eventJson: string) => void; type NativeBindingRedactionEntry = { placeholder: string; original: string; }; type NativeBindingOperatorEntry = { placeholder: string; operator: OperatorType; }; type NativeBindingPipelineEntity = { start: number; end: number; label: string; text: string; score: number; source: string; sourceDetail?: string | null; providerId?: string | null; detectionId?: string | null; }; type NativeBindingRedactionResult = { redactedText: string; redactionMap: NativeBindingRedactionEntry[]; operatorMap: NativeBindingOperatorEntry[]; entityCount: number; }; type NativeBindingStaticRedactionResult = { resolvedEntities: NativeBindingPipelineEntity[]; redaction: NativeBindingRedactionResult; }; type NativeSessionStatus = "active" | "not_yet_active" | "expired" | "deleted"; type NativeSessionLifecycle = { createdAtEpochSeconds: number; expiresAtEpochSeconds?: number; }; type NativeSessionMetadata = { sessionId: string; createdAtEpochSeconds: number | null; expiresAtEpochSeconds: number | null; mappingCount: number; status: NativeSessionStatus; }; type NativeSessionDeletionSummary = { sessionId: string; deletedMappingCount: number; }; type NativeSessionRedactionAtOptions = { fullText: string; observedAtEpochSeconds: number; operators?: NativeOperatorConfig; }; type NativeCreateSessionWithLifecycleOptions = NativeSessionLifecycle & { sessionId: string; }; type NativeOpenSessionArchiveOptions = { archive: Uint8Array; key: Uint8Array; expectedSessionId: string; observedAtEpochSeconds?: number; }; type NativePreparedRedactionSessionBinding = { sessionId: () => string; mappingCount: () => number; restoreText: (fullText: string) => string; restoreTextAt: (fullText: string, observedAtEpochSeconds: number) => string; toPlaintextJson: () => string; toPlaintextJsonAt: (observedAtEpochSeconds: number) => string; toEncryptedArchive: (key: Uint8Array) => Uint8Array; toEncryptedArchiveAt: (key: Uint8Array, observedAtEpochSeconds: number) => Uint8Array; inspectJson: (observedAtEpochSeconds?: number) => string; deleteJson: () => string; redactStaticEntitiesJson: (fullText: string, operators?: NativeBindingOperatorConfig) => string; redactStaticEntitiesJsonAt: (fullText: string, observedAtEpochSeconds: number, operators?: NativeBindingOperatorConfig) => string; planStaticEntitiesWithCallerDetections: (options: NativeBindingSessionCallerRedactionPlanOptions) => NativePreparedSessionRedactionPlanBinding; }; type NativePreparedSessionRedactionPlanBinding = { resultJson: () => string; commit: () => void; }; type NativePreparedSearchBinding = { prepareDiagnosticsJson: () => string; warmLazyRegex: () => void; warmLazyRegexDiagnosticsJson: () => string; createRedactionSession: (sessionId: string) => NativePreparedRedactionSessionBinding; createRedactionSessionWithLifecycle: (sessionId: string, createdAtEpochSeconds: number, expiresAtEpochSeconds?: number) => NativePreparedRedactionSessionBinding; restoreRedactionSession: (plaintextJson: string) => NativePreparedRedactionSessionBinding; restoreEncryptedRedactionSession: (options: NativeBindingOpenSessionArchiveOptions) => NativePreparedRedactionSessionBinding; redactStaticEntities: (fullText: string, operators?: NativeBindingOperatorConfig) => NativeBindingStaticRedactionResult; redactStaticEntitiesJson: (fullText: string, operators?: NativeBindingOperatorConfig) => string; redactStaticEntitiesWithCallerDetectionsJson: (fullText: string, options: NativeBindingCallerRedactionOptions) => string; redactStaticEntitiesWithCallerDetectionsDiagnosticsJson: (fullText: string, options: NativeBindingCallerRedactionOptions) => string; redactStaticEntitiesResultStreamJson: (fullText: string, operators: NativeBindingOperatorConfig | undefined, onEvent: NativeResultEventCallback) => string; redactStaticEntitiesDiagnosticsJson: (fullText: string, operators?: NativeBindingOperatorConfig) => string; redactStaticEntitiesDiagnosticsStreamJson: (fullText: string, operators: NativeBindingOperatorConfig | undefined, onBatch: NativeDiagnosticsBatchCallback) => string; redactStaticEntitiesSummaryDiagnosticsJson: (fullText: string, operators?: NativeBindingOperatorConfig) => string; }; type NativeAnonymizeBinding = { convertExternalDetectionBatch: (document: Uint8Array, batchJson: string) => NativeCallerDetection[]; externalDetectionLimitsJson: () => string; extractDocxTextJson: (document: Uint8Array) => string; inspectPdfJson: (document: Uint8Array, observationsJson?: string) => string; rewritePdfRasterFromDetectionsJson: (document: Uint8Array, requestJson: string, pagePixels: readonly Uint8Array[]) => { document: Uint8Array; certificateJson: string; }; rewriteDocxTextNative: (document: Uint8Array, rewritesJson: string) => { document: Uint8Array; rewrittenBlockCount: number; appliedReplacementCount: number; }; planDocxRestorationJson: (document: Uint8Array, sessionId: string) => string; normalizeForSearch: (text: string) => string; nativePackageVersion: () => string; NativePreparedSearch: { fromConfigJsonBytes: (configJson: Uint8Array) => NativePreparedSearchBinding; fromPreparedPackageBytes: (packageBytes: Uint8Array) => NativePreparedSearchBinding; fromPreparedPackageBytesWithoutCache: (packageBytes: Uint8Array) => NativePreparedSearchBinding; fromTrustedPreparedPackageBytes: (packageBytes: Uint8Array) => NativePreparedSearchBinding; fromTrustedPreparedPackageBytesWithoutCache: (packageBytes: Uint8Array) => NativePreparedSearchBinding; }; prepareStaticSearchPackageBytes: (configJson: Uint8Array) => Uint8Array; prepareStaticSearchCompressedPackageBytes: (configJson: Uint8Array) => Uint8Array; assembleStaticSearchConfigJson: (pipelineConfigJson: Uint8Array, dictionariesJson?: Uint8Array, gazetteerJson?: Uint8Array) => Uint8Array; assembleStaticSearchPackageBytes: (pipelineConfigJson: Uint8Array, dictionariesJson?: Uint8Array, gazetteerJson?: Uint8Array) => Uint8Array; assembleStaticSearchCompressedPackageBytes: (pipelineConfigJson: Uint8Array, dictionariesJson?: Uint8Array, gazetteerJson?: Uint8Array) => Uint8Array; }; /** Exhaustive runtime-member contract shared by loaders and parity gates. */ declare const NATIVE_BINDING_PARITY_MEMBERS: { readonly root: readonly ["convertExternalDetectionBatch", "externalDetectionLimitsJson", "extractDocxTextJson", "inspectPdfJson", "rewritePdfRasterFromDetectionsJson", "rewriteDocxTextNative", "planDocxRestorationJson", "normalizeForSearch", "nativePackageVersion", "prepareStaticSearchPackageBytes", "prepareStaticSearchCompressedPackageBytes", "assembleStaticSearchConfigJson", "assembleStaticSearchPackageBytes", "assembleStaticSearchCompressedPackageBytes"]; readonly factories: readonly ["fromConfigJsonBytes", "fromPreparedPackageBytes", "fromPreparedPackageBytesWithoutCache", "fromTrustedPreparedPackageBytes", "fromTrustedPreparedPackageBytesWithoutCache"]; readonly prepared: readonly ["prepareDiagnosticsJson", "warmLazyRegex", "warmLazyRegexDiagnosticsJson", "createRedactionSession", "createRedactionSessionWithLifecycle", "restoreRedactionSession", "restoreEncryptedRedactionSession", "redactStaticEntities", "redactStaticEntitiesJson", "redactStaticEntitiesWithCallerDetectionsJson", "redactStaticEntitiesWithCallerDetectionsDiagnosticsJson", "redactStaticEntitiesResultStreamJson", "redactStaticEntitiesDiagnosticsJson", "redactStaticEntitiesDiagnosticsStreamJson", "redactStaticEntitiesSummaryDiagnosticsJson"]; readonly session: readonly ["sessionId", "mappingCount", "restoreText", "restoreTextAt", "toPlaintextJson", "toPlaintextJsonAt", "toEncryptedArchive", "toEncryptedArchiveAt", "inspectJson", "deleteJson", "redactStaticEntitiesJson", "redactStaticEntitiesJsonAt", "planStaticEntitiesWithCallerDetections"]; readonly plan: readonly ["resultJson", "commit"]; }; /** Validate the complete runtime-neutral root and factory binding shape. */ declare const isNativeAnonymizeBinding: (candidate: unknown) => candidate is NativeAnonymizeBinding; type NativeOperatorConfig = { operators?: Record; redactString?: string; }; declare const CALLER_DETECTION_CONTRACT_VERSION = 2; declare const CALLER_DETECTION_MAX_COUNT = 1000000; declare const CALLER_DETECTION_TEXT_MAX_BYTES: number; declare const CALLER_DETECTION_REQUEST_JSON_MAX_BYTES: number; declare const SESSION_CALLER_MAX_INPUTS = 100000; declare const SESSION_CALLER_INPUTS_JSON_MAX_BYTES: number; declare const EXTERNAL_DETECTION_BATCH_VERSION: 1; declare const EXTERNAL_DETECTION_BATCH_MAX_BYTES: number; declare const EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES: number; declare const EXTERNAL_DETECTION_MAX_DETECTIONS = 100000; declare const EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS = 4096; declare const EXTERNAL_DETECTION_MAX_METADATA_BYTES = 256; declare const EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES = 128; declare const EXTERNAL_DETECTION_OFFSET_UNITS: { readonly unicodeCodePoint: "unicode-code-point"; readonly utf16CodeUnit: "utf16-code-unit"; readonly utf8Byte: "utf8-byte"; }; type ExternalDetectionOffsetUnit = (typeof EXTERNAL_DETECTION_OFFSET_UNITS)[keyof typeof EXTERNAL_DETECTION_OFFSET_UNITS]; type ExternalDetectionBatch = { version: typeof EXTERNAL_DETECTION_BATCH_VERSION; document: { sha256: string; }; offsetUnit: ExternalDetectionOffsetUnit; provider: { id: string; name: string; version: string; }; labelMap: readonly { providerLabel: string; entityLabel: string; }[]; detections: readonly { id: string; start: number; end: number; label: string; score: number; }[]; }; type NativeCallerDetection = { start: number; end: number; label: string; score: number; providerId: string; detectionId: string; }; type ConvertExternalDetectionBatchOptions = { binding: NativeAnonymizeBinding; document: Uint8Array; batch: ExternalDetectionBatch | string; }; declare const convert_external_detection_batch: ({ binding, document, batch }: ConvertExternalDetectionBatchOptions) => NativeCallerDetection[]; type NativeCallerRedactionOptions = { detections: readonly NativeCallerDetection[]; operators?: NativeOperatorConfig; }; type NativeSessionCallerRedactionInput = { fullText: string; detections: readonly NativeCallerDetection[]; }; type NativeSessionCallerRedactionPlanOptions = { inputs: readonly NativeSessionCallerRedactionInput[]; operators?: NativeOperatorConfig; observedAtEpochSeconds?: number; }; type NativeTextReplacement = { start: number; end: number; replacement: string; }; type NativeSessionBlockRedactionPlan = { replacements: readonly NativeTextReplacement[]; entityCount: number; callerEntityCount: number; }; type NativePipelineEntity = { start: number; end: number; label: string; text: string; score: number; source: string; sourceDetail?: string; providerId?: string; detectionId?: string; }; type NativeRedactionResult = { redactedText: string; redactionMap: Map; operatorMap: Map; entityCount: number; }; type NativeStaticRedactionResult = { resolvedEntities: NativePipelineEntity[]; redaction: NativeRedactionResult; }; type NativeSearchPackageOptions = { binding: NativeAnonymizeBinding; config: NativePreparedSearchConfig; compressed?: boolean; }; type NativeSearchPackageInput = NativePreparedSearchConfig | string | Uint8Array; type SharedNativeSearchPackageOptions = { binding: NativeAnonymizeBinding; config: NativeSearchPackageInput; compressed?: boolean; }; type SharedNativePreparedPackageOptions = { binding: NativeAnonymizeBinding; packageBytes: Uint8Array; }; type SharedNativeRedactTextJsonOptions = { binding: NativeAnonymizeBinding; config: NativeSearchPackageInput; fullText: string; operators?: NativeOperatorConfig; }; type SharedNativeRedactTextOptions = SharedNativeRedactTextJsonOptions; type SharedNativeDiagnosticsJsonOptions = SharedNativeRedactTextJsonOptions; type SharedNativeDiagnosticsStreamJsonOptions = SharedNativeRedactTextJsonOptions & { onBatch: NativeDiagnosticsBatchCallback; }; type SharedNativeRedactTextStreamJsonOptions = SharedNativeRedactTextJsonOptions & { onEvent: NativeResultEventCallback; }; type NativeNormalizeOptions = { binding: NativeAnonymizeBinding; text: string; }; type NativeAnonymizerFromConfigOptions = { binding: NativeAnonymizeBinding; config: NativePreparedSearchConfig; }; type NativeAnonymizerFromPackageOptions = { binding: NativeAnonymizeBinding; packageBytes: Uint8Array; }; type NativePipelineFromPackageOptions = NativeAnonymizerFromPackageOptions; type NativeBindingVersionOptions = { binding: NativeAnonymizeBinding; expectedVersion: string; }; declare class PreparedNativeRedactionSession { #private; constructor(session: NativePreparedRedactionSessionBinding); sessionId(): string; session_id(): string; mappingCount(): number; mapping_count(): number; restoreText(fullText: string, observedAtEpochSeconds?: number): string; restore_text(fullText: string, observedAtEpochSeconds?: number): string; toPlaintextJson(): string; to_plaintext_json(): string; toPlaintextJsonAt(observedAtEpochSeconds: number): string; to_plaintext_json_at(observedAtEpochSeconds: number): string; toEncryptedArchive(key: Uint8Array): Uint8Array; to_encrypted_archive(key: Uint8Array): Uint8Array; toEncryptedArchiveAt(key: Uint8Array, observedAtEpochSeconds: number): Uint8Array; to_encrypted_archive_at(key: Uint8Array, observedAtEpochSeconds: number): Uint8Array; inspect(observedAtEpochSeconds?: number): NativeSessionMetadata; delete(): NativeSessionDeletionSummary; redactStaticEntities(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redactText(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redactTextJson(fullText: string, operators?: NativeOperatorConfig): string; redact_text_json(fullText: string, operators?: NativeOperatorConfig): string; redactStaticEntitiesAt(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult; redactTextAt(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult; redact_text_at(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult; redact_static_entities_at(options: NativeSessionRedactionAtOptions): NativeStaticRedactionResult; redactTextJsonAt({ fullText, observedAtEpochSeconds, operators }: NativeSessionRedactionAtOptions): string; redact_text_json_at(options: NativeSessionRedactionAtOptions): string; planTextBatchWithCallerDetections({ inputs, operators, observedAtEpochSeconds }: NativeSessionCallerRedactionPlanOptions): PreparedNativeSessionRedactionPlan; } declare class PreparedNativeSessionRedactionPlan { #private; readonly blocks: readonly NativeSessionBlockRedactionPlan[]; constructor(plan: NativePreparedSessionRedactionPlanBinding); commit(): void; } declare class PreparedNativeAnonymizer { #private; constructor(prepared: NativePreparedSearchBinding); prepareDiagnosticsJson(): string; prepare_diagnostics_json(): string; warmLazyRegex(): void; warm_lazy_regex(): void; warmLazyRegexDiagnosticsJson(): string; warm_lazy_regex_diagnostics_json(): string; createRedactionSession(sessionId: string): PreparedNativeRedactionSession; create_redaction_session(sessionId: string): PreparedNativeRedactionSession; createRedactionSessionWithLifecycle({ sessionId, createdAtEpochSeconds, expiresAtEpochSeconds }: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession; create_redaction_session_with_lifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession; restoreRedactionSession(plaintextJson: string): PreparedNativeRedactionSession; restore_redaction_session(plaintextJson: string): PreparedNativeRedactionSession; restoreEncryptedRedactionSession({ archive, key, expectedSessionId, observedAtEpochSeconds }: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession; restore_encrypted_redaction_session(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession; redactStaticEntities(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redact_text_json(fullText: string, operators?: NativeOperatorConfig): string; redactStaticEntitiesWithCallerDetections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult; redact_text_with_caller_detections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult; redactStaticEntitiesWithCallerDetectionsDiagnosticsJson(fullText: string, options: NativeCallerRedactionOptions): string; redact_static_entities_with_caller_detections_diagnostics_json(fullText: string, options: NativeCallerRedactionOptions): string; redactTextJson(fullText: string, operators?: NativeOperatorConfig): string; redactTextStreamJson(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string; redact_text_stream_json(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string; redactStaticEntitiesDiagnosticsJson(fullText: string, operators?: NativeOperatorConfig): string; diagnostics_json(fullText: string, operators?: NativeOperatorConfig): string; diagnosticsStreamJson(fullText: string, onBatch: NativeDiagnosticsBatchCallback, operators?: NativeOperatorConfig): string; diagnostics_stream_json(fullText: string, onBatch: NativeDiagnosticsBatchCallback, operators?: NativeOperatorConfig): string; redactStaticEntitiesSummaryDiagnosticsJson(fullText: string, operators?: NativeOperatorConfig): string; summary_diagnostics_json(fullText: string, operators?: NativeOperatorConfig): string; } declare class PreparedNativePipeline { #private; constructor(anonymizer: PreparedNativeAnonymizer); prepareDiagnosticsJson(): string; prepare_diagnostics_json(): string; warmLazyRegex(): void; warm_lazy_regex(): void; warmLazyRegexDiagnosticsJson(): string; warm_lazy_regex_diagnostics_json(): string; createRedactionSession(sessionId: string): PreparedNativeRedactionSession; create_redaction_session(sessionId: string): PreparedNativeRedactionSession; createRedactionSessionWithLifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession; create_redaction_session_with_lifecycle(options: NativeCreateSessionWithLifecycleOptions): PreparedNativeRedactionSession; restoreRedactionSession(plaintextJson: string): PreparedNativeRedactionSession; restore_redaction_session(plaintextJson: string): PreparedNativeRedactionSession; restoreEncryptedRedactionSession(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession; restore_encrypted_redaction_session(options: NativeOpenSessionArchiveOptions): PreparedNativeRedactionSession; redactText(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redact_text(fullText: string, operators?: NativeOperatorConfig): NativeStaticRedactionResult; redact_text_json(fullText: string, operators?: NativeOperatorConfig): string; redactTextWithCallerDetections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult; redact_text_with_caller_detections(fullText: string, options: NativeCallerRedactionOptions): NativeStaticRedactionResult; redactTextWithCallerDetectionsDiagnosticsJson(fullText: string, options: NativeCallerRedactionOptions): string; redact_text_with_caller_detections_diagnostics_json(fullText: string, options: NativeCallerRedactionOptions): string; redactTextJson(fullText: string, operators?: NativeOperatorConfig): string; redactTextStreamJson(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string; redact_text_stream_json(fullText: string, onEvent: NativeResultEventCallback, operators?: NativeOperatorConfig): string; redactTextDiagnosticsJson(fullText: string, operators?: NativeOperatorConfig): string; diagnostics_json(fullText: string, operators?: NativeOperatorConfig): string; diagnosticsStreamJson(fullText: string, onBatch: NativeDiagnosticsBatchCallback, operators?: NativeOperatorConfig): string; diagnostics_stream_json(fullText: string, onBatch: NativeDiagnosticsBatchCallback, operators?: NativeOperatorConfig): string; redactTextSummaryDiagnosticsJson(fullText: string, operators?: NativeOperatorConfig): string; summary_diagnostics_json(fullText: string, operators?: NativeOperatorConfig): string; } declare const encodeNativeSearchConfig: (config: NativePreparedSearchConfig) => Uint8Array; declare const encodeNativeSearchConfigInput: (config: NativeSearchPackageInput) => Uint8Array; declare const getNativeBindingVersion: (binding: NativeAnonymizeBinding) => string; declare const native_package_version: typeof getNativeBindingVersion; declare const normalize_for_search: ({ binding, text }: NativeNormalizeOptions) => string; declare const assertNativeBindingVersion: ({ binding, expectedVersion }: NativeBindingVersionOptions) => void; declare const prepareNativeSearchPackage: ({ binding, config, compressed }: NativeSearchPackageOptions) => Uint8Array; declare const prepare_search_package: ({ binding, config, compressed }: SharedNativeSearchPackageOptions) => Uint8Array; declare const createNativeAnonymizerFromConfig: ({ binding, config }: NativeAnonymizerFromConfigOptions) => PreparedNativeAnonymizer; declare const createNativeAnonymizerFromPackage: ({ binding, packageBytes }: NativeAnonymizerFromPackageOptions) => PreparedNativeAnonymizer; declare const load_prepared_package: ({ binding, packageBytes }: SharedNativePreparedPackageOptions) => PreparedNativeAnonymizer; declare const redact_text_json: ({ binding, config, fullText, operators }: SharedNativeRedactTextJsonOptions) => string; declare const redact_text: ({ binding, config, fullText, operators }: SharedNativeRedactTextOptions) => NativeStaticRedactionResult; declare const redact_text_stream_json: ({ binding, config, fullText, operators, onEvent }: SharedNativeRedactTextStreamJsonOptions) => string; declare const diagnostics_json: ({ binding, config, fullText, operators }: SharedNativeDiagnosticsJsonOptions) => string; declare const diagnostics_stream_json: ({ binding, config, fullText, operators, onBatch }: SharedNativeDiagnosticsStreamJsonOptions) => string; declare const summary_diagnostics_json: ({ binding, config, fullText, operators }: SharedNativeDiagnosticsJsonOptions) => string; declare const createNativePipelineFromPackage: ({ binding, packageBytes }: NativePipelineFromPackageOptions) => PreparedNativePipeline; declare const PreparedSearch: typeof PreparedNativeAnonymizer; type PreparedSearch = PreparedNativeAnonymizer; declare const PreparedAnonymizer: typeof PreparedNativeAnonymizer; type PreparedAnonymizer = PreparedNativeAnonymizer; //#endregion export { SESSION_CALLER_INPUTS_JSON_MAX_BYTES as $, NativePreparedRedactionSessionBinding as A, NativeSessionDeletionSummary as B, NativeCreateSessionWithLifecycleOptions as C, prepare_search_package as Ct, NativeOperatorConfig as D, summary_diagnostics_json as Dt, NativeOpenSessionArchiveOptions as E, redact_text_stream_json as Et, NativeSearchPackageInput as F, NativeStaticRedactionResult as G, NativeSessionMetadata as H, NativeSearchPackageOptions as I, PreparedNativeAnonymizer as J, NativeTextReplacement as K, NativeSessionBlockRedactionPlan as L, NativePreparedSessionRedactionPlanBinding as M, NativeRedactionResult as N, NativePipelineEntity as O, NativePreparedSearchConfig as Ot, NativeResultEventCallback as P, PreparedSearch as Q, NativeSessionCallerRedactionInput as R, NativeCallerRedactionOptions as S, prepareNativeSearchPackage as St, NativeNormalizeOptions as T, redact_text_json as Tt, NativeSessionRedactionAtOptions as U, NativeSessionLifecycle as V, NativeSessionStatus as W, PreparedNativeRedactionSession as X, PreparedNativePipeline as Y, PreparedNativeSessionRedactionPlan as Z, NativeAnonymizeBinding as _, getNativeBindingVersion as _t, ConvertExternalDetectionBatchOptions as a, SharedNativeRedactTextOptions as at, NativeBindingVersionOptions as b, native_package_version as bt, EXTERNAL_DETECTION_DOCUMENT_MAX_BYTES as c, assertNativeBindingVersion as ct, EXTERNAL_DETECTION_MAX_METADATA_BYTES as d, createNativeAnonymizerFromPackage as dt, SESSION_CALLER_MAX_INPUTS as et, EXTERNAL_DETECTION_OFFSET_UNITS as f, createNativePipelineFromPackage as ft, NATIVE_BINDING_PARITY_MEMBERS as g, encodeNativeSearchConfigInput as gt, ExternalDetectionOffsetUnit as h, encodeNativeSearchConfig as ht, CALLER_DETECTION_TEXT_MAX_BYTES as i, SharedNativeRedactTextJsonOptions as it, NativePreparedSearchBinding as j, NativePipelineFromPackageOptions as k, EXTERNAL_DETECTION_MAX_DETECTIONS as l, convert_external_detection_batch as lt, ExternalDetectionBatch as m, diagnostics_stream_json as mt, CALLER_DETECTION_MAX_COUNT as n, SharedNativeDiagnosticsStreamJsonOptions as nt, EXTERNAL_DETECTION_BATCH_MAX_BYTES as o, SharedNativeRedactTextStreamJsonOptions as ot, EXTERNAL_DETECTION_PROVIDER_ID_MAX_BYTES as p, diagnostics_json as pt, PreparedAnonymizer as q, CALLER_DETECTION_REQUEST_JSON_MAX_BYTES as r, SharedNativePreparedPackageOptions as rt, EXTERNAL_DETECTION_BATCH_VERSION as s, SharedNativeSearchPackageOptions as st, CALLER_DETECTION_CONTRACT_VERSION as t, SharedNativeDiagnosticsJsonOptions as tt, EXTERNAL_DETECTION_MAX_LABEL_MAPPINGS as u, createNativeAnonymizerFromConfig as ut, NativeAnonymizerFromConfigOptions as v, isNativeAnonymizeBinding as vt, NativeDiagnosticsBatchCallback as w, redact_text as wt, NativeCallerDetection as x, normalize_for_search as xt, NativeAnonymizerFromPackageOptions as y, load_prepared_package as yt, NativeSessionCallerRedactionPlanOptions as z }; //# sourceMappingURL=native.d.mts.map