@reown/appkit-controllers
Version:
The full stack toolkit to build onchain app UX.
21 lines (20 loc) • 1.04 kB
TypeScript
import { type ChainNamespace } from '@reown/appkit-common';
import type { Connection } from '@reown/appkit-common';
import type { WcWallet } from './TypeUtil.js';
interface ExcludeConnectorAddressFromConnectionsParamters {
connections: Connection[];
connectorId?: string;
addresses?: string[];
}
export declare const ConnectionControllerUtil: {
getConnectionStatus(connection: Connection, namespace: ChainNamespace): "connected" | "disconnected" | "active";
excludeConnectorAddressFromConnections({ connections, connectorId, addresses }: ExcludeConnectorAddressFromConnectionsParamters): Connection[];
excludeExistingConnections(connectorIds: string[], newConnections: Connection[]): Connection[];
getConnectionsByConnectorId(connections: Connection[], connectorId: string): Connection[];
getConnectionsData(namespace: ChainNamespace): {
connections: Connection[];
recentConnections: Connection[];
};
onConnectMobile(wallet: WcWallet | undefined, wcPayUrl?: string): void;
};
export {};