export declare class Writable { #private; state: T; constructor(value: T, start?: StartStopNotifier); set(new_value: T): void; update(fn: Updater): void; subscribe(run: Subscriber, invalidate?: Invalidator): Unsubscriber; } /** Start and stop notification callbacks. */ type StartStopNotifier = (set: Subscriber) => Unsubscriber | void; /** Callback to inform of a value updates. */ export type Subscriber = (value: T) => void; /** Unsubscribes from value updates. */ export type Unsubscriber = () => void; /** Callback to update a value. */ type Updater = (value: T) => T; /** Cleanup logic callback. */ type Invalidator = (value?: T) => void; export {};