import type { IConnector, IWalletConnector } from "./connectors"; import { IDL } from "@dfinity/candid"; import { ActorSubclass, Agent } from "@dfinity/agent"; import { Principal } from "@dfinity/principal"; import { BalanceError, ConnectError, CreateActorError, DisconnectError, InitError, TransferError } from "./connectors"; declare type Plug = { createActor: (args: { canisterId: string; interfaceFactory: IDL.InterfaceFactory; }) => Promise>; agent: Agent; createAgent: (options: { host: string; whitelist: Array; }) => Promise; getPrincipal: () => Promise; isConnected: () => Promise; disconnect: () => Promise; requestConnect: (Config: any) => Promise; accountId: string; requestTransfer: (args: { to: string; amount: number; opts?: { fee?: number; memo?: string; from_subaccount?: number; created_at_time?: { timestamp_nanos: number; }; }; }) => Promise<{ height: number; }>; requestBalance: () => Promise>; getManagementCanister: () => Promise; }; declare class PlugWallet implements IConnector, IWalletConnector { #private; meta: { features: string[]; icon: { light: any; dark: any; }; id: string; name: string; }; get identity(): any; get wallets(): { principal: string; accountId: string; }[]; get principal(): string | undefined; get client(): any; get ic(): Plug | undefined; constructor(userConfig?: {}); set config(config: { whitelist: string[]; host: string; dev: boolean; onConnectionUpdate: () => void; }); get config(): { whitelist: string[]; host: string; dev: boolean; onConnectionUpdate: () => void; }; init(): Promise | import("neverthrow").Ok<{ isConnected: boolean; }, never>>; status(): Promise; isConnected(): Promise; createActor(canisterId: string, idlFactory: IDL.InterfaceFactory): Promise | import("neverthrow").Ok, never>>; connect(): Promise | import("neverthrow").Err>; disconnect(): Promise | import("neverthrow").Err>; requestTransfer(opts: { amount: number; to: string; symbol?: string; standard?: string; decimals?: number; fee?: number; memo?: bigint; createdAtTime?: Date; fromSubAccount?: number; }): Promise | import("neverthrow").Err>; queryBalance(): Promise | import("neverthrow").Ok<{ amount: number; canisterId: string; decimals: number; image?: string | undefined; name: string; symbol: string; }[], never>>; } export { PlugWallet, };