/**
 * @license
 * Copyright 2022-2026 Greg Lauckhart <greg@lauckhart.com>
 * SPDX-License-Identifier: Apache-2.0
 */
export declare function maybeStatSync(path: string): import("node:fs").Stats | undefined;
export declare function maybeReadJsonSync(path: string): any;
export declare function maybeReaddirSync(path: string): string[] | undefined;
export declare function isDirectory(path: string): boolean;
export declare function isFile(path: string): boolean;
/**
 * Tiny virtual filesystem driver.  Currently used only for processing globs.
 */
export interface FilesystemSync<T extends FilesystemSync.Stat = FilesystemSync.Stat> {
    resolve(...segments: string[]): string;
    readdir(path: string): string[] | undefined;
    stat(path: string): T | undefined;
}
export declare function FilesystemSync(): FilesystemSync<FilesystemSync.Stat>;
export declare namespace FilesystemSync {
    interface Stat {
        isDirectory?: boolean;
        isFile?: boolean;
    }
}
//# sourceMappingURL=file.d.ts.map