import { ElysiaFile } from 'elysia'; import { Stats } from 'fs'; export declare const isBun: boolean; export declare function getBuiltinModule(): readonly [typeof import("fs/promises"), import("path").PlatformPath] | undefined; export declare function listFiles(dir: string): Promise; /** * File exists and is not a directory * @param path * @returns */ export declare function fileExists(path: string): Promise; export declare function getFileStats(path: string): Promise; export declare class LRUCache { private readonly max; private readonly ttl; private map; private interval; constructor(max?: number, ttl?: number); get(key: K): V | undefined; set(key: K, value: V): void; delete(key: K): void; clear(): void; size(): number; [Symbol.dispose](): void; } export declare function alreadyCachedDownstream(headers: Record, etag: string | undefined, fileStats: Stats): boolean; export declare function getFile(path: string): ElysiaFile; export declare function generateETag(file: ElysiaFile): Promise; export declare const isNotEmpty: (obj?: Object) => boolean;