/// import { IncomingMessage, ServerResponse } from 'http'; import { HttpError } from './errors/http'; import { FunctionSet } from './function-set'; import { ServerlessInstance, ServerlessOptions } from './types'; export declare class BehaviorRouter { private serverless; private options; private builder; private context; private behaviors; private cfResources; private cacheDir; private fileDir; private injectedHeadersFile?; private path; private started; private origins; private restarting; private server; private cacheService; private log; constructor(serverless: ServerlessInstance, options: ServerlessOptions); watchFiles(pattern: any, options: any): void; match(req: IncomingMessage): FunctionSet | null; start(port: number): Promise; hasStarted(): boolean; isRunning(): boolean; restart(): Promise; private shutdown; private listen; handleError(err: HttpError, res: ServerResponse): void; purgeStorage(): Promise; private configureOrigins; private extractBehaviors; private purgeBehaviourFunctions; private logStorage; private logBehaviors; }