import { type ErrorCode } from './messaging.js'; export type WarningCode = Extract; export interface DiagnosticContext { contentScripts?: ReadonlySet; } export declare const NAMED_CODES: Record; export declare function isKnownDiagnosticName(name: string): boolean; export declare function diagnosticName(issue: unknown): string | undefined; export declare function diagnosticCode(issue: unknown, context?: DiagnosticContext): ErrorCode | undefined; export declare function codeForSeverity(code: ErrorCode, severity: 'error' | 'warning'): ErrorCode | undefined;