UNPKG

@llamaindex/ui

Version:

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

32 lines (28 loc) 1.48 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; project?: { id?: string | null; }; } declare function ApiProvider({ children, clients, project }: ApiProviderProps): react_jsx_runtime.JSX.Element; declare function createMockClients(): ApiClients; declare function useWorkflowsClient(): Client; declare function useCloudApiClient(): CloudApiClient; declare function useAgentDataClient(): AgentClient; declare function useApiClients(): ApiClients; export { type ApiClients, ApiProvider, type ApiProviderProps, type CloudApiClient, createMockClients, useAgentDataClient, useApiClients, useCloudApiClient, useWorkflowsClient };