import { Provider } from '@canton-network/core-splice-provider'; import type { RpcTypes as DappRpcTypes } from '@canton-network/core-wallet-dapp-rpc-client'; import type { ProviderAdapter, WalletInfo } from '@canton-network/core-wallet-discovery'; import type { ProviderId, ProviderType } from '@canton-network/core-wallet-dapp-rpc-client'; export type ExtensionAdapterConfig = { providerId?: ProviderId | undefined; name?: string | undefined; icon?: string | undefined; description?: string | undefined; /** Optional routing key used for postMessage targeting. */ target?: string | undefined; }; /** * ProviderAdapter for any CIP-103 compliant wallet exposed as a browser extension. * * provider() returns a DappProvider which communicates via postMessage * and implements the full openrpc-dapp-api.json surface directly. */ export declare class ExtensionAdapter implements ProviderAdapter { readonly providerId: ProviderId; readonly name: string; readonly type: ProviderType; readonly icon: string | undefined; private readonly description; readonly target?: string | undefined; constructor(config?: ExtensionAdapterConfig); getInfo(): WalletInfo; detect(): Promise; provider(): Provider; teardown(): void; restore(): Promise | null>; } //# sourceMappingURL=extension-adapter.d.ts.map