export type Subscriber = (value: T) => void; export type Unsubscriber = () => void; export type Updater = (value: T) => T; export type StartStopNotifier = (set: (value: T) => void, update: (fn: Updater) => void) => void | (() => void); export interface Readable { subscribe(this: void, run: Subscriber, invalidate?: () => void): Unsubscriber; } export interface Writable extends Readable { set(this: void, value: T): void; update(this: void, updater: Updater): void; } export type Stores = Readable | [Readable, ...Array>] | Array>; export type StoresValues = T extends Readable ? U : { [K in keyof T]: T[K] extends Readable ? U : never; }; export declare function writable(value?: T, start?: StartStopNotifier): Writable; export declare function readable(value?: T, start?: StartStopNotifier): Readable; export declare function derived(stores: S, fn: (values: StoresValues, set: (value: T) => void, update: (fn: Updater) => void) => Unsubscriber | void, initialValue?: T): Readable; export declare function derived(stores: S, fn: (values: StoresValues) => T, initialValue?: T): Readable; export declare const readonly: (store: Readable) => Readable; export declare const get: (store: Readable) => T; //# sourceMappingURL=svelte.d.ts.map