import { ExtensionSigner } from "applesauce-signers/signers/extension-signer";
import { BaseAccount } from "../account.js";
import { SerializedAccount } from "../types.js";
export declare class ExtensionAccount<Metadata extends unknown> extends BaseAccount<ExtensionSigner, void, Metadata> {
    signer: ExtensionSigner;
    static readonly type = "extension";
    constructor(pubkey: string, signer: ExtensionSigner);
    toJSON(): SerializedAccount<void, Metadata>;
    static fromJSON<Metadata extends unknown>(json: SerializedAccount<void, Metadata>): ExtensionAccount<Metadata>;
    /**
     * Creates a new account from the NIP-07 extension
     * @throws {ExtensionMissingError} if the extension is not installed
     */
    static fromExtension(): Promise<ExtensionAccount<void>>;
}
