import { API } from './api'; import type { Config } from '../typings'; import { type StartupStats } from '../helpers/logger'; import { DebugLogger } from '../helpers/debug'; import { RouteManager } from '../managers/routes'; import { SchemaManager } from '../managers/schemas'; import { MiddlewareManager } from '../managers/middlewares'; import msgpack from 'msgpack5'; import { RatelimitManager } from '../managers/ratelimits'; import { Route } from './route'; export declare const msgpackInstance: msgpack.MessagePack; export declare class Server { private app; routes: RouteManager; schemas: SchemaManager; middlewares: MiddlewareManager; ratelimits: RatelimitManager; logger: DebugLogger; config: Config; authenticationMethod: ({ token, server, route, }: { token: string; server: Server; route: Route; }) => Promise | TAuth; routesBasePath: string; services: TServices; onError?: ({ api, error, }: { api: API; error: unknown; }) => void; startupStats: StartupStats; constructor(setup: { authenticationMethod: ({ token, server, route, }: { token: string; server: Server; route: Route; }) => Promise | TAuth; routesBasePath: string; services?: TServices; onError?: ({ api, error, }: { api: API; error: unknown; }) => void; cors?: { origin?: string | string[] | ((origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void); methods?: string | string[]; headers?: string | string[]; extendHeaders?: string | string[]; }; }); init(): Promise; start(): Promise; private initConfig; } //# sourceMappingURL=server.d.ts.map