import fse from '../compiled/fs-extra';
import type { RsbuildConfig, DistPathConfig, FilenameConfig, NormalizedConfig } from './types';
export { fse };
export declare const getDistPath: (config: RsbuildConfig | NormalizedConfig, type: keyof DistPathConfig) => string;
export declare function isFileExists(file: string): Promise<boolean>;
export declare const isFileSync: (filePath: string) => boolean | undefined;
/**
 * Find first already exists file.
 * @param files - Absolute file paths with extension.
 * @returns The file path if exists, or false if no file exists.
 */
export declare const findExists: (files: string[]) => string | false;
export declare function getPackageNameFromModulePath(modulePath: string): string | undefined;
export declare function getHTMLPathByEntry(entryName: string, config: NormalizedConfig): string;
export declare const getFilename: (config: NormalizedConfig, type: keyof FilenameConfig, isProd: boolean) => string;
export declare function findUp({ filename, cwd, }: {
    filename: string;
    cwd?: string;
}): Promise<string | undefined>;
export declare function findUpSync({ filename, cwd, }: {
    filename: string;
    cwd?: string;
}): string | undefined;
