import type { IConnector } from "./connectors"; import type { ActorSubclass, Agent } from "@dfinity/agent"; import type { IDL } from "@dfinity/candid"; import type { Principal } from "@dfinity/principal"; import { ConnectError, CreateActorError, DisconnectError, InitError } from "./connectors"; declare type Config = { whitelist: Array; host: string; dev: Boolean; }; declare type IC = { createActor: (args: { canisterId: string; interfaceFactory: IDL.InterfaceFactory; }) => Promise>; agent: Agent; getPrincipal: () => Promise; isConnected: () => Promise; disconnect: () => Promise; requestConnect: (Config: any) => Promise; }; declare class InfinityWallet implements IConnector { #private; meta: { features: never[]; icon: { light: any; dark: any; }; id: string; name: string; }; get identity(): any; get principal(): string | undefined; get client(): any; get ic(): IC | undefined; constructor(userConfig?: {}); set config(config: Config); get config(): Config; init(): Promise | import("neverthrow").Ok<{ isConnected: boolean; }, never>>; isConnected(): Promise; createActor(canisterId: string, idlFactory: IDL.InterfaceFactory): Promise | import("neverthrow").Ok, never>>; connect(): Promise | import("neverthrow").Err>; disconnect(): Promise | import("neverthrow").Err>; } export { InfinityWallet, };