import { AbstractMessageSchema, ChainedNamespace, DappMetadata, ExtractSchema, IntmaxConnectResult, SchemaNamespace } from "../types/protocol"; import { NamespaceProvider } from "./providers"; import { BaseStorage } from "./store"; export type DappClientOptions; }> = { wallet: { url: string; name: string; window?: { width?: number; height?: number; mode?: "popup" | "iframe"; } | { window: Window; onClose: () => void; mode: "custom"; }; }; metadata: DappMetadata; providers?: Providers; storage?: BaseStorage; }; export type IntmaxDappClient; }> = { connect: () => Promise; provider: (namespace: ChainedNamespace | NS) => Providers[NS] extends NamespaceProvider ? T : never; }; export declare const intmaxDappClient: ]?: NamespaceProvider | undefined; }, Schema extends AbstractMessageSchema = [{ type: "notice"; namespace: "intmax"; method: "intmax_ready"; params?: undefined; result: import("../types/protocol").IntmaxReadyResult; }, { type: "approval"; namespace: "intmax"; method: "intmax_connect"; params?: undefined; result: { supportedNamespaces: import("../types/protocol").Namespace[]; supportedChains: `${string}:${string}`[]; accounts: { eip155: `0x${string}`[]; }; }; }, { type: "approval"; namespace: "eip155"; method: "eth_requestAccounts"; params?: undefined; result: `0x${string}`[]; }, { type: "approval"; namespace: "eip155"; method: "eth_sendTransaction"; params: [transaction: import("viem").RpcTransactionRequest]; result: `0x${string}`; }, { type: "approval"; namespace: "eip155"; method: "eth_sign"; params: [address: `0x${string}`, data: `0x${string}`]; result: `0x${string}`; }, { type: "approval"; namespace: "eip155"; method: "eth_signTransaction"; params: [transaction: import("viem").RpcTransactionRequest]; result: `0x${string}`; }, { type: "approval"; namespace: "eip155"; method: "eth_signTypedData_v4"; params: [address: `0x${string}`, message: string | object]; result: `0x${string}`; }, { type: "approval"; namespace: "eip155"; method: "personal_sign"; params: [data: `0x${string}`, address: `0x${string}`]; result: `0x${string}`; }, { type: "approval"; namespace: "eip155"; method: "wallet_addEthereumChain"; params: [chainParams: import("viem").AddEthereumChainParameter]; result: null; }, { type: "approval"; namespace: "eip155"; method: "wallet_watchAsset"; params: [asset: import("viem").WatchAssetParams]; result: null; }, { type: "readonly"; namespace: "eip155"; method: "eth_accounts"; params?: undefined; result: `0x${string}`[]; }, { type: "readonly"; namespace: "eip155"; method: "eth_chainId"; params?: undefined; result: string; }, { type: "readonly"; namespace: "eip155"; method: "wallet_switchEthereumChain"; params: [chain: { chainId: string; }]; result: null; }], _Schema extends AbstractMessageSchema = ExtractSchema>(opt: DappClientOptions<_Schema, Providers>) => IntmaxDappClient<_Schema, Providers>; //# sourceMappingURL=dappClient.d.ts.map