import { type SmartAccountAuthenticator } from "@alchemy/aa-core"; import { type CustomSource, type Hex, type LocalAccount, type SignableMessage, type TypedData, type TypedDataDefinition } from "viem"; import type { BaseSignerClient } from "./client/base"; import type { User } from "./client/types"; import { type SessionManagerParams } from "./session/manager.js"; import type { AuthParams } from "./signer"; import { type AlchemySignerEvents } from "./types.js"; export interface BaseAlchemySignerParams { client: TClient; sessionConfig?: Omit; } export declare abstract class BaseAlchemySigner implements SmartAccountAuthenticator { signerType: string; inner: TClient; private sessionManager; private store; constructor({ client, sessionConfig }: BaseAlchemySignerParams); on: (event: E, listener: AlchemySignerEvents[E]) => () => void; authenticate: (params: AuthParams) => Promise; disconnect: () => Promise; getAuthDetails: () => Promise; getAddress: () => Promise<`0x${string}`>; signMessage: (msg: SignableMessage) => Promise<`0x${string}`>; signTypedData: (params: TypedDataDefinition) => Promise; signTransaction: CustomSource["signTransaction"]; getUser: (email: string) => Promise<{ orgId: string; } | null>; addPasskey: (params?: CredentialCreationOptions) => Promise; exportWallet: (params: Parameters<(typeof this.inner)["exportWallet"]>[0]) => Promise; toViemAccount: () => LocalAccount; private authenticateWithEmail; private authenticateWithPasskey; private registerListeners; }