import { ClientDisplayableError } from '@standardnotes/responses' import { DecryptedItemInterface, TrustedContactInterface, SharedVaultListingInterface, VaultListingInterface, KeySystemRootKeyStorageMode, } from '@standardnotes/models' import { AbstractService } from '../Service/AbstractService' import { SharedVaultServiceEvent, SharedVaultServiceEventPayload } from './SharedVaultServiceEvent' export interface SharedVaultServiceInterface extends AbstractService { createSharedVault(dto: { name: string description?: string userInputtedPassword: string | undefined storagePreference?: KeySystemRootKeyStorageMode }): Promise deleteSharedVault(sharedVault: SharedVaultListingInterface): Promise convertVaultToSharedVault(vault: VaultListingInterface): Promise getItemLastEditedBy(item: DecryptedItemInterface): TrustedContactInterface | undefined getItemSharedBy(item: DecryptedItemInterface): TrustedContactInterface | undefined }