import { NextFunction, Request, Response, Route } from '@teambit/express';
import { ComponentMain } from './component.main.runtime';
export type RegisteredComponentRoute = Route & {
    resolveComponent?: boolean;
};
export type ComponentUrlParams = {
    componentId: string;
};
export declare class ComponentRoute implements Route {
    private registerRoute;
    private componentExtension;
    constructor(registerRoute: RegisteredComponentRoute, componentExtension: ComponentMain);
    dynamicRouteRegex: string;
    readonly route: string;
    get componentMiddlewares(): ((req: Request<ComponentUrlParams>, res: Response, next: NextFunction) => Promise<void>)[];
    method: string;
    middlewares: ((req: Request<ComponentUrlParams>, res: Response, next: NextFunction) => Promise<void>)[];
}
