import { Readable, Subscriber, Unsubscriber } from "svelte/store"; export type AsyncStatus = { status: "pending"; } | { status: "complete"; value: T; } | { status: "error"; error: any; }; export type AsyncReadable = Readable>; export declare function asyncReadable(load: (set: Subscriber) => Promise): AsyncReadable; export declare function lazyLoad(load: () => Promise): AsyncReadable; export declare function lazyLoadAndPoll(load: () => Promise, pollIntervalMs: number, firstLoad?: () => Promise): AsyncReadable; export declare function completed(v: T): AsyncReadable; export declare function alwaysSubscribed(readable: Readable): Readable; //# sourceMappingURL=async-readable.d.ts.map