import { LazyDisposable } from '@typed/disposable'; import { FailEnv } from '../failures'; export interface Fiber extends LazyDisposable { info: FiberInfo; } export declare const FiberFailure: unique symbol; export declare type FiberFailure = FailEnv; export declare const enum FiberState { Running = 0, Returned = 1, Error = 2 } export declare type FiberInfo = { readonly state: FiberState.Running; readonly promise: Promise; } | { readonly state: FiberState.Error; readonly error: Error; } | { readonly state: FiberState.Returned; readonly value: B; }; //# sourceMappingURL=Fiber.d.ts.map