import { FullSindexEntry, SimpleTxEntryForWallet, SimpleTxInput, SindexEntry } from "../../../indexer"; import { SQLiteDriver } from "../../drivers/SQLiteDriver"; import { SqliteTable } from "./SqliteTable"; import { SIndexDAO } from "../abstract/SIndexDAO"; export declare class SqliteSIndex extends SqliteTable implements SIndexDAO { constructor(getSqliteDB: (dbName: string) => Promise); /** * TECHNICAL */ cleanCache(): void; triggerInit(): void; /** * INSERT */ insert(record: SindexEntry): Promise; insertBatch(records: SindexEntry[]): 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 */ findByIdentifier(identifier: string): Promise; findByPos(pos: number): Promise; findTxSourceByIdentifierPosAmountBase(identifier: string, pos: number, amount: number, base: number): Promise; getAvailableForConditions(conditionsStr: string): Promise; getAvailableForPubkey(pubkey: string): Promise<{ amount: number; base: number; conditions: string; identifier: string; pos: number; }[]>; getTxSource(identifier: string, pos: number): Promise; getWrittenOnTxs(blockstamp: string): Promise; trimConsumedSource(belowNumber: number): Promise; }