mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
30 lines
660 B
TypeScript
30 lines
660 B
TypeScript
declare global {
|
|
interface Window {
|
|
webln?: {
|
|
enable(): Promise<void>;
|
|
sendPayment(paymentRequest: string): Promise<{
|
|
preimage: string;
|
|
}>;
|
|
makeInvoice(args: {
|
|
amount?: number;
|
|
defaultMemo?: string;
|
|
}): Promise<{
|
|
paymentRequest: string;
|
|
}>;
|
|
signMessage(message: string): Promise<{
|
|
message: string;
|
|
signature: string;
|
|
}>;
|
|
verifyMessage(signature: string, message: string): Promise<void>;
|
|
getInfo(): Promise<{
|
|
node: {
|
|
alias: string;
|
|
pubkey: string;
|
|
color?: string;
|
|
};
|
|
}>;
|
|
};
|
|
}
|
|
}
|
|
|
|
export {}; |