/** * The key/value store one plugin sees. Every method is already bound to the * plugin it was made for, so no call takes an id: a plugin cannot name another * plugin's namespace because there is nowhere in this interface to put one. */ export interface PluginStorage { /** The stored value, or undefined when this plugin has never written that key. */ get(key: string): unknown; set(key: string, value: unknown): void; delete(key: string): void; /** This plugin's keys, in insertion-independent alphabetical order. */ keys(): string[]; } /** The store for one plugin id, with the id closed over rather than passed in. */ export declare function pluginStorage(id: string): PluginStorage; //# sourceMappingURL=storage.d.ts.map