UNPKG

@affinidi-tdk/iota-browser

Version:

Browser module to fetch data through Affinidi Iota Framework

29 lines (28 loc) 814 B
import { IotaResponseCallbackFunction, OpenMode } from './helpers'; import { Session } from './session'; export type IotaRequestParams = { session: Session; correlationId: string; payload: { request: string; client_id: string; }; }; export type OpenVaultParams = { link?: string; /** @defaultValue NewTab */ mode?: OpenMode; }; export declare class IotaRequest { private session; correlationId: string; payload: { request: string; client_id: string; }; constructor(params: IotaRequestParams); getResponse(): Promise<import("./helpers").IotaResponse>; getResponseWithCallback(correlationId: string, callback: IotaResponseCallbackFunction): void; openVault(params?: OpenVaultParams): void; getSuggestedLink(): string; }