export { Fiber as t }; /** * A fiber's state. */ export declare enum State { Active = "Active", Terminated = "Terminated" } /** * A `Fiber` represents a lightweight background task. Unlike a thread, the * lifecycle of a fiber is managed entirely by the user program. * * A fiber starts in an `Active` state and may be terminated at some unknown * point in the future. */ export declare class Fiber { #private; /** * A unique identifier for this fiber. */ readonly id: string; get state(): State; stateChange: import("./Observable/Observable.js").t; constructor( /** * A unique identifier for this fiber. */ id?: string); /** * Terminates the fiber. The fiber's state will transition to `Terminated` and * then complete. */ terminate(): void; [Symbol.dispose](): void; } /** * Get a reference to a Fiber from its id. */ export declare const get: (id: string) => T | null; /** * Creates a new `Fiber`. */ export declare const init: (id?: string) => Fiber; //# sourceMappingURL=Fiber.d.ts.map