import type { NPool } from "@nostrify/nostrify"; import type { NostrSigner } from "@nostrify/types"; import type { NLoginBunker, NLoginExtension, NLoginNsec } from "./NLogin.ts"; /** Represents a Nostr user with authentication credentials. */ export declare class NUser { /** The authentication method used for this user */ readonly method: "nsec" | "bunker" | "extension" | `x-${string}`; /** The public key of the user in hex format. */ readonly pubkey: string; /** The signer that can sign events on behalf of this user. */ readonly signer: NostrSigner; constructor( /** The authentication method used for this user */ method: "nsec" | "bunker" | "extension" | `x-${string}`, /** The public key of the user in hex format. */ pubkey: string, /** The signer that can sign events on behalf of this user. */ signer: NostrSigner); static fromNsecLogin(login: NLoginNsec): NUser; static fromBunkerLogin(login: NLoginBunker, pool: NPool): NUser; static fromExtensionLogin(login: NLoginExtension): NUser; } //# sourceMappingURL=NUser.d.ts.map