@konemono/nostr-login 1.7.57 → 1.7.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { Signer } from './Nostr';
2
2
  export declare class AmberDirectSigner implements Signer {
3
3
  private _pubkey;
4
+ private static pendingResolves;
4
5
  constructor(pubkey?: string);
5
6
  get pubkey(): string;
6
7
  set pubkey(v: string);
@@ -15,12 +16,13 @@ export declare class AmberDirectSigner implements Signer {
15
16
  private getHash;
16
17
  private checkCache;
17
18
  private setPending;
19
+ static resolvePending(id: string, type: string, result: string): boolean;
18
20
  signEvent(event: any): Promise<any>;
21
+ getPublicKey(): Promise<string>;
19
22
  encrypt04(pubkey: string, plaintext: string): Promise<string>;
20
23
  decrypt04(pubkey: string, ciphertext: string): Promise<string>;
21
24
  encrypt44(pubkey: string, plaintext: string): Promise<string>;
22
25
  decrypt44(pubkey: string, ciphertext: string): Promise<string>;
23
- getPublicKey(): Promise<string>;
24
26
  private generateUrl;
25
27
  static parseResponse(): {
26
28
  type: string;