import type { WordData } from "@shared/lib/transcriptionDocument"

export interface SegmentEditData {
	start: number
	end: number
	text: string
	words?: WordData[]
}

export interface ISegmentEditModalProps {
	open: boolean
	onOpenChange: (open: boolean) => void
	videoUrl?: string
	segment: SegmentEditData
	onSave: (text: string) => Promise<void>
	onSplit?: (
		newSegments: Array<{ start: number; end: number; text: string; words?: WordData[] }>,
	) => Promise<void>
}
