export type BookFormat = "epub" | "pdf";
export type SegmentLanguage = "zh-CN" | "en-US";

export interface ReadableSegment {
  text: string;
  language: SegmentLanguage;
}

export interface PlaybackProgress {
  bookId: string;
  chapterId: string;
  segmentId: string;
  offsetMs: number;
  playbackRate: number;
  updatedAt: string;
}

export interface AudioBookUsage {
  bookId: string;
  bytes: number;
  lastUsedAt: string;
}
