import { JsonValue, RawCoID, Stringified } from "../exports.js"; import { CojsonInternalTypes } from "../exports.js"; import { TransactionID } from "../ids.js"; import { CryptoProvider, Sealed, SealedForGroup, SealerID, SealerSecret, SessionMapImpl, ShortHash, SignerID, SignerSecret } from "./crypto.js"; import { Blake3Hasher } from "cojson-core-rn"; type Blake3State = Blake3Hasher; export declare class RNCrypto extends CryptoProvider { private constructor(); getSignerID(secret: SignerSecret): SignerID; newX25519StaticSecret(): Uint8Array; getSealerID(secret: SealerSecret): SealerID; blake3HashOnce(data: Uint8Array): Uint8Array; blake3HashOnceWithContext(data: Uint8Array, { context }: { context: Uint8Array; }): Uint8Array; shortHash(value: JsonValue): ShortHash; seal({ message, from, to, nOnceMaterial, }: { message: T; from: SealerSecret; to: SealerID; nOnceMaterial: { in: RawCoID; tx: TransactionID; }; }): Sealed; unseal(sealed: Sealed, sealer: SealerSecret, from: SealerID, nOnceMaterial: { in: RawCoID; tx: TransactionID; }): T | undefined; sealForGroup({ message, to, nOnceMaterial, }: { message: T; to: SealerID; nOnceMaterial: { in: RawCoID; tx: TransactionID; }; }): SealedForGroup; unsealForGroup(sealed: SealedForGroup, groupSealerSecret: SealerSecret, nOnceMaterial: { in: RawCoID; tx: TransactionID; }): T | undefined; createSessionMap(coID: RawCoID, headerJson: string, maxTxSize?: number, skipVerify?: boolean): SessionMapImpl; static create(): Promise; newEd25519SigningKey(): Uint8Array; sign(secret: CojsonInternalTypes.SignerSecret, message: JsonValue): CojsonInternalTypes.Signature; verify(signature: CojsonInternalTypes.Signature, message: JsonValue, id: CojsonInternalTypes.SignerID): boolean; encrypt(value: T, keySecret: CojsonInternalTypes.KeySecret, nOnceMaterial: N): CojsonInternalTypes.Encrypted; decryptRaw(encrypted: CojsonInternalTypes.Encrypted, keySecret: CojsonInternalTypes.KeySecret, nOnceMaterial: N): Stringified; } export {}; //# sourceMappingURL=RNCrypto.d.ts.map