@affinidi-tdk/iota-browser
Version:
Browser module to fetch data through Affinidi Iota Framework
18 lines (17 loc) • 918 B
TypeScript
import { ChannelProvider } from './channel-provider';
import { IotaError } from '../validators/error';
import { PresentationSubmission, VerifiablePresentation } from '../validators/ssi';
export declare class IotaResponse {
correlationId: string;
verifiablePresentation: VerifiablePresentation;
presentationSubmission: PresentationSubmission;
constructor(correlationId: string, verifiablePresentation: VerifiablePresentation, presentationSubmission: PresentationSubmission);
}
export type IotaResponseCallbackFunction = (err: IotaError | null, data: IotaResponse | null) => void;
export declare class ResponseHandler {
channelProvider: ChannelProvider;
constructor(channelProvider: ChannelProvider);
private getResponseHandler;
getResponse(correlationId: string): Promise<IotaResponse>;
getResponseWithCallback(correlationId: string, callback: IotaResponseCallbackFunction): void;
}