@sendbird/uikit-react
Version:
Sendbird UIKit for React: A feature-rich and customizable chat UI kit with messaging, channel management, and user authentication.
21 lines (20 loc) • 720 B
TypeScript
import React from 'react';
import { VoicePlayerInitialState } from './dux/initialState';
export interface VoicePlayerProps {
children: React.ReactElement;
}
export interface VoicePlayerPlayProps {
groupKey: string;
audioFile?: File;
audioFileUrl?: string;
audioFileMimeType?: string;
}
export interface VoicePlayerContext {
play: (props: VoicePlayerPlayProps) => void;
pause: (groupKey?: string) => void;
stop: (text?: string) => void;
voicePlayerStore: VoicePlayerInitialState;
}
export declare const ALL = "ALL";
export declare const VoicePlayerProvider: ({ children, }: VoicePlayerProps) => React.ReactElement;
export declare const useVoicePlayerContext: () => VoicePlayerContext;