import type { MediaItem } from "../mediaItems"; /** All copy shown in the audio player, merged over `defaultMediaAudioPlayerLabels`. */ export interface MediaAudioPlayerLabels { /** Accessible name for the player region, combined with `label`. */ audioPlayer: string; /** Shown instead of the transport when the file fails to load. */ audioError: string; /** Big center play button and transport play toggle, when paused. */ play: string; /** Transport play toggle, shown while playing. */ pause: string; /** Accessible name of the transport `role="toolbar"` control group. */ audioControls: string; /** Accessible name of the seek slider. */ seek: string; /** Rewind-`SEEK_STEP_SECONDS` transport button, hint "J". */ rewind: string; /** Forward-`SEEK_STEP_SECONDS` transport button, hint "L". */ forward: string; /** Mute-toggle label shown while muted or at zero volume. */ unmute: string; /** Mute-toggle label shown while audible. */ mute: string; /** Accessible name of the volume slider. */ volume: string; /** Accessible name of the playback-speed menu. */ speed: string; /** Suffix shown next to "1x" in the speed menu, e.g. "1x - Normal". */ normalSpeed: string; /** Download transport button's accessible name. */ download: string; /** Builds the seek slider's `aria-valuetext` from two already-`formatClock`-ed strings. */ seekValue: (current: string, total: string) => string; /** @deprecated Never read by MediaAudioPlayer; defined but unused. */ loading: string; } export declare const defaultMediaAudioPlayerLabels: MediaAudioPlayerLabels; /** Props for the shared-scrubber audio transport rendered for `kind: "audio"` items. */ export interface MediaAudioPlayerProps { /** The audio file to play; changing `item.key` resets playback state. */ item: MediaItem; /** Accessible name for the player region, combined with `audioPlayer`. */ label: string; /** Fires on every `timeupdate`, with the current playback position in seconds. */ onTimeChange?: (seconds: number) => void; /** Overrides for any of `defaultMediaAudioPlayerLabels`, merged over the defaults. */ labels?: Partial; }