import { MiddlewareHandler } from './types.ts'; type Env = {}; type Context = {}; type Data = any; export type ServeStaticOptions = { root?: string; mimes?: Record; onNotFound?: (path: string, c: Context) => void | Promise; }; /** * This middleware is not directly used by the user. Create a wrapper specifying `getContent()` by the environment such as Deno or Bun. */ export declare const serveStatic: (options: ServeStaticOptions & { getContent: (path: string, c: Context) => Data | Response | null | Promise; pathResolve?: (path: string) => string; isDir?: (path: string) => boolean | undefined | Promise; }) => MiddlewareHandler; export declare const getMimeType: (filename: string, mimes2?: Record) => string | undefined; export declare const getExtension: (mimeType: string) => string | undefined; type FilePathOptions = { filename: string; root?: string; defaultDocument?: string; }; export declare const getFilePath: (options: FilePathOptions) => string | undefined; export declare const getFilePathWithoutDefaultDocument: (options: Omit) => string | undefined; export {}; //# sourceMappingURL=static.d.ts.map