import { SqliteConnection } from "./connection.js"; import { PairedPeerRecord, PairingPeerRef, PairingRequestRecord, PairingStore } from "@graphorin/core/contracts"; //#region src/pairing-store.d.ts /** * Default `PairingStore` implementation (migration 034). Expiry * policy lives in the access controller of `@graphorin/channels`; * this store only filters by the timestamps it is handed. * * @stable */ declare class SqlitePairingStore implements PairingStore { #private; constructor(conn: SqliteConnection); upsertRequest(request: PairingRequestRecord): Promise; findRequestByPeer(peer: PairingPeerRef): Promise; findRequestByCode(channelId: string, code: string): Promise; deleteRequest(channelId: string, code: string): Promise; countPendingRequests(channelId: string, nowIso: string): Promise; pruneExpiredRequests(nowIso: string): Promise; addPairedPeer(peer: PairedPeerRecord): Promise; isPaired(peer: PairingPeerRef): Promise; removePairedPeer(peer: PairingPeerRef): Promise; listPairedPeers(channelId?: string): Promise>; } //#endregion export { SqlitePairingStore }; //# sourceMappingURL=pairing-store.d.ts.map