import type { CssAspectRatio } from '@breadstone/mosaik-themes'; import type { IDimensionableProps } from '../../../Behaviors/Dimensionable'; import type { IDisableableProps } from '../../../Behaviors/Disableable'; import type { AudioLegendPosition } from '../../../Types/AudioLegendPosition'; /** * Represents the `IAudioElementProps` interface. * * @public */ export interface IAudioElementProps extends IDimensionableProps, IDisableableProps { /** * The source of the audio. */ src: string | MediaStream | MediaSource | Blob | null; /** * Auto play the audio. * * Note: Modern browsers may block autoplay with sound until user interaction. */ autoPlay: boolean; /** * Toggle the native audio controls. */ showControls: boolean; /** * The legend of the audio. */ legend: string; /** * The position of the legend. */ legendPosition: AudioLegendPosition; /** * The aspect ratio of the host box. Optional for audio but kept for layout parity. */ ratio: CssAspectRatio; /** * Whether the audio is muted. */ muted: boolean; /** * Whether the audio should loop. */ loop: boolean; } //# sourceMappingURL=IAudioElementProps.d.ts.map