UNPKG

@nostr-relay/wot-guard

Version:
18 lines (17 loc) 428 B
import { Event, Filter } from '@nostr-relay/common'; import { Agent } from 'http'; type RelayOptions = { agent?: Agent; }; export declare class Relay { url: string; private client; private reqJob; private agent?; constructor(url: string, { agent }?: RelayOptions); init(): Promise<void>; destroy(): void; private handleMessage; fetchEvents(filter: Filter): Promise<Event[]>; } export {};