import { SQLiteDriver } from "../drivers/SQLiteDriver"; import { AbstractSQLite } from "./AbstractSQLite"; import { SandBox } from "./SandBox"; import { DBDocument } from "./DocumentDAL"; export interface DBCert extends DBDocument { linked: boolean; written: boolean; written_block: number | null; written_hash: string | null; sig: string; block_number: number; block_hash: string; target: string; to: string; from: string; block: number; expired: boolean | null; expires_on: number; } export declare class CertDAL extends AbstractSQLite { constructor(driver: SQLiteDriver); init(): Promise; getToTarget(hash: string): Promise; getFromPubkeyCerts(pubkey: string): Promise; getNotLinked(): Promise; getNotLinkedToTarget(hash: string): Promise; saveNewCertification(cert: DBCert): Promise; existsGivenCert(cert: DBCert): Promise; deleteCert(cert: { from: string; target: string; sig: string; }): Promise; trimExpiredCerts(medianTime: number): Promise; /************************** * SANDBOX STUFF */ getSandboxForKey: (pub: string) => SandBox; }