import type { OkResponse, ReqCommand, TaggedNostrEvent } from "./nostr"; /** * A cache relay is an always available local (local network / browser worker) relay * Which should contain all of the content we're looking for and respond quickly. */ export interface CacheRelay { /** * Write event to cache relay */ event(ev: TaggedNostrEvent): Promise; /** * Read event from cache relay */ query(req: ReqCommand): Promise>; /** * Delete events by filter */ delete(req: ReqCommand): Promise>; } //# sourceMappingURL=cache-relay.d.ts.map