/// <reference types="node" />
/// <reference types="node" />
import type { Dirent } from "fs";
export interface ReadDirectory {
    (path: string, options: "buffer" | {
        encoding: "buffer";
        withFileTypes?: false | undefined;
    }): Promise<Buffer[]>;
    (path: string, options?: {
        encoding: BufferEncoding;
        withFileTypes?: false | undefined;
    } | BufferEncoding): Promise<string[]>;
    (path: string, options?: {
        encoding?: BufferEncoding;
        withFileTypes?: false | undefined;
    }): Promise<string[] | Buffer[]>;
    (path: string, options: {
        encoding?: BufferEncoding;
        withFileTypes: true;
    }): Promise<Dirent[]>;
}
declare const readDirectoryInjectable: import("@ogre-tools/injectable").Injectable<ReadDirectory, unknown, void>;
export default readDirectoryInjectable;
