vue-devui
Version:
DevUI components based on Vite and Vue3
10 lines (9 loc) • 657 B
TypeScript
import type { SetupContext, Ref } from 'vue';
import type { DiffFile } from 'diff2html/lib/types';
import type { CodeReviewProps, IExpandLineNumberInfo } from '../code-review-types';
export declare function useCodeReview(props: CodeReviewProps, ctx: SetupContext, reviewContentRef: Ref<HTMLElement>, updateLineNumberMap: (expandLineNumberInfo: IExpandLineNumberInfo, newCode: string, direction: 'up' | 'down') => void, updateCheckedLine: (expandLineNumberInfo: IExpandLineNumberInfo, direction: 'up' | 'down') => void): {
renderHtml: Ref<string>;
diffFile: Ref<DiffFile[]>;
selectionSide: Ref<string>;
onContentClick: (e: Event) => void;
};