/** * Pure helper functions for dashboard setup and configuration. */ import type { DevToolbarConfig } from '../debug/types.js'; import type { ProductionConfig } from '../types.js'; /** * Classify a dashboard start() error into a category. */ export declare function classifyDashboardError(err: unknown): 'missing-dep' | 'timeout' | 'unknown'; /** * Race a promise against a timeout. */ export declare function createStartTimeout(promise: Promise, timeoutMs: number): Promise; /** * Build the list of URL prefixes to exclude from tracing. */ export declare function buildExcludedPrefixes(toolbarConfig: { debugEndpoint?: string; excludeFromTracing?: string[]; }, statsEndpoint: string | false): string[]; /** Environment context needed to resolve production-sensitive defaults. */ export interface ProductionContext { inProduction: boolean; production?: ProductionConfig; } /** * Resolve a partial DevToolbarConfig by filling in all defaults. * * Pass `ctx` to apply production-sensitive defaults (capture off, shorter * retention). Omitting it resolves as a non-production environment. */ export declare function resolveToolbarConfig(partial: Partial & { enabled: boolean; }, ctx?: ProductionContext): DevToolbarConfig;