import { Mutex } from "./mutex"; /** * A class to manage the flow of coroutines using signals. */ export declare class Signal { private callback; private chain; /** * Send a signal. */ notify(): Promise; /** * Wait until a signal is send. */ wait(): Promise; /** * Repeat a function until a signal is send. */ repeat(f: (cancel: Signal) => Promise, timeout?: number): Promise; /** * Wait for a given time period unless a signal is send. */ timeout(time: number): Promise; while(f: (stop: Mutex) => Promise): Promise; } //# sourceMappingURL=signal.d.ts.map