/**
 * Static file serving middleware for SvelteKit static builds.
 *
 * Multi-step static serving:
 * - Step 1: Exact path match (handles /, assets, images)
 * - Step 2: `.html` fallback for clean URLs (`/about` → `/about.html`)
 * - Step 3 (optional): SPA fallback for client-side routes
 *
 * @module
 */
import type { MiddlewareHandler } from 'hono';
/**
 * Options for `serve_static` factory functions (matches Hono's `serveStatic` signature).
 */
export interface ServeStaticOptions {
    root: string;
    rewriteRequestPath?: (path: string) => string;
    mimes?: Record<string, string>;
}
/**
 * Factory function that creates a static file serving middleware.
 *
 * Matches the signature of `serveStatic` from `hono/deno` and `@hono/node-server/serve-static`.
 */
export type ServeStaticFactory = (options: ServeStaticOptions) => MiddlewareHandler;
/**
 * Create static file serving middleware for SvelteKit static builds.
 *
 * Returns an array of middleware handlers to register on `'/*'`.
 *
 * @param serve_static - runtime-specific `serveStatic` factory
 * @param options - optional root directory and SPA fallback path
 */
export declare const create_static_middleware: (serve_static: ServeStaticFactory, options?: {
    root?: string;
    spa_fallback?: string;
    is_spa_route?: (path: string) => boolean;
}) => Array<MiddlewareHandler>;
//# sourceMappingURL=static.d.ts.map