import { EventEmitter } from "../../stencil-public-runtime"; import { StzhAudioEndedEvent, StzhAudioEndEvent, StzhAudioErrorEvent, StzhAudioPauseEvent, StzhAudioPlayEvent, StzhAudioPlayingEvent, StzhAudioReplayEvent } from "../../index"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-media.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-audio.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-play-button.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-mute-button.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-time-slider.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-volume-slider.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-slider-value-text.js"; import "../../../node_modules/@vidstack/player/dist/prod/define/vds-time.js"; import { StzhAudioLocalizedText } from "./stzh-audio.localization"; /** * @slot - Slot for any content * @slot transcript - Slot for transcript text */ export declare class StzhAudio { /** Translation strings */ localization: StzhAudioLocalizedText; /** Path to audio file */ src: string; /** Preload strategy */ preload: "none" | "metadata" | "auto"; /** Transcript text (alternative for slot) */ transcript: string; /** Whether transcript should be shown */ transcriptShown: boolean; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute to the download link element. * Default value will be taken from translations. */ downloadAnalyticsId: string; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute to the transcript button element. * Default value will be taken from translations. */ transcriptAnalyticsId: string; /** Fired when the paused property is changed from true to false, as a result of the play() method, or the autoplay attribute. */ stzhPlay: EventEmitter; /** Fired when playback is ready to start after having been paused or delayed due to lack of data. */ stzhPlaying: EventEmitter; /** Fired when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the pause() method. */ stzhPause: EventEmitter; /** Fired when media playback starts again after being in an ended state. This is fired when the loop property is true and media loops, whereas the vds-play event is not. */ stzhReplay: EventEmitter; /** Fired each time media playback has reached the end. This is fired even if the loop property is true, which is generally when you'd reach for this event over the MediaEndedEvent if you want to be notified of media looping. */ stzhEnd: EventEmitter; /** Fired when playback or streaming has stopped because the end of the media was reached or because no further data is available. This is not fired if playback will start from the beginning again due to the loop property being true (see MediaReplayEvent and MediaEndEvent). */ stzhEnded: EventEmitter; /** Fired when media loading or playback has encountered any issues (for example, a network connectivity problem). The event detail contains a potential message containing more information about the error (empty string if nothing available), and a code that identifies the general type of error that occurred. */ stzhError: EventEmitter; element: HTMLStzhAudioElement; play(): Promise; pause(): Promise; private vsdAudioElement; componentWillLoad(): Promise; render(): any; }