UNPKG

nostr-tools

Version:
15 lines (14 loc) 465 B
import { WebSocket } from 'mock-socket'; import { type Event } from './pure.ts'; export declare const MockWebSocketClient: typeof WebSocket; export declare function buildEvent(params: Partial<Event>): Event; export declare class MockRelay { private _server; url: string; secretKeys: Uint8Array[]; preloadedEvents: Event[]; unresponsive: boolean; constructor(url?: string | undefined); get authors(): string[]; get ids(): string[]; }