@test-org122/hypernet-core
Version:
Hypernet Core. Represents the SDK for running the Hypernet Protocol.
14 lines • 911 B
TypeScript
import { ParentProxy } from "@test-org122/utils";
import { ResultAsync } from "neverthrow";
import { IResolutionResult } from "@test-org122/merchant-connector";
import { MerchantConnectorError, MerchantValidationError } from "@interfaces/objects/errors";
import { HexString, PublicKey } from "@interfaces/objects";
import { IMerchantConnectorProxy } from "@interfaces/utilities";
export declare class MerchantConnectorProxy extends ParentProxy implements IMerchantConnectorProxy {
constructor(element: HTMLElement | null, iframeUrl: string);
activateConnector(): ResultAsync<void, MerchantConnectorError>;
resolveChallenge(paymentId: HexString): ResultAsync<IResolutionResult, MerchantConnectorError>;
getPublicKey(): ResultAsync<PublicKey, MerchantConnectorError>;
getValidatedSignature(): ResultAsync<string, MerchantValidationError>;
}
//# sourceMappingURL=MerchantConnectorProxy.d.ts.map