import type { ConfigResult, File, FilePath } from '@atlaspack/types-internal'; import type { FileSystem } from '@atlaspack/types-internal'; export type ConfigOutput = { config: ConfigResult; files: Array; }; export type ConfigOptions = { parse?: boolean; parser?: (arg1: string) => any; }; export declare function resolveConfig(fs: FileSystem, filepath: FilePath, filenames: Array, projectRoot: FilePath): Promise; export declare function resolveConfigSync(fs: FileSystem, filepath: FilePath, filenames: Array, projectRoot: FilePath): FilePath | null | undefined; export declare function loadConfig(fs: FileSystem, filepath: FilePath, filenames: Array, projectRoot: FilePath, opts?: ConfigOptions | null): Promise; export declare namespace loadConfig { var clear: () => void; } export declare function readConfig(fs: FileSystem, configFile: FilePath, opts?: ConfigOptions | null): Promise;