nostr-tools
Version:
Tools for making a Nostr client.
19 lines (18 loc) • 795 B
TypeScript
import { type Event, type EventTemplate } from './pure.ts';
export declare function useFetchImplementation(fetchImplementation: any): void;
export declare function getZapEndpoint(metadata: Event): Promise<null | string>;
export declare function makeZapRequest({ profile, event, amount, relays, comment, }: {
profile: string;
event: string | Event | null;
amount: number;
comment: string;
relays: string[];
}): EventTemplate;
export declare function validateZapRequest(zapRequestString: string): string | null;
export declare function makeZapReceipt({ zapRequest, preimage, bolt11, paidAt, }: {
zapRequest: string;
preimage?: string;
bolt11: string;
paidAt: Date;
}): EventTemplate;
export declare function getSatoshisAmountFromBolt11(bolt11: string): number;