import { FileContents, LineAnnotation, SelectedLineRange, VirtualFileMetrics } from "../../types.js"; import { GetHoveredLineResult } from "../../managers/InteractionManager.js"; import { FileEditChangeHandler, FileEditCompleteHandler, FileOptions } from "../../components/File.js"; import { EditorOptions } from "../../editor/editor.js"; import "../../edit/index.js"; //#region src/react/utils/useFileInstance.d.ts interface UseFileInstanceProps { file: FileContents; options: FileOptions | undefined; editorOptions: EditorOptions<'file', LAnnotation, Caret> | undefined; editStateKey: string | undefined; lineAnnotations: LineAnnotation[] | undefined; selectedLines: SelectedLineRange | null | undefined; prerenderedHTML: string | undefined; metrics?: VirtualFileMetrics; hasGutterRenderUtility: boolean; hasCustomHeader: boolean; disableWorkerPool: boolean; edit: boolean; onEditChange?: FileEditChangeHandler; onEditComplete?: FileEditCompleteHandler; } interface UseFileInstanceReturn { ref(node: HTMLElement | null): void; getHoveredLine(): GetHoveredLineResult<'file'> | undefined; getAnnotationSlotName(annotation: LineAnnotation): string; } declare function useFileInstance({ file, options, editorOptions, editStateKey, lineAnnotations, selectedLines, prerenderedHTML, metrics, hasGutterRenderUtility, hasCustomHeader, disableWorkerPool, edit, onEditChange: _onEditChange, onEditComplete: _onEditComplete }: UseFileInstanceProps): UseFileInstanceReturn; //#endregion export { useFileInstance }; //# sourceMappingURL=useFileInstance.d.ts.map