UNPKG

@nostr-relay/wot-guard

Version:
16 lines (15 loc) 386 B
import { Event, Filter } from '@nostr-relay/common'; import { Agent } from 'http'; type PoolOptions = { agent?: Agent; }; export declare class Pool { private urls; private relays; private agent?; constructor(urls: string[], { agent }?: PoolOptions); init(): Promise<string[]>; destroy(): void; fetchEvents(filter: Filter): Promise<Event[]>; } export {};