UNPKG

rx-nostr

Version:

A library based on RxJS, which allows Nostr applications to easily communicate with relays.

18 lines 722 B
import { LazyFilter, LazyREQ } from '../packet.js'; import { AcceptableDefaultRelaysConfig, DefaultRelayConfig, RxNostr, RxNostrOnParams } from './interface.js'; import { RxReq } from './rx-req.js'; export declare function makeSubId(params: { rxReq: RxReq; index: number; }): string; export declare function makeLazyREQ(params: { rxReq: RxReq; filters: LazyFilter[]; index: number; }): LazyREQ; export declare function normalizeRelaysConfig(config: AcceptableDefaultRelaysConfig): Record<string, DefaultRelayConfig>; export declare function getMethodScopeRelays(rxNostr: RxNostr, options?: { relays?: string[]; on?: RxNostrOnParams; }): string[] | undefined; //# sourceMappingURL=utils.d.ts.map