import { d as XService, c as XConnector, X as XAccount } from '../../XConnector-12q0OVe5.js'; import { StacksNetworkName, XToken } from '@sodax/types'; import { StacksNetwork } from '@sodax/libs/stacks/core'; import { StacksProvider } from '@sodax/libs/stacks/connect'; declare class StacksXService extends XService { private static instance; network: StacksNetwork; private constructor(); static getInstance(network?: StacksNetworkName | StacksNetwork): StacksXService; /** * @warning Network / fetch / contract-read failures are silently swallowed — * `0n` is returned on any error. Callers cannot distinguish "zero balance" * from "fetch failed"; UI that needs to surface the failure must wrap this * call externally and re-fetch on its own error path. */ getBalance(address: string | undefined, xToken: XToken): Promise; } interface StacksProviderConfig { /** The provider ID matching the window path, e.g. 'LeatherProvider' or 'XverseProviders.BitcoinProvider' */ id: string; name: string; icon: string; installUrl?: string; } declare class StacksXConnector extends XConnector { private readonly config; constructor(config: StacksProviderConfig); connect(): Promise; disconnect(): Promise; get icon(): string; get isInstalled(): boolean; get installUrl(): string | undefined; getProvider(): StacksProvider | undefined; } declare const STACKS_PROVIDERS: StacksProviderConfig[]; declare function useStacksXConnectors(): StacksXConnector[]; export { STACKS_PROVIDERS, type StacksProviderConfig, StacksXConnector, StacksXService, useStacksXConnectors };