import { Middleware } from 'koa';
interface HistoryAPIFallbackMiddlewareConfig {
    appIndex: string;
    appIndexDir: string;
}
/**
 * Serves index.html when a non-file request within the scope of the app index is made.
 * This allows SPA routing.
 */
export declare function createHistoryAPIFallbackMiddleware(cfg: HistoryAPIFallbackMiddlewareConfig): Middleware;
export {};
