import type { InnerWalletApiClient } from "../../types.ts"; import { type Address, type IsUndefined } from "viem"; import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc"; type RpcSchema = Extract; export type PrepareSignParams = Omit & (IsUndefined extends true ? { from: Address; } : { from?: never; }); export type PrepareSignResult = RpcSchema["ReturnType"]; /** * Prepares a signature request for signing messages or transactions. * * @param {InnerWalletApiClient} client - The wallet API client to use for the request * @param {PrepareSignParams} params - Parameters for preparing the signature request * @returns {Promise} A Promise that resolves to the prepare sign result containing a signature request * * @example * ```ts * // Prepare a message to be signed * const result = await client.prepareSign({ * from: "0x1234...", * type: "personal_sign", * data: "Hello, world!", * }); * ``` */ export declare function prepareSign(client: InnerWalletApiClient, params: PrepareSignParams): Promise; export {}; //# sourceMappingURL=prepareSign.d.ts.map