import { CodeViewItem, CodeViewScrollTarget, DiffLineAnnotation, FileContents, FileDiffMetadata, LineAnnotation, MergeConflictResolution, SelectedLineRange, VirtualFileMetrics } from "../types.js"; import { GetHoveredLineResult } from "../managers/InteractionManager.js"; import { FileOptions } from "../components/File.js"; import { MergeConflictDiffAction } from "../utils/parseMergeConflictDiffFromFile.js"; import { UnresolvedFileOptions } from "../components/UnresolvedFile.js"; import { FileDiffOptions } from "../components/FileDiff.js"; import { CodeViewLineSelection, CodeViewOptions } from "../components/CodeView.js"; import { VNodeChild } from "vue"; //#region src/vue/types.d.ts interface DiffBasePropsVue { options?: FileDiffOptions; metrics?: VirtualFileMetrics; lineAnnotations?: DiffLineAnnotation[]; selectedLines?: SelectedLineRange | null; prerenderedHTML?: string; disableWorkerPool?: boolean; } interface FilePropsVue { file: FileContents; options?: FileOptions; metrics?: VirtualFileMetrics; lineAnnotations?: LineAnnotation[]; selectedLines?: SelectedLineRange | null; prerenderedHTML?: string; disableWorkerPool?: boolean; } interface DiffSlotsVue { header?(props: { fileDiff: FileDiffMetadata; }): VNodeChild; headerPrefix?(props: { fileDiff: FileDiffMetadata; }): VNodeChild; headerMetadata?(props: { fileDiff: FileDiffMetadata; }): VNodeChild; annotation?(props: { annotation: DiffLineAnnotation; }): VNodeChild; gutter?(props: { getHoveredLine(): GetHoveredLineResult<'diff'> | undefined; }): VNodeChild; } interface FileSlotsVue { header?(props: { file: FileContents; }): VNodeChild; headerPrefix?(props: { file: FileContents; }): VNodeChild; headerMetadata?(props: { file: FileContents; }): VNodeChild; annotation?(props: { annotation: LineAnnotation; }): VNodeChild; gutter?(props: { getHoveredLine(): GetHoveredLineResult<'file'> | undefined; }): VNodeChild; } interface FileDiffPropsVue extends DiffBasePropsVue { fileDiff: FileDiffMetadata; } interface MultiFileDiffPropsVue extends DiffBasePropsVue { oldFile: FileContents; newFile: FileContents; } interface PatchDiffPropsVue extends DiffBasePropsVue { patch: string; } type UnresolvedFileOptionsVue = Omit, 'onMergeConflictAction' | 'onMergeConflictResolve' | 'renderCustomHeader' | 'renderGutterUtility'>; interface UnresolvedFilePropsVue { file: FileContents; options?: UnresolvedFileOptionsVue; lineAnnotations?: DiffLineAnnotation[]; selectedLines?: SelectedLineRange | null; prerenderedHTML?: string; disableWorkerPool?: boolean; } interface UnresolvedFileSlotsVue extends DiffSlotsVue { conflict?(props: { action: MergeConflictDiffAction; resolveConflict(resolution: MergeConflictResolution): void; }): VNodeChild; } interface CodeViewPropsVue { items?: readonly CodeViewItem[]; initialItems?: readonly CodeViewItem[]; options?: CodeViewOptions; selectedLines?: CodeViewLineSelection | null; disableWorkerPool?: boolean; } interface CodeViewSlotsVue { header?(props: { item: CodeViewItem; }): VNodeChild; headerPrefix?(props: { item: CodeViewItem; }): VNodeChild; headerMetadata?(props: { item: CodeViewItem; }): VNodeChild; annotation?(props: { annotation: DiffLineAnnotation | LineAnnotation; item: CodeViewItem; }): VNodeChild; gutter?(props: { getHoveredLine(): GetHoveredLineResult<'file'> | GetHoveredLineResult<'diff'> | undefined; item: CodeViewItem; }): VNodeChild; } interface CodeViewHandleVue { addItems(items: readonly CodeViewItem[]): void; getItem(id: string): CodeViewItem | undefined; updateItem(item: CodeViewItem): boolean; updateItemId(oldId: string, newId: string): boolean; scrollTo(target: CodeViewScrollTarget): void; setSelectedLines(selection: CodeViewLineSelection | null): void; getSelectedLines(): CodeViewLineSelection | null; clearSelectedLines(): void; getInstance(): unknown; } //#endregion export { CodeViewHandleVue, CodeViewPropsVue, CodeViewSlotsVue, DiffBasePropsVue, DiffSlotsVue, FileDiffPropsVue, FilePropsVue, FileSlotsVue, MultiFileDiffPropsVue, PatchDiffPropsVue, UnresolvedFileOptionsVue, UnresolvedFilePropsVue, UnresolvedFileSlotsVue }; //# sourceMappingURL=types.d.ts.map