import type { WalletServerRpcSchemaType } from "@alchemy/wallet-api-types/rpc"; import type { InnerWalletApiClient, WithoutChainId } from "../../types.ts"; import { type Address, type IsUndefined } from "viem"; type RpcSchema = Extract; export type FormatSignParams = Omit, "from"> & (IsUndefined extends true ? { from: Address; } : { from?: never; }); export type FormatSignResult = RpcSchema["ReturnType"]; /** * Formats a signature request for signing messages or transactions. * * @param {InnerWalletApiClient} client - The wallet API client to use for the request * @param {FormatSignParams} params - Parameters for formatting the signature * @returns {Promise} A Promise that resolves to the formatSign result containing the formatted signature. * * @example * ```ts * // Formats a signature * const result = await client.formatSign({ * from: "0x1234...", * signature: { * type: "ecdsa", * data: "0xabcd..." * }, * }); * ``` */ export declare function formatSign(client: InnerWalletApiClient, params: FormatSignParams): Promise; export {};