import { v as RouteConfig } from "./types-B82IuY7M.mjs"; //#region src/shared/routes.d.ts declare function shouldLog(path: string, include?: string[], exclude?: string[]): boolean; /** * Find the service name for a given path based on route patterns. * * When multiple patterns match the same path, the first matching pattern wins * based on object iteration order. To ensure predictable behavior, order your * route patterns from most specific to most general. * * @param path - The request path to match * @param routes - Route configuration mapping patterns to service names * @returns The service name for the matching route, or undefined if no match * * @example * ```ts * // Good: specific patterns first, general patterns last * routes: { * '/api/auth/admin/**': { service: 'admin-service' }, * '/api/auth/**': { service: 'auth-service' }, * '/api/**': { service: 'api-service' }, * } * ``` */ declare function getServiceForPath(path: string, routes?: Record): string | undefined; //#endregion //#region src/shared/errors.d.ts /** * Extract HTTP status from an error, checking both `status` and `statusCode`. * * Works with any error shape (H3, Nitro, MxllogError, plain objects). * * @beta This function is part of the mxllog toolkit API for building custom framework integrations. */ declare function extractErrorStatus(error: unknown): number; //#endregion export { getServiceForPath as n, shouldLog as r, extractErrorStatus as t }; //# sourceMappingURL=errors-DL0gLqac.d.mts.map