1 import type { PrivateKeyReference } from '@proton/crypto';
3 import type { Address, InactiveKey, Key, User } from '../../interfaces';
5 export interface KeyReactivationData {
8 privateKey?: PrivateKeyReference;
11 export type KeyReactivationRecord =
15 keysToReactivate: KeyReactivationData[];
20 keysToReactivate: KeyReactivationData[];
23 export type OnKeyReactivationCallback = (id: string, result: 'ok' | Error) => void;
25 export interface KeyReactivationRequestStateData {
29 result?: 'ok' | Error;
32 export type KeyReactivationRequestState =
36 keysToReactivate: KeyReactivationRequestStateData[];
41 keysToReactivate: KeyReactivationRequestStateData[];
44 export type KeyReactivationRequest =
48 keysToReactivate: InactiveKey[];
53 keysToReactivate: InactiveKey[];