export declare class Barrier { #private; /** Creates a new barrier in the given state. The default is paused: true */ constructor(paused: boolean); /** Pauses this barrier causing operations to wait. */ pause(): void; /** Resumes this barrier causing all operations to run. */ resume(): void; /** Waits until this barrier enters a resumed state. */ wait(): Promise; }