/**
 * Stub for color-diff-napi (native NAPI module).
 *
 * The real module is a Rust-compiled native addon for syntax-highlighted diffs.
 * This stub makes ColorDiff.render() return null, which triggers the fallback
 * plain-text diff renderer in StructuredDiff.tsx.
 */

export class ColorDiff {
  constructor(patch, firstLine, filePath, fileContent) {
    this.patch = patch;
    this.firstLine = firstLine;
    this.filePath = filePath;
    this.fileContent = fileContent;
  }
  render(theme, width, dim) {
    // Return null to trigger the fallback renderer
    return null;
  }
}

export class ColorFile {
  constructor(content, filePath, firstLine) {
    this.content = content;
  }
  render(theme, width) {
    return null;
  }
}

export function getSyntaxTheme(themeName) {
  return null;
}

export default { ColorDiff, ColorFile, getSyntaxTheme };
