@shocknet/clink-sdk
Version:
sdk client for clink
15 lines (14 loc) • 587 B
TypeScript
import { UnsignedEvent } from "nostr-tools";
import { AbstractSimplePool } from "nostr-tools/lib/types/pool";
type Pair = {
privateKey: Uint8Array;
publicKey: string;
};
export declare const sendRequest: <T>(pool: AbstractSimplePool, pair: Pair, relays: string[], toPub: string, e: UnsignedEvent, kindExpected: number, timeoutSeconds?: number, moreCb?: (data: any) => void) => Promise<T>;
export declare const newFilter: (publicKey: string, eventId: string, kindExpected: number) => {
since: number;
kinds: number[];
'#p': string[];
'#e': string[];
};
export {};