react-native-deepgram
Version:
React Native SDK for Deepgram's AI-powered speech-to-text, real-time transcription, and text intelligence APIs. Supports live audio streaming, file transcription, sentiment analysis, and topic detection for iOS and Android.
12 lines • 387 B
TypeScript
export interface UseAsyncCallReturn<T> {
data: T | null;
status: 'idle' | 'loading' | 'error';
error: Error | null;
execute: () => Promise<T>;
reset: () => void;
isLoading: boolean;
isError: boolean;
isSuccess: boolean;
}
export declare function useAsyncCall<T>(asyncFn: () => Promise<T>): UseAsyncCallReturn<T>;
//# sourceMappingURL=useAsyncCall.d.ts.map