@particle-network/connectkit
Version:
12 lines (11 loc) • 700 B
TypeScript
import { type SwitchAccountParameters, type SwitchAccountReturnType } from '../actions/switchAccount';
import { type MutationOptions } from './useMutation';
export type UseSwitchAccountParameters = MutationOptions<SwitchAccountReturnType, SwitchAccountParameters>;
export declare function useSwitchAccount(parameters?: UseSwitchAccountParameters): {
connectors: import("@particle-network/connector-core").Connector[];
switchAccount: (variables: SwitchAccountParameters) => void;
switchAccountAsync: (variables: SwitchAccountParameters) => Promise<SwitchAccountReturnType>;
status: "error" | "success" | "idle" | "loading";
data: SwitchAccountReturnType | null;
error: any;
};