import AuthManager from './auth-manager' import EncryptionManager from './encryption-manager' export type GetContentPayload = { key: string } export type GetContentResponsePayload = { id: string, content: string } export type CreateContentPayload = { key: string, content: string } export type CreateContentResponse = { id: string } export type DeleteTokenPayload = { key: string, id?: string } export type SwapContentPayload = { key: string, content: string, id?: string } export type SwapContentResponse = { id: string } export type StorageInformation = { used: number, available: number } export type Backup = { key: string, id: string }[] export type Config = { serviceUrl: string authManager?: AuthManager encryptionManager: EncryptionManager }