/** * Disk-backed reactive key-value store for plugin state. * * Keeps an in-memory map that can be flushed to / loaded from a JSON file. * Supports glob-style subscriptions (`connector:*`, `*`). * * State is persisted to `/.skaile/plugin-state.json`. * The instance is available on {@link WorkspacePlugin} as the public `store` * field after `boot()` resolves. * * @docLink packages/workspace-plugin/concepts#plugin-store */ export declare class PluginStore { private readonly statePath; private data; private subscribers; constructor(statePath: string); /** Synchronous read from in-memory map. */ get(key: string): T | undefined; /** Write to in-memory map and notify matching subscribers. */ set(key: string, value: T): void; /** Remove key and notify matching subscribers. */ delete(key: string): void; /** * Subscribe to changes matching a glob-style pattern. * `*` matches any sequence of characters. * Returns an unsubscribe function. */ subscribe(pattern: string, handler: (key: string, value: unknown) => void): () => void; /** Rehydrate from disk JSON. Missing file = empty store (no throw). */ load(): Promise; /** Write entire store to disk as JSON. Creates parent dirs if needed. */ flush(): Promise; private notify; } //# sourceMappingURL=store.d.ts.map