UNPKG

@sajari/sdk-react

Version:
28 lines (27 loc) 841 B
import * as React from "react"; export interface VoiceInputProps { onVoiceInput: (input: string) => void; Renderer: React.ComponentType<{ active: boolean; onClick: (event: React.MouseEvent<any>) => void; }>; } export interface VoiceInputState { active: boolean; previousRecognition: any; recognition: any; supports: boolean; } export declare class VoiceInput extends React.Component<VoiceInputProps, VoiceInputState> { state: { active: boolean; recognition: any; previousRecognition: any; supports: boolean; }; componentDidMount(): void; handleClick: () => void; render(): JSX.Element | null; } export declare const EmptyMicIcon: (props: any) => JSX.Element; export declare const MicIcon: (props: any) => JSX.Element;