import { Options } from "./options";
export declare class Cleanup {
    private _supressLogging;
    private _cleanupList;
    constructor(options: Options);
    /**
     *
     * @param cleanupFunction Insert a cleanup function to the cleanup stack.
     */
    addCleanup(cleanupFunction: Function): void;
    /**
     * @deprecated Don't use this method directly.
     */
    finalize(): Promise<void>;
}
