import type { DecoratorOptions, RouteHandler, VovkController, VovkControllerInternal } from '../types/core.js'; import { HttpMethod, HttpStatus } from '../types/enums.js'; type SegmentHooks = { onError?: VovkControllerInternal['_onError']; onSuccess?: VovkControllerInternal['_onSuccess']; onBefore?: VovkControllerInternal['_onBefore']; }; export type VovkRouteParams = Record; export declare const getCatchAllPath: (params: VovkRouteParams) => string[]; declare class VovkApp { #private; private static getHeadersFromDecoratorOptions; private static withHeaders; private static callOnError; private static withoutBody; routes: Record>>; GET: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; POST: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; PUT: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; PATCH: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; DELETE: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; HEAD: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; OPTIONS: (req: Request, data: { params: Promise; }, segmentName: string) => Promise; respond: ({ statusCode, responseBody, options, headers, }: { req: Request; statusCode: HttpStatus; responseBody: unknown; options?: DecoratorOptions; headers?: Record; }) => Response; private static toErrorResponse; setSegment: (segmentName: string, segment: SegmentHooks & { controllers: Set; }) => void; } declare const vovkApp: VovkApp; export { vovkApp };