import { fs } from '@graphql-mesh/cross-helpers';
export declare function pathExists(path: string): Promise<boolean>;
export declare function writeJSON<T>(path: string, data: T, replacer?: (this: any, key: string, value: any) => any, space?: string | number): Promise<void>;
export declare const writeFile: typeof fs.promises.writeFile;
export declare function mkdir(path: string, 
/**
 * Copied from fs.MakeDirectoryOptions.
 * TODO: somehow import it without depending on Node
 */
options?: {
    /**
     * Indicates whether parent folders should be created.
     * If a folder was created, the path to the first created folder will be returned.
     * @default true
     */
    recursive?: boolean | undefined;
    /**
     * A file mode. If a string is passed, it is parsed as an octal integer. If not specified
     * @default 0o777
     */
    mode?: string | number | undefined;
}): Promise<void>;
export declare function rmdirs(dir: string): Promise<void>;
