UNPKG

@junobuild/admin

Version:

A library for interfacing with admin features of Juno

10 lines (9 loc) 599 B
import { HttpAgent, type ActorConfig, type ActorMethod, type ActorSubclass } from '@dfinity/agent'; import type { IDL } from '@dfinity/candid'; import type { ActorParameters } from '../types/actor.types'; export declare const createActor: <T = Record<string, ActorMethod>>({ canisterId, idlFactory, config, ...rest }: { idlFactory: IDL.InterfaceFactory; canisterId: string; config?: Pick<ActorConfig, "callTransform" | "queryTransform">; } & ActorParameters) => Promise<ActorSubclass<T>>; export declare const useOrInitAgent: ({ agent, ...rest }: ActorParameters) => Promise<HttpAgent>;