import { MaybeAsync, buildManualPromise } from '../../../../shared/dist/esm/index'; import { AsyncComputedOptions } from '@vueuse/core'; import { ComputedRef } from 'vue'; export interface AsyncWritableComputedOptions { get: (...args: any[]) => MaybeAsync; set: (value: T) => MaybeAsync; initialState: T; readOptions?: AsyncComputedOptions; asyncRead?: boolean; debugging?: Partial<{ log: { name: string; writesOnly?: boolean; readsOnly?: boolean; logger?: (msg: string, ...args: any[]) => void; }; }>; } export type AsyncWritableComputedRef = ComputedRef & { update: AsyncWritableComputedOptions['set']; }; /** * Allows async read/write from/to computed. Use `res.value` to read and `res.update` to write. If you only need * the computed to be read-only then use vueuse's `computedAsync`. If you only need async writes you can * disable async reads through the `asyncRead` param. * @param params */ export declare function writableAsyncComputed(params: AsyncWritableComputedOptions): AsyncWritableComputedRef; export { buildManualPromise };