import { Readable } from "svelte/store"; import { AsyncReadable } from "./async-readable.js"; type StoreValue = T extends AsyncReadable ? U : T extends Readable ? U : never; type AsyncStoreValue = T extends AsyncReadable ? U : never; export declare function asyncDerived>(store: S, derive: (value: AsyncStoreValue) => Promise | T): AsyncReadable; export interface JoinAsyncOptions { errors?: "filter_out" | "bubble"; pendings?: "filter_out" | "bubble"; } export declare function joinAsync(stores: [AsyncReadable], joinOptions?: JoinAsyncOptions): AsyncReadable<[T]>; export declare function joinAsync(stores: [AsyncReadable, AsyncReadable], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U]>; export declare function joinAsync(stores: [AsyncReadable, AsyncReadable, AsyncReadable], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X, Y]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X, Y, Z]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X, Y, Z, A]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X, Y, Z, A, B]>; export declare function joinAsync(stores: [ AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable, AsyncReadable ], joinOptions?: JoinAsyncOptions): AsyncReadable<[T, U, V, W, X, Y, Z, A, B, C]>; export declare function joinAsync(stores: Array>, joinOptions?: JoinAsyncOptions): AsyncReadable>; export declare function deriveStore>(store: S, deriveStoreFn: (value: StoreValue) => Readable): Readable; export declare function asyncDeriveStore>(store: S, deriveStoreFn: (value: AsyncStoreValue) => AsyncReadable | Promise>): AsyncReadable; export declare function asyncDeriveAndJoin(store: AsyncReadable, fn: (arg: T) => AsyncReadable): AsyncReadable<[T, U]>; export {}; //# sourceMappingURL=async-derived.d.ts.map