import SpokestackTray, { IntentResult, SpokestackTrayProps } from './SpokestackTray'; export { listen, stopListening } from './Spokestack'; export { checkSpeech, requestSpeech } from './utils/permissions'; /** * Returns whether Spokestack is currently listening * * ```js * console.log(`isListening: ${await isListening()}`) * ``` */ export declare const isListening: () => Promise; /** * Returns whether Spokestack has been initialized * * ```js * console.log(`isInitialized: ${await isInitialized()}`) * ``` */ export declare const isInitialized: () => Promise; /** * Returns whether the speech pipeline has been started * * ```js * console.log(`isStarted: ${await isStarted()}`) * ``` */ export declare const isStarted: () => Promise; /** * Bind to any event emitted by the native libraries * The events are: "recognize", "partial_recognize", "error", "activate", "deactivate", and "timeout". * See the bottom of the README.md for descriptions of the events. * * ```js * useEffect(() => { * const listener = addEventListener('recognize', onRecognize) * // Unsubscribe by calling remove when components are unmounted * return () => { * listener.remove() * } * }, []) * ``` */ export declare const addEventListener: (eventType: string, listener: (event: any) => void, context?: Object) => import("react-native").EmitterSubscription; /** * Remove an event listener * * ```js * removeEventListener('recognize', onRecognize) * ``` */ export declare const removeEventListener: (eventType: string, listener: (...args: any[]) => any) => void; /** * Remove any existing listeners * * ```js * componentWillUnmount() { * removeAllListeners() * } * ``` */ export declare const removeAllListeners: () => void; export { IntentResult, SpokestackTrayProps }; export { Bubble } from './components/SpeechBubbles'; export default SpokestackTray;