import { type SmartAccountAuthenticator } from "@alchemy/aa-core"; import { type FordefiProviderConfig, FordefiWeb3Provider } from "@fordefi/web3-provider"; import { type SignableMessage, type TypedDataDefinition } from "viem"; /** * This class requires the `@fordefi/web3-provider` dependency. * `@alchemy/aa-signers` lists it as optional dependency. * * @see https://github.com/FordefiHQ/web3-provider */ export declare class FordefiSigner implements SmartAccountAuthenticator { inner: FordefiWeb3Provider; private signer; constructor(params: FordefiProviderConfig | { inner: FordefiWeb3Provider; }); readonly signerType = "aa-signers:fordefi"; /** * Returns the address managed by this signer. * * @returns the address managed by this signer * @throws if the provider is not authenticated, or if the address was not found */ getAddress: () => Promise<`0x${string}`>; /** * Signs a message with the authenticated account. * * @param msg the message to sign * @returns the address of the authenticated account * @throws if the provider is not authenticated */ signMessage: (msg: SignableMessage) => Promise<`0x${string}`>; /** * Signs a typed data object with the authenticated account. * * @param params the data object to sign * @returns the signed data as a hex string * @throws if the provider is not authenticated */ signTypedData: (params: TypedDataDefinition) => Promise<`0x${string}`>; /** * Authenticates with the Fordefi platform and verifies that this client * is authorized to manage the account. * This step is required before any signing operations can be performed. * * @returns void * @throws if no provider was found, or if authentication failed */ authenticate: () => Promise; /** * Verifies that this signer is authenticated, and throws an error otherwise. * Authentication details are not available. * * @returns void * @throws Error if this signer is not authenticated */ getAuthDetails: () => Promise; } //# sourceMappingURL=signer.d.ts.map