import type { HttpMiddleware } from "@egomobile/http-server"; import type { ClassMethodDecorator5, Nilable } from "../types/internal.js"; import type { HttpMethodDecoratorRoutePath, IHttpMethodDecoratorOptions } from "./index.js"; /** * Returns a decorator, that sets up an endpoint for a CONNECT request. * * @example * ``` * import { Controller, CONNECT, IHttp1Request, IHttp1Response } from "@egomobile/http-controllers"; * * @Controller() * export default class MyController { * @CONNECT('/') * public async connectSomething(request: IHttp1Request, response: IHttp1Response) { * // ... * } * } * ``` * * @param {IHttpMethodDecoratorOptions} [options] Custom options. * @param {HttpMethodDecoratorRoutePath} [path] The custom path. * @param {HttpMiddleware[]} [use] Additional middlewares to use. * * @returns {ClassMethodDecorator5} The new decorator. */ export declare function CONNECT(): ClassMethodDecorator5; export declare function CONNECT(options: IHttpMethodDecoratorOptions): ClassMethodDecorator5; export declare function CONNECT(use: HttpMiddleware[]): ClassMethodDecorator5; export declare function CONNECT(path: HttpMethodDecoratorRoutePath, use?: Nilable[]>): ClassMethodDecorator5;