import { TunnelConnection } from "../shared/src/tunnel.js";
import * as express0 from "express";

//#region src/plugin/dev-reader.d.ts
type TunnelConnectionGetter = (req: express0.Request) => TunnelConnection | null;
/**
 * This class is used to read files from the local filesystem in dev mode
 * through the WebSocket tunnel.
 */
declare class DevFileReader {
  private static instance;
  private getTunnelForRequest;
  private constructor();
  static getInstance(): DevFileReader;
  registerTunnelGetter(getter: TunnelConnectionGetter): void;
  readFile(filePath: string, req: express0.Request): Promise<string>;
  readdir(dirPath: string, req: express0.Request): Promise<string[]>;
}
//#endregion
export { DevFileReader };
//# sourceMappingURL=dev-reader.d.ts.map