UNPKG

@llamaindex/ui

Version:

A comprehensive UI component library built with React, TypeScript, and Tailwind CSS for LlamaIndex applications

28 lines (24 loc) 1.34 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import { client } from 'llama-cloud-services/api'; export { client as cloudApiClient } from 'llama-cloud-services/api'; import { Client } from '@llamaindex/workflows-client'; export { Client as WorkflowsClient, createClient as createWorkflowsClient, createConfig as createWorkflowsConfig, client as workflowsClient } from '@llamaindex/workflows-client'; import { AgentClient } from 'llama-cloud-services/beta/agent'; export { AgentClient as CloudAgentClient, createAgentDataClient as createCloudAgentClient } from 'llama-cloud-services/beta/agent'; type CloudApiClient = typeof client; interface ApiClients { workflowsClient?: Client; cloudApiClient?: CloudApiClient; agentDataClient?: AgentClient; } interface ApiProviderProps { children: ReactNode; clients: ApiClients; } declare function ApiProvider({ children, clients }: ApiProviderProps): react_jsx_runtime.JSX.Element; declare function createMockClients(): ApiClients; declare function useWorkflowsClient(): Client; declare function useCloudApiClient(): CloudApiClient; declare function useApiClients(): ApiClients; export { type ApiClients, ApiProvider, type ApiProviderProps, type CloudApiClient, createMockClients, useApiClients, useCloudApiClient, useWorkflowsClient };