export declare const queue: Array<() => Promise>; export declare let isProcessing: boolean; /** This function returns a Promise that resolves as soon as the function gets called from during the queue processing. */ export declare function enqueue(func: () => Promise): Promise; /** Shifts the first function from the queue and executes it */ export declare function processQueue(): Promise; /** Enqueues a function that is called whenever all the function, added previously by other processes, have been successfully executed. */ export declare function terminalAction(promptFunction: () => Promise): Promise;