import { NamedNode } from 'rdflib'; type Log = (message: string) => void; type Confirm = (message: string) => Promise; /** Load the book's main name/email index. Throws when the load fails. */ export declare function loadMainIndex(book: NamedNode, log: Log): Promise; /** Log headline numbers: contacts, groups, and the current selection. */ export declare function showStats(book: NamedNode, selectedGroups: Record, log: Log): void; /** Repair the ACL of every card in the selected groups. Settles once every * repair has finished, and throws when any of them failed. */ export declare function checkAccess(selectedGroups: Record, log: Log): Promise; /** Contacts that belong to no group at all. Loads the indexes it needs. */ export declare function findGroupless(book: NamedNode, log: Log): Promise; /** Move every groupless contact into a "No group" group, after asking. * Returns true when the groups changed, so the caller can refresh the bar. */ export declare function fixGroupless(book: NamedNode, log: Log, confirm: Confirm): Promise; /** Scan the whole book for duplicate and nameless contacts, then write a * cleaned-up index and cleaned-up copies of every group. */ export declare function findDuplicates(book: NamedNode, log: Log, confirm: Confirm): Promise; export {}; //# sourceMappingURL=toolsLogic.d.ts.map