import { W as WorldAppProvider } from '../provider-DeDUsLbs.cjs'; /** * World App Wagmi Connector * * Thin wrapper that delegates to the shared EIP-1193 provider from * `@worldcoin/minikit-js`. All auth and RPC logic lives in the provider; * this connector just adapts the interface for wagmi. */ type WorldAppConnectorOptions = { /** Custom name for the connector */ name?: string; }; /** * Create a World App connector for Wagmi * * When running inside World App, this connector uses native MiniKit commands * via the shared EIP-1193 provider. It should be placed first in the * connectors list so it's used automatically in World App. * * @example * ```typescript * import { createConfig } from 'wagmi'; * import { worldApp } from '@worldcoin/minikit-js/wagmi'; * * const wagmiConfig = createConfig({ * connectors: [ * worldApp(), // Uses native MiniKit in World App * injected(), // Fallback for web * walletConnect({ ... }), * ], * // ... * }); * ``` */ declare function worldApp(options?: WorldAppConnectorOptions): (config: any) => { id: string; name: string; type: "worldApp"; setup(): Promise; connect(_parameters?: any): Promise; disconnect(): Promise; getAccounts(): Promise; getChainId(): Promise; getProvider(): Promise; isAuthorized(): Promise; switchChain({ chainId }: { chainId: number; }): Promise; onAccountsChanged(_accounts: string[]): void; onChainChanged(_chainId: string): void; onDisconnect(): void; }; export { type WorldAppConnectorOptions, worldApp };