import { Key } from '@v-c/util/dist/type'; import { ComputedRef } from 'vue'; import { Group } from '../interface'; export interface GroupSegment { key: Key; startIndex: number; endIndex: number; } export interface GroupSegmentItem { item: any; index: number; } /** * segments representing consecutive runs of items that share the same group key. */ export default function useGroupSegments(data: any[], group: Group | undefined): ComputedRef>;