import { AnyDiagnosticReporter, AnyDiagnosticReporter as AnyDiagnosticReporter$1, ConsoleMethod, ConsoleReporterOptions, Diagnostic, Diagnostic as Diagnostic$1, DiagnosticCallParams, DiagnosticDefinition, DiagnosticDefinition as DiagnosticDefinition$1, DiagnosticHandle, DiagnosticInit, DiagnosticReporter, Diagnostics, Diagnostics as Diagnostics$1, createConsoleReporter, defineProdDiagnostics, formatDiagnostic } from "nostics"; import { ansiFormatter } from "nostics/formatters/ansi"; /** * The reporter every {@link defineDiagnostics} call below wires in ahead of * any caller-supplied ones: prints the diagnostic through devframe's own * ANSI colors via `console[method]` (default `'warn'`). */ declare function devframeReporter(d: Diagnostic$1, { method }?: { method?: 'log' | 'warn' | 'error'; }): void; /** * Options accepted by {@link defineDiagnostics}, identical to `nostics`'s * own `DefineDiagnosticsOptions`, minus the reporter devframe already * prepends. */ export type DevframeDefineDiagnosticsOptions, Reporters extends readonly AnyDiagnosticReporter$1[] = []> = Parameters>[0]; /** * Drop-in replacement for `nostics`'s `defineDiagnostics()` with devframe's * ANSI console reporter pre-wired ahead of any `reporters` passed in. Every * `diagnostics.ts` in devframe core, `@devframes/hub`, `@devframes/json-render`, * and the built-in plugins defines its codes through this instead of * `nostics`'s own `defineDiagnostics`; the reporter registration lives * here, once, so none of them need to build their own reporter (`colors`, * `ansiFormatter`) or take a direct dependency on `nostics` themselves. */ export declare function defineDiagnostics, const Reporters extends readonly AnyDiagnosticReporter$1[] = []>(options: { docsBase?: string | ((code: keyof Codes) => string | undefined); codes: Codes; reporters?: Reporters; }): DevframeDiagnostics; /** * The `Diagnostics` object returned by devframe's {@link defineDiagnostics} * (devframe's ANSI console reporter is always prepended). Integrations that * export their own `defineDiagnostics(...)` result as public API annotate it * with this type, so the reference resolves through `devframe/utils/nostics` * rather than inlining `nostics`'s types or taking a direct `nostics` * dependency. */ export type DevframeDiagnostics, Reporters extends readonly AnyDiagnosticReporter$1[] = []> = Diagnostics$1; export { type AnyDiagnosticReporter, type ConsoleMethod, type ConsoleReporterOptions, type Diagnostic, type DiagnosticCallParams, type DiagnosticDefinition, type DiagnosticHandle, type DiagnosticInit, type DiagnosticReporter, type Diagnostics, ansiFormatter, createConsoleReporter, defineProdDiagnostics, formatDiagnostic };