import { FullIindexEntry, IindexEntry } from "../../../indexer"; import { SQLiteDriver } from "../../drivers/SQLiteDriver"; import { IIndexDAO } from "../abstract/IIndexDAO"; import { OldIindexEntry } from "../../../db/OldIindexEntry"; import { SqliteTable } from "./SqliteTable"; export declare class SqliteIIndex extends SqliteTable implements IIndexDAO { constructor(getSqliteDB: (dbName: string) => Promise); /** * TECHNICAL */ cleanCache(): void; triggerInit(): void; /** * INSERT */ insert(record: IindexEntry): Promise; insertBatch(records: IindexEntry[]): Promise; /** * DELETE */ removeBlock(blockstamp: string): Promise; trimRecords(belowNumber: number): Promise; /** * FIND */ getWrittenOn(blockstamp: string): Promise; findRawWithOrder(criterion: { pub?: string; }, sort: (string | (string | boolean)[])[]): Promise; private find; /** * OTHER */ reducable(pub: string): Promise; findByPub(pub: string): Promise; findByUid(uid: string): Promise; getFromPubkey(pub: string): Promise; getFromPubkeyOrUid(search: string): Promise; getFromUID(uid: string): Promise; getFullFromHash(hash: string): Promise; getFullFromPubkey(pub: string): Promise; getFullFromUID(uid: string): Promise; getMembers(): Promise<{ pubkey: string; uid: string | null; }[]>; getToBeKickedPubkeys(): Promise; searchThoseMatching(search: string): Promise; }