import { Writable } from 'svelte/store'; interface Serializer { parse(text: string): T; stringify(object: T): string; } type StorageType = 'local' | 'session'; interface Options { serializer?: Serializer; storage?: StorageType; } /** @deprecated `writable()` has been renamed to `persisted()` */ declare function writable(key: string, initialValue: T, options?: Options): Writable; declare function persisted(key: string, initialValue: T, options?: Options): Writable; export { persisted, writable };