import type { compilerType, FileOptions, JetMiddleware, jetOptions, JetRoute, methods, ValidationOptions } from "./types.js"; import { ArraySchema, BooleanSchema, Context, DateSchema, FileSchema, JetPlugin, NumberSchema, ObjectSchema, SchemaBuilder, StringSchema } from "./classes.js"; import { Trie } from "./trie-router.js"; export declare const _JetPath_paths: Record>; export declare const _JetPath_paths_trie: Record; export declare const _jet_middleware: Record void | Promise) | ((ctx: Context, err?: unknown) => void | Promise)[]>; export declare const server: (plugs: JetPlugin[], options: jetOptions) => { listen: any; edge: boolean; }; export declare function getHandlers(source: string, print: boolean, errorsCount?: { file: string; error: string; }[] | undefined, again?: boolean): Promise<{ file: string; error: string; }[] | undefined>; export declare function getHandlersEdge(modules: JetRoute[] & JetMiddleware[]): Promise; export declare const compileUI: (UI: string, options: jetOptions, api: string) => string; export declare const compileAPI: (options: jetOptions) => [number, string]; /** * Assigns middleware functions to routes while ensuring that each route gets exactly one middleware function. * A middleware function can be shared across multiple routes. * * @param _JetPath_paths - An object mapping HTTP methods to route-handler maps. * @param _jet_middleware - An object mapping route paths to an array of middleware functions. */ export declare function assignMiddleware(_JetPath_paths: { [method: string]: { [route: string]: any; }; }, _jet_middleware: { [route: string]: ((ctx: any) => Promise | void) | ((ctx: any) => Promise | void)[]; }): void; export declare const v: { string: (options?: ValidationOptions) => StringSchema; number: (options?: ValidationOptions) => NumberSchema; boolean: () => BooleanSchema; array: (itemType?: SchemaBuilder) => ArraySchema; object: (shape?: Record) => ObjectSchema; date: () => DateSchema; file: (options?: FileOptions) => FileSchema; }; /** * Configures the endpoint with API documentation and validation * @param endpoint - The endpoint function to configure * @returns The current compiler object */ export declare function use; params?: Record; query?: Record; response?: Record; }, JetPluginTypes extends Record[] = []>(endpoint: JetRoute): compilerType; export declare function codeGen(ROUTES_DIR: string, mode: "ON" | "WARN", connectionLinks: { local: string; external: string; }, generatedRoutesFilePath?: string): Promise; export declare function getLocalIP(): any;