import React from 'react'; import type { AudioPlayerOptions } from './AudioPlayer'; export type WithAudioPlaybackProps = { children?: React.ReactNode; /** * What the playback belongs to. When it changes, every player this provider started is stopped * and discarded. Needed because a provider is not always unmounted when its subject changes * (`Channel` stays mounted across a channel switch). */ playbackScope?: unknown; }; export declare const SharedAudioPlaybackProvider: ({ children, }: { children?: React.ReactNode; }) => import("react/jsx-runtime").JSX.Element; export declare const WithAudioPlayback: ({ children, playbackScope, }: WithAudioPlaybackProps) => import("react/jsx-runtime").JSX.Element; export type UseAudioPlayerProps = { /** * Entity that requested the playback, e.g. a message ID. The player ID is `requester:src`, * because a URL can back several UI elements and an element can show several sources. Requests * with the same requester and URL (a message with duplicate attachments) share one player. */ requester?: string; } & Partial>; export declare const useAudioPlayer: ({ durationSeconds, fileSize, mimeType, playbackRates, plugins, requester, src, title, waveformData, }: UseAudioPlayerProps) => import("./AudioPlayer").AudioPlayer | undefined; export declare const useActiveAudioPlayer: () => import("./AudioPlayer").AudioPlayer | null | undefined; //# sourceMappingURL=WithAudioPlayback.d.ts.map