export declare const END: unique symbol; export declare const ERROR: unique symbol; export type Enqueueable = T | Promise | typeof END | typeof ERROR; export type Resolver = (value: T | PromiseLike) => void; export type EndOptions = { immediately?: boolean; withError?: Error; }; export declare class FastFIFO { private hwm; private head; private tail; private resolve; constructor(hwm: number); push(val: Enqueueable): void; shift(): (Enqueueable & ({} | null)) | undefined; peek(): Enqueueable | undefined; isEmpty(): boolean; close(): void; [Symbol.asyncIterator](): AsyncGenerator | Awaited, void, unknown>; }