//#region src/models/ThresholdSession.d.ts /** * Threshold Session Model * * Tracks multi-party threshold reconstruction sessions */ /** * A collected share during threshold reconstruction * Different from ThresholdShare in VaultHeader which is the encrypted share data */ interface CollectedShare { identifier: number; data: string; providedBy: string; providedAt: Date; } interface ThresholdSession { id: string; vaultId: string; docId: string; threshold: number; shares: CollectedShare[]; status: 'pending' | 'complete' | 'expired' | 'failed'; reconstructedCek?: Uint8Array; initiatedBy: string; createdAt: Date; expiresAt?: Date; purpose?: string; } /** * Check if session has met threshold */ declare function hasMetThreshold(session: ThresholdSession): boolean; /** * Check if session is expired */ declare function isSessionExpired(session: ThresholdSession): boolean; //#endregion export { ThresholdSession, hasMetThreshold, isSessionExpired }; //# sourceMappingURL=ThresholdSession.d.mts.map