import { DiffLineAnnotation, FileContents, FileDiffMetadata, SelectedLineRange, VirtualFileMetrics } from "../../types.js"; import { GetHoveredLineResult } from "../../managers/InteractionManager.js"; import { FileDiffEditChangeHandler, FileDiffEditCompleteHandler, FileDiffOptions } from "../../components/FileDiff.js"; import { EditorOptions } from "../../editor/editor.js"; import "../../edit/index.js"; //#region src/react/utils/useFileDiffInstance.d.ts interface UseFileDiffInstanceProps { fileDiff?: FileDiffMetadata; oldFile?: FileContents | null; newFile?: FileContents | null; options: FileDiffOptions | undefined; editorOptions: EditorOptions<'file-diff', LAnnotation, Caret> | undefined; editStateKey: string | undefined; lineAnnotations: DiffLineAnnotation[] | undefined; selectedLines: SelectedLineRange | null | undefined; prerenderedHTML: string | undefined; metrics?: VirtualFileMetrics; hasGutterRenderUtility: boolean; hasCustomHeader: boolean; disableWorkerPool: boolean; edit: boolean; onEditChange?: FileDiffEditChangeHandler; onEditComplete?: FileDiffEditCompleteHandler; } interface UseFileDiffInstanceReturn { fileDiff: FileDiffMetadata; ref(node: HTMLElement | null): void; getHoveredLine(): GetHoveredLineResult<'diff'> | undefined; getAnnotationSlotName(annotation: DiffLineAnnotation): string; } declare function useFileDiffInstance({ fileDiff, oldFile, newFile, options, editorOptions, editStateKey, lineAnnotations, selectedLines, prerenderedHTML, metrics, hasGutterRenderUtility, hasCustomHeader, disableWorkerPool, edit, onEditChange: _onEditChange, onEditComplete: _onEditComplete }: UseFileDiffInstanceProps): UseFileDiffInstanceReturn; //#endregion export { useFileDiffInstance }; //# sourceMappingURL=useFileDiffInstance.d.ts.map