import { type ExcludeNoUpdate } from './no-update.js'; /** * The possible types for an async observable's value, each representing a different potential phase * in the promise lifecycle. * * @category AsyncValue */ export type AsyncValue = Error | Promise> | ExcludeNoUpdate; /** * Maps an async value to a new async value. * * @category AsyncValue */ export declare function mapAsyncValue(asyncValue: AsyncValue, mapper: (value: NoInfer) => MappedValue): AsyncValue; /** * If the given async value is resolved, return `true`. Otherwise, `false`. Type guards the input. * * @category AsyncValue */ export declare function isAsyncValueResolved(asyncValue: AsyncValue): asyncValue is ExcludeNoUpdate; /** * If the given async value is resolved, its value is returned. Otherwise, `undefined` is returned. * * @category AsyncValue */ export declare function resolvedAsyncValue(asyncValue: AsyncValue): T | undefined;