import { Continuation, Continuations } from "./AsyncBuilder.js"; import { CancellationToken } from "./AsyncBuilder.js"; import { IAsync } from "./AsyncBuilder.js"; import { IAsyncContext } from "./AsyncBuilder.js"; import { FSharpChoice$2_$union } from "./Choice.js"; export declare class Async<_T> { } export declare function makeAsync(body: IAsync): IAsync; export declare function invoke(computation: IAsync, ctx: IAsyncContext): void; export declare function callThenInvoke(ctx: IAsyncContext, result1: U, part2: (x: U) => IAsync): void; export declare function bind(ctx: IAsyncContext, part1: IAsync, part2: (x: U) => IAsync): void; export declare function createCancellationToken(arg?: boolean | number): CancellationToken; export declare function cancel(token: CancellationToken): void; export declare function cancelAfter(token: CancellationToken, ms: number): void; export declare function isCancellationRequested(token: CancellationToken): boolean; export declare function throwIfCancellationRequested(token: CancellationToken): void; export declare function startChild(computation: IAsync, ms?: number): IAsync>; export declare function awaitPromise(p: Promise): (ctx: IAsyncContext) => void; export declare function cancellationToken(): (ctx: IAsyncContext) => void; export declare const defaultCancellationToken: CancellationToken; export declare function catchAsync(work: IAsync): (ctx: IAsyncContext>) => void; export declare function fromContinuations(f: (conts: Continuations) => void): (ctx: IAsyncContext) => void; export declare function ignore(computation: IAsync): (ctx: IAsyncContext) => void; export declare function parallel(computations: Iterable>): (ctx: IAsyncContext[]>) => void; export declare function sequential(computations: Iterable>): (ctx: IAsyncContext) => void; export declare function sleep(millisecondsDueTime: number): (ctx: IAsyncContext) => void; export declare function runSynchronously(): never; export declare function start(computation: IAsync, cancellationToken?: CancellationToken): void; export declare function startImmediate(computation: IAsync, cancellationToken?: CancellationToken): void; export declare function startWithContinuations(computation: IAsync, continuation?: Continuation | CancellationToken, exceptionContinuation?: Continuation, cancellationContinuation?: Continuation, cancelToken?: CancellationToken): void; export declare function startAsPromise(computation: IAsync, cancellationToken?: CancellationToken): Promise; export default Async;