import type { Component } from '../component.js'; export type CodeDebugType = 'error' | 'warning' | 'info'; export interface CodeDebugOptions { /** Line number where error starts (1-based) */ startLine: number; /** Column number where error starts (1-based) */ startColumn: number; /** Line number where error ends (1-based, optional) */ endLine?: number; /** Column number where error ends (1-based, optional) */ endColumn?: number; /** Source code line before the error line (optional) */ lineBefore?: string | null; /** Source code line with the error */ errorLine: string; /** Source code line after the error line (optional) */ lineAfter?: string | null; /** Error or warning message (long message shown at top) */ message: string; /** Error code/preamble to show before message (e.g., "eslint-plugin-unicorn(no-useless-length-check)") (optional) */ errorCode?: string; /** Short message to show connected to underline (optional) */ shortMessage?: string; /** Placement of short message: 'left' or 'right' (default: 'right', auto: 'left' when target is near end of long line) */ shortMessagePlacement?: 'left' | 'right' | 'auto'; /** Short file path to display */ filePath: string; /** Full resolved file path for clickable link */ fullPath: string; /** Base directory for relative paths (optional) */ baseDir?: string; /** Type of error: error, warning, or info */ type?: CodeDebugType; /** Maximum column to show before forcing ellipsis (to make room for message) */ maxColumn?: number; } /** * CodeDebug component - displays code errors/warnings with context */ export declare function CodeDebug(options: CodeDebugOptions): Component; //# sourceMappingURL=code-debug.d.ts.map