import { CommentItem, CommentItemList } from '~/domain/models/comment/comment' export type SearchOption = { [key: string]: string | (string | null)[] } export interface CommentRepository { listAll(projectId: string, { limit, offset, q }: SearchOption): Promise list(projectId: string, docId: number): Promise create(projectId: string, docId: number, text: string): Promise update(projectId: string, item: CommentItem): Promise delete(projectId: string, commentId: number): Promise deleteBulk(projectId: string, items: number[]): Promise }