{"version":3,"file":"types.d.ts","names":["VNodeChild","CodeViewLineSelection","CodeViewOptions","FileOptions","FileDiffOptions","UnresolvedFileOptions","GetHoveredLineResult","CodeViewItem","CodeViewScrollTarget","DiffLineAnnotation","FileContents","FileDiffMetadata","LineAnnotation","MergeConflictResolution","SelectedLineRange","VirtualFileMetrics","MergeConflictDiffAction","DiffBasePropsVue","LAnnotation","FilePropsVue","DiffSlotsVue","FileSlotsVue","FileDiffPropsVue","MultiFileDiffPropsVue","PatchDiffPropsVue","UnresolvedFileOptionsVue","Omit","UnresolvedFilePropsVue","UnresolvedFileSlotsVue","CodeViewPropsVue","CodeViewSlotsVue","CodeViewHandleVue"],"sources":["../../src/vue/types.d.ts"],"sourcesContent":["import type { VNodeChild } from 'vue';\nimport type { CodeViewLineSelection, CodeViewOptions } from '../components/CodeView';\nimport type { FileOptions } from '../components/File';\nimport type { FileDiffOptions } from '../components/FileDiff';\nimport type { UnresolvedFileOptions } from '../components/UnresolvedFile';\nimport type { GetHoveredLineResult } from '../managers/InteractionManager';\nimport type { CodeViewItem, CodeViewScrollTarget, DiffLineAnnotation, FileContents, FileDiffMetadata, LineAnnotation, MergeConflictResolution, SelectedLineRange, VirtualFileMetrics } from '../types';\nimport type { MergeConflictDiffAction } from '../utils/parseMergeConflictDiffFromFile';\nexport interface DiffBasePropsVue<LAnnotation = undefined> {\n    options?: FileDiffOptions<LAnnotation>;\n    metrics?: VirtualFileMetrics;\n    lineAnnotations?: DiffLineAnnotation<LAnnotation>[];\n    selectedLines?: SelectedLineRange | null;\n    prerenderedHTML?: string;\n    disableWorkerPool?: boolean;\n}\nexport interface FilePropsVue<LAnnotation = undefined> {\n    file: FileContents;\n    options?: FileOptions<LAnnotation>;\n    metrics?: VirtualFileMetrics;\n    lineAnnotations?: LineAnnotation<LAnnotation>[];\n    selectedLines?: SelectedLineRange | null;\n    prerenderedHTML?: string;\n    disableWorkerPool?: boolean;\n}\nexport interface DiffSlotsVue<LAnnotation = undefined> {\n    header?(props: {\n        fileDiff: FileDiffMetadata;\n    }): VNodeChild;\n    headerPrefix?(props: {\n        fileDiff: FileDiffMetadata;\n    }): VNodeChild;\n    headerMetadata?(props: {\n        fileDiff: FileDiffMetadata;\n    }): VNodeChild;\n    annotation?(props: {\n        annotation: DiffLineAnnotation<LAnnotation>;\n    }): VNodeChild;\n    gutter?(props: {\n        getHoveredLine(): GetHoveredLineResult<'diff'> | undefined;\n    }): VNodeChild;\n}\nexport interface FileSlotsVue<LAnnotation = undefined> {\n    header?(props: {\n        file: FileContents;\n    }): VNodeChild;\n    headerPrefix?(props: {\n        file: FileContents;\n    }): VNodeChild;\n    headerMetadata?(props: {\n        file: FileContents;\n    }): VNodeChild;\n    annotation?(props: {\n        annotation: LineAnnotation<LAnnotation>;\n    }): VNodeChild;\n    gutter?(props: {\n        getHoveredLine(): GetHoveredLineResult<'file'> | undefined;\n    }): VNodeChild;\n}\nexport interface FileDiffPropsVue<LAnnotation = undefined> extends DiffBasePropsVue<LAnnotation> {\n    fileDiff: FileDiffMetadata;\n}\nexport interface MultiFileDiffPropsVue<LAnnotation = undefined> extends DiffBasePropsVue<LAnnotation> {\n    oldFile: FileContents;\n    newFile: FileContents;\n}\nexport interface PatchDiffPropsVue<LAnnotation = undefined> extends DiffBasePropsVue<LAnnotation> {\n    patch: string;\n}\nexport type UnresolvedFileOptionsVue<LAnnotation = undefined> = Omit<UnresolvedFileOptions<LAnnotation>, 'onMergeConflictAction' | 'onMergeConflictResolve' | 'renderCustomHeader' | 'renderGutterUtility'>;\nexport interface UnresolvedFilePropsVue<LAnnotation = undefined> {\n    file: FileContents;\n    options?: UnresolvedFileOptionsVue<LAnnotation>;\n    lineAnnotations?: DiffLineAnnotation<LAnnotation>[];\n    selectedLines?: SelectedLineRange | null;\n    prerenderedHTML?: string;\n    disableWorkerPool?: boolean;\n}\nexport interface UnresolvedFileSlotsVue<LAnnotation = undefined> extends DiffSlotsVue<LAnnotation> {\n    conflict?(props: {\n        action: MergeConflictDiffAction;\n        resolveConflict(resolution: MergeConflictResolution): void;\n    }): VNodeChild;\n}\nexport interface CodeViewPropsVue<LAnnotation = undefined> {\n    items?: readonly CodeViewItem<LAnnotation>[];\n    initialItems?: readonly CodeViewItem<LAnnotation>[];\n    options?: CodeViewOptions<LAnnotation>;\n    selectedLines?: CodeViewLineSelection | null;\n    disableWorkerPool?: boolean;\n}\nexport interface CodeViewSlotsVue<LAnnotation = undefined> {\n    header?(props: {\n        item: CodeViewItem<LAnnotation>;\n    }): VNodeChild;\n    headerPrefix?(props: {\n        item: CodeViewItem<LAnnotation>;\n    }): VNodeChild;\n    headerMetadata?(props: {\n        item: CodeViewItem<LAnnotation>;\n    }): VNodeChild;\n    annotation?(props: {\n        annotation: DiffLineAnnotation<LAnnotation> | LineAnnotation<LAnnotation>;\n        item: CodeViewItem<LAnnotation>;\n    }): VNodeChild;\n    gutter?(props: {\n        getHoveredLine(): GetHoveredLineResult<'file'> | GetHoveredLineResult<'diff'> | undefined;\n        item: CodeViewItem<LAnnotation>;\n    }): VNodeChild;\n}\nexport interface CodeViewHandleVue<LAnnotation = undefined> {\n    addItems(items: readonly CodeViewItem<LAnnotation>[]): void;\n    getItem(id: string): CodeViewItem<LAnnotation> | undefined;\n    updateItem(item: CodeViewItem<LAnnotation>): boolean;\n    updateItemId(oldId: string, newId: string): boolean;\n    scrollTo(target: CodeViewScrollTarget): void;\n    setSelectedLines(selection: CodeViewLineSelection | null): void;\n    getSelectedLines(): CodeViewLineSelection | null;\n    clearSelectedLines(): void;\n    getInstance(): unknown;\n}\n//# sourceMappingURL=types.d.ts.map"],"mappings":";;;;;;;;;;UAQiBiB;YACHb,gBAAgBc;EADbD,OAAAA,CAAAA,EAEHF,kBAFmBG;EACHA,eAAAA,CAAAA,EAERT,kBAFQS,CAEWA,WAFXA,CAAAA,EAAAA;EAAhBd,aAAAA,CAAAA,EAGMU,iBAHNV,GAAAA,IAAAA;EACAW,eAAAA,CAAAA,EAAAA,MAAAA;EAC2BG,iBAAAA,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