UNPKG

@slide-computer/signer-web

Version:

JavaScript and TypeScript library to communicate with web signers on the Internet Computer

19 lines (18 loc) 605 B
import { type Channel, type Transport } from "@slide-computer/signer"; import { HttpAgent } from "@dfinity/agent"; export declare class AgentTransportError extends Error { constructor(message: string); } export interface AgentTransportOptions { /** * Used to make canister calls * @default uses anonymous {@link HttpAgent} by default */ agent: HttpAgent; } export declare class AgentTransport implements Transport { #private; private constructor(); static create(options?: AgentTransportOptions): Promise<AgentTransport>; establishChannel(): Promise<Channel>; }