/** * From: https://github.com/sveltejs/svelte/blob/master/src/runtime/store/index.ts * Documentation: https://svelte.dev/docs#run-time-svelte-store */ import { type ReadableStore, type Stores, type StoreStartStopNotifier, type StoresValues, type StoreUnsubscriber, type WritableStore } from './types'; /** * Creates a `Readable` store that allows reading by subscription. */ export declare function readable(value?: T, start?: StoreStartStopNotifier): ReadableStore; /** * Create a `Writable` store that allows both updating and reading by subscription. */ export declare function writable(value?: T, start?: StoreStartStopNotifier): WritableStore; /** * Derived value store by synchronizing one or more readable stores and * applying an aggregation function over its input values. */ export declare function derived(stores: S, fn: (values: StoresValues, set: (value: T) => void) => StoreUnsubscriber | void, initialValue?: T): ReadableStore; /** * Derived value store by synchronizing one or more readable stores and * applying an aggregation function over its input values. */ export declare function derived(stores: S, fn: (values: StoresValues) => T, initialValue?: T): ReadableStore; /** * Derived value store by synchronizing one or more readable stores and * applying an aggregation function over its input values. */ export declare function derived(stores: S, fn: (values: StoresValues) => T): ReadableStore; declare function getStoreValue(store: ReadableStore): T; export { getStoreValue as get }; //# sourceMappingURL=stores.d.ts.map