import { AccountSigner } from "./types.js"; import { PolyesterEnvironment } from "../environment.js"; import { LocalAccount } from "viem"; //#region src/account-signer/create-polyester-account-signer.d.ts interface CreatePolyesterAccountSignerParams { /** The environment this signer should authenticate against */ environment: PolyesterEnvironment; /** The owner account (EOA) that will sign messages */ owner: LocalAccount; /** Salt nonce for deriving different Safe addresses from the same owner (default: 0n) */ saltNonce?: bigint; } /** * Derives the Polyester Safe smart account address and a Safe/ERC-6492 signer * without any RPC calls. * * The returned signMessage produces ERC-6492 wrapped signatures matching what * toSafeSmartAccount.signMessage() would produce for an undeployed Safe. That * form is accepted for subaccount creation but NOT for login, which requires the * owner EOA's raw 65-byte EIP-191 signature. For login, use this only to derive * accountAddress and build an AccountSigner whose signMessage calls * owner.signMessage directly (see the README quickstart). * * For actual chain interactions (UserOperations), use createPolyesterSmartAccount instead. * * @param params - Owner account and optional salt nonce * @returns An AccountSigner with the derived Safe address and a wrapped signer */ declare function createPolyesterAccountSigner(params: CreatePolyesterAccountSignerParams): AccountSigner; //#endregion export { CreatePolyesterAccountSignerParams, createPolyesterAccountSigner }; //# sourceMappingURL=create-polyester-account-signer.d.ts.map