import { a as EnvironmentContext, f as LogLevel } from "./types-B82IuY7M.mjs"; //#region src/utils.d.ts declare function formatDuration(ms: number): string; declare function isServer(): boolean; declare function isClient(): boolean; declare function isDev(): boolean; declare function detectEnvironment(): Partial; declare function getConsoleMethod(level: LogLevel): LogLevel; declare const colors: { readonly reset: "\u001B[0m"; readonly bold: "\u001B[1m"; readonly dim: "\u001B[2m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly blue: "\u001B[34m"; readonly magenta: "\u001B[35m"; readonly cyan: "\u001B[36m"; readonly white: "\u001B[37m"; readonly gray: "\u001B[90m"; }; declare function getLevelColor(level: string): string; declare const cssColors: { readonly dim: "color: #6b7280"; readonly red: "color: #ef4444; font-weight: bold"; readonly green: "color: #22c55e"; readonly yellow: "color: #f59e0b; font-weight: bold"; readonly cyan: "color: #06b6d4; font-weight: bold"; readonly gray: "color: #6b7280; font-weight: bold"; readonly reset: "color: inherit; font-weight: normal"; }; declare function getCssLevelColor(level: string): string; /** * Escape `%` in strings interpolated into `console.log` format strings * to prevent `%c`, `%s`, `%d` etc. in user data from being interpreted * as formatting directives. */ declare function escapeFormatString(str: string): string; /** Headers that should never be passed to hooks for security */ declare const SENSITIVE_HEADERS: string[]; declare function filterSafeHeaders(headers: Record): Record; /** * Match a path against a glob pattern. * Supports * (any chars except /) and ** (any chars including /). */ declare function matchesPattern(path: string, pattern: string): boolean; //#endregion export { SENSITIVE_HEADERS, colors, cssColors, detectEnvironment, escapeFormatString, filterSafeHeaders, formatDuration, getConsoleMethod, getCssLevelColor, getLevelColor, isClient, isDev, isServer, matchesPattern }; //# sourceMappingURL=utils.d.mts.map