import type { PersonalSignSignatureRequest, TypedDataSignatureRequest, AuthorizationSignatureRequest, Eip7702UnsignedAuth, EcdsaSig } from "@alchemy/wallet-api-types"; import type { WithoutRawPayload } from "../../types.ts"; import type { SmartWalletSigner } from "../index.js"; export type SignSignatureRequestParams = WithoutRawPayload; export type SignSignatureRequestResult = EcdsaSig["signature"]; /** * Signs a signature request using the provided signer. * This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization. * * @param {SmartAccountSigner} signer - The signer to use for signing the request * @param {SignSignatureRequestParams} params - The signature request parameters * @param {string} params.type - The type of signature request ('personal_sign', 'eth_signTypedData_v4', or 'signature_with_authorization') * @param {SignSignatureRequestParams["data"]} params.data - The data to sign, format depends on the signature type * @returns {Promise} A Promise that resolves to the signature result * * @example * ```ts * // Sign a personal message * const result = await client.signSignatureRequest({ * type: 'personal_sign', * data: 'Hello, world!' * }); * * // Sign typed data (EIP-712) * const result = await client.signSignatureRequest({ * type: 'eth_signTypedData_v4', * data: { * domain: { ... }, * types: { ... }, * primaryType: '...', * message: { ... } * } * }); * ``` */ export declare function signSignatureRequest(signer: SmartWalletSigner, params: SignSignatureRequestParams): Promise; //# sourceMappingURL=signSignatureRequest.d.ts.map