import type { ComputedRef } from 'vue'; export interface ComputedAsyncOptions { /** * Should value be evaluated lazily * * @default false */ lazy?: boolean; /** * Callback when error is caught. */ onError?: (e: unknown) => void; } export type ComputedAsync = ComputedRef & { get: () => Promise; /** * Manually trigger the re-evaluation of the computed value */ refresh: () => Promise; /** * Manually invalidate computed value */ invalidate: () => void; }; /** * Create an asynchronous computed dependency. * Based on @see https://vueuse.org/computedAsync * @param evaluation The promise-returning callback which generates the computed value */ export declare function computedAsync(evaluation: () => T | Promise, options?: ComputedAsyncOptions): ComputedAsync;