import { RadixNode } from "./node.js"; export type FindParams = { term: string; exact?: boolean; tolerance?: number; }; export type FindResult = Record; export declare function insert(root: RadixNode, word: string, docId: string): void; export declare function find(root: RadixNode, { term, exact, tolerance }: FindParams): FindResult; export declare function contains(root: RadixNode, term: string): boolean; export declare function removeWord(root: RadixNode, term: string): boolean; export declare function removeDocumentByWord(root: RadixNode, term: string, docID: string, exact?: boolean): boolean;