blob: d7eb09a7801608ce804659f21846cbb2700559e0 [file] [log] [blame]
/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {NumericChangeId} from '../../types/common';
import {Finalizable} from '../registry';
export interface StorageObject {
message?: string;
updated: number;
}
export interface StorageService extends Finalizable {
getEditableContentItem(key: string): StorageObject | null;
setEditableContentItem(key: string, message: string): void;
eraseEditableContentItem(key: string): void;
eraseEditableContentItemsForChangeEdit(changeNum?: NumericChangeId): void;
}