UNPKG

neura-sdk

Version:

TypeScript SDK for interacting with the Neura AI API

16 lines (15 loc) 525 B
import React from 'react'; import { CompletionsRequestOptions, NeuraResponse } from '../types'; interface NeuraCompletionProps { options: CompletionsRequestOptions; onSuccess?: (response: NeuraResponse) => void; onError?: (error: Error) => void; children: (state: { response: NeuraResponse | null; loading: boolean; error: Error | null; refetch: () => Promise<void>; }) => React.ReactNode; } export declare const NeuraCompletion: React.FC<NeuraCompletionProps>; export {};