import { httpWorkflow } from './http.js'; import { AppModule } from '@deepkit/app'; import { ClassType } from '@deepkit/core'; import { HttpRequest, HttpResponse } from './model.js'; export declare function staticServe(localPath: string, path: string, request: HttpRequest, response: HttpResponse): Promise; export declare function staticOnRoute(event: typeof httpWorkflow.onRoute.event, path: string, localPath: string): Promise; export declare function serveStaticListener(module: AppModule, path: string, localPath?: string): ClassType; export interface StaticHttpOptions { /** * The public URL path. */ path: string; /** * The local path from the file system. Either relative or absolute. */ localPath: string; groups?: string[]; /** * The controller name of the registered controller class. Is per default `StaticController`. */ controllerName?: string; /** * Replaces strings in the served index.html file. */ indexReplace?: { [name: string]: string; }; } /** * Serves an index file and allows to load asset files from the same folder. Can be used to serve an angular application * * All paths like /*.* that don't match a file are redirected to ${localPath}/index.html. * All paths like /*.* that match a file resolve to the file. */ export declare function registerStaticHttpController(module: AppModule, options: StaticHttpOptions): void; export declare type __ΩStaticHttpOptions = any[];