export interface ReadableStore { /** Svelte store contract: subscribe, get an unsubscribe back. */ subscribe: (run: (value: T) => void) => () => void; } export interface WritableStore extends ReadableStore { set: (value: T) => void; get: () => T; } /** * `onActiveChange` mirrors Svelte's own start/stop notifier: it is called with * `true` when the store gains its first subscriber and `false` when it loses * its last (e.g. the `$store` auto-subscription of a destroyed component). */ export declare const writable: (initial?: T, onActiveChange?: (active: boolean) => void) => WritableStore; //# sourceMappingURL=store.d.ts.map