export declare class ChangeDirectory {
    current: string;
    last: string;
    /**
     * @param base the directory to start at
     * @constructor
     */
    constructor(baseDir?: string);
    /**
     * Changes back to the last directory
     */
    back(): void;
    /**
     * Changes to a directory
     *
     * @param dir the directory to go to
     */
    go(dir: string): void;
    /**
     * Ensures the process is in the specified directory
     *
     * @param dir the directory to test
     * @returns true if the directory matches
     * @throws error if the directory does not match
     */
    ensure(dir: string): boolean;
}
