import { BaseMediaAdapter } from './index.mjs'; export type PictureDataType = import('../../../basics/mediaContent.mjs').PictureDataType; export type MediaContent = import('../../../basics/mediaContent.mjs').MediaContent; export type ContentData = import('./index.mjs').ContentData; export type ContentTimeData = import('./index.mjs').ContentTimeData; /** * MOCK VERSION of BaseMediaAdapter * * This file simulates the behavior of the Media Adapter for testing purposes. */ declare class MockMediaAdapter extends BaseMediaAdapter { #private; get id(): string; /** * @returns {boolean} */ get destroyed(): boolean; /** * @returns {boolean} */ get isPlaying(): boolean; /** * @returns {string|null} */ get currentContentId(): string | null; /** * @returns {number} */ get volume(): number; /** * @param {number} value - O volume de 0.0 a 1.0. * @throws {RangeError} Se o valor estiver fora do intervalo. */ set volume(value: number); constructor(); /** * Checks whether the media adapter is fully initialized and ready. * @returns {boolean} True if the adapter is ready, false otherwise. */ isReady(): boolean; /** * Checks whether the media adapter is paused. * @returns {boolean} True if the adapter is ready, false otherwise. */ isPaused(): boolean; /** * Checks whether the media adapter is ended. * @returns {boolean} True if the adapter is ready, false otherwise. */ isEnded(): boolean; /** * Asynchronously waits until the content media adapter is fully initialized and ready. * @returns {Promise} A promise that resolves once the adapter is ready. */ waitIsReady(): Promise; /** * Retrieves a consolidated object containing all time-related metrics for the current media content. * @returns {ContentTimeData} An object containing total, current, remaining time, and playback percentage. */ getTimeData(): ContentTimeData; /** * Determines if this adapter can play the provided content. * @param {MediaContent} content - The media content to evaluate. * @returns {boolean} True if the adapter can handle the content, false otherwise. */ static canHandle(content: MediaContent): boolean; /** * Determines if this adapter can play the provided content. * @param {MediaContent} content - The media content to evaluate. * @returns {boolean} True if the adapter can handle the content, false otherwise. */ canHandle(content: MediaContent): boolean; /** * Starts or resumes playback of the provided content. * @param {MediaContent} content - The media content to play. * @returns {Promise} */ play(content: MediaContent): Promise; /** * Pauses the current playback. * @returns {Promise} */ pause(): Promise; /** * Stops the playback completely and resets the internal platform state. * @returns {Promise} */ stop(): Promise; /** * Seeks to a specific time in the media timeline. * @param {number} timeMs - The target time in milliseconds. * @returns {Promise} */ seek(timeMs: number): Promise; /** * Checks whether the player is currently muted. * @returns {boolean|null} True if muted, false otherwise. */ isMuted(): boolean | null; /** * Mutes the current playback. * @returns {Promise} */ mute(): Promise; /** * Unmutes the current playback. * @returns {Promise} */ unMute(): Promise; /** * Retrieves the current playback time from the underlying API. * @returns {number} The current time in milliseconds. */ getCurrentTime(): number; /** * Gets the total duration of the content. * @returns {number} The total duration in milliseconds. */ getTotalDuration(): number; /** * Gets the remaining time until the content ends. * @returns {number} The remaining time in milliseconds. */ getRemainingTime(): number; /** * Gets the percentage of the content that has been played. * @returns {number} The percentage from 0 to 100. */ getPlaybackPercentage(): number; /** * Sets the playback volume for the underlying API. * @param {number} volume - The volume level from 0.0 to 1.0. * @returns {void} */ setVolume(volume: number): void; /** * Gets the playback volume for the underlying API. * @returns {number} - The volume level from 0.0 to 1.0. */ getVolume(): number; /** * Retrieves the metadata of the currently loaded content, returning a structured * object containing details such as the content ID, title, author, and duration. * @returns {Promise} */ getContentData(): Promise; /** * Cleans up the instance. * @returns {void} */ destroy(): void; } export { MockMediaAdapter }; //# sourceMappingURL=Mock.d.mts.map