import { Algorithm } from 'crypt'; declare const NumMinimumShares = 3; type Packet = Uint8Array; type Secret = Uint8Array; declare function isEqual(s: Secret, s2: Secret): boolean; interface ThresholdAlgorithm { getName(): string; dealShares(secret: Secret, threshold: number, total: number): Share[]; combineShares(shares: Share[]): Secret; } interface Share { getAlgorithm(): Algorithm; serialize(): Uint8Array; } export type { ThresholdAlgorithm, Secret, Packet, Share }; export { NumMinimumShares, isEqual };