import { type CantonClient } from "@sigilry/dapp"; import type { CantonAccount, CantonConnectResult, CantonConnector, CantonConnectorEvent, CantonConnectorEventHandler, CantonLedgerApiParams, CantonPrepareExecuteAndWaitResult, CantonPrepareExecuteParams } from "../types/canton"; import { AnnouncedCantonProvider } from "./cip103Client"; /** * Browser-extension Canton connector: wraps one discovered CIP-103 provider * (bound to its announce `target`) and exposes the lifecycle methods. */ export declare class CantonBrowserConnector implements CantonConnector { readonly providerId: string; readonly name: string; readonly target: string | undefined; private readonly client; private readonly listeners; private _accounts; constructor(provider: AnnouncedCantonProvider, win?: Window, client?: CantonClient); get accounts(): CantonAccount[]; get address(): string | undefined; connect(): Promise; /** Silent connect: read accounts without prompting; throws if not connected. */ autoConnect(): Promise; disconnect(): Promise; ledgerApi(params: CantonLedgerApiParams): Promise; prepareExecuteAndWait(params: CantonPrepareExecuteParams): Promise; getAccounts(): Promise; on(event: E, handler: CantonConnectorEventHandler): void; off(event: E, handler: CantonConnectorEventHandler): void; private emit; private refreshAccounts; }