import { type Keyset, type KeysetWithSecrets } from '@localfirst/crdx'; import { type Lockbox } from 'lockbox/types.js'; /** * "Rotating" a lockbox means replacing the keys it contains with new ones. * * For example, if the admin keys are compromised, we'll need to come up with a new set of keys; * then we'll need to find every lockbox that contained the old keys, and make a replacement lockbox * for each one, containing the new keys. * * ```js * const newAdminKeys = createKeyset({ type: ROLE, name: ADMIN }) * const newAdminLockboxForAlice = lockbox.rotate(adminLockboxForAlice, newAdminKeys) * ``` */ export declare const rotate: ({ oldLockbox, newContents, updatedRecipientKeys, }: rotateParameters) => Lockbox; type rotateParameters = { oldLockbox: Lockbox; newContents: KeysetWithSecrets; updatedRecipientKeys?: Keyset; }; export {}; //# sourceMappingURL=rotate.d.ts.map