import type { CLI_LANGUAGES } from "./language-support"; export type CliLanguage = (typeof CLI_LANGUAGES)[number]; export interface Position { line: number; column: number; } export interface Range { start: Position; end: Position; } export interface CliMatch { text: string; range: { byteOffset: { start: number; end: number; }; start: Position; end: Position; }; file: string; lines: string; charCount: { leading: number; trailing: number; }; language: string; } export interface SgResult { matches: CliMatch[]; totalMatches: number; truncated: boolean; truncatedReason?: "max_matches" | "max_output_bytes" | "timeout"; error?: string; }