import type { Rhodium } from "./Rhodium.mts"; import type { Errored } from "./terminology.mts"; /** * The return type of a successfully settled {@link Rhodium}. */ export interface RhodiumFulfilledResult extends PromiseFulfilledResult { reason?: never; } /** * The return type of a rejected settled {@link Rhodium}. */ export interface RhodiumRejectedResult extends PromiseRejectedResult { value?: never; reason: E; } /** * The return type of any settled {@link Rhodium}. */ export type RhodiumSettledResult = RhodiumFulfilledResult | RhodiumRejectedResult; /** * Creates a Rhodium that is resolved when the provided value resolves or rejects. * Syntax sugar for {@linkcode Rhodium.then}. */ export declare function oneSettled(rhodium: Rhodium): Rhodium, never>; type AllSettled[]> = { -readonly [P in keyof Ps]: RhodiumSettledResult, Errored>; }; /** * Creates a Rhodium that is * resolved with an array of results when all of the provided values resolve or reject. */ export declare function allSettled[]>(values: Ps): Rhodium, never>; export {};