/**
* AgentProvider - React Context Provider for Agent Configuration
*
* Provides agent configuration to child components and shares agent instance
* across the component tree. This allows multiple components to access the
* same agent configuration without prop drilling.
*
* Requirements: 1.1
*/
import React, { ReactNode } from 'react';
import { AgentConfig } from '../types';
export interface AgentContextValue {
/** Agent configuration */
config: AgentConfig;
}
export interface AgentProviderProps {
/** Agent configuration to provide to children */
config: AgentConfig;
/** Child components */
children: ReactNode;
}
/**
* Provider component that makes agent configuration available to all child components
*
* @example
* ```tsx
*
*
*
* ```
*/
export declare function AgentProvider({ config, children }: AgentProviderProps): React.ReactElement;
/**
* Hook to access agent configuration from context
* Must be used within an AgentProvider
*
* @throws Error if used outside of AgentProvider
* @returns Agent context value with configuration
*
* @example
* ```tsx
* function MyComponent() {
* const { config } = useAgentContext()
* return Max Steps: {config.maxSteps}
* }
* ```
*/
export declare function useAgentContext(): AgentContextValue;
//# sourceMappingURL=AgentProvider.d.ts.map