import { HalfCryptoKeyPair } from "encryption/types"; import { JSONValue } from "encoding/json/types"; import { ExportedKey } from "encoding/key"; export interface SignedData { data: JSONValue; signature: string; } export interface AsymmetricDataSignerI { sign(jsonableInput: JSONValue): Promise; verify(signedObject: SignedData): Promise; } export declare function AsymmetricDataSigner(signingKeyPair: CryptoKeyPair | HalfCryptoKeyPair): AsymmetricDataSignerI; export declare namespace AsymmetricDataSigner { var getDefaultAlgorithm: () => RsaHashedKeyGenParams; var generateKeyPair: () => Promise; var verifyAgainst: (publicKeyObj: ExportedKey, signedObject: SignedData) => Promise; }