import { type HandlerCallback, type IAgentRuntime, type Memory, type State } from "@elizaos/core"; import { type McpProvider, type McpServer } from "../types"; export declare function withModelRetry(initialInput: string, runtime: IAgentRuntime, validationFn: (data: unknown) => { success: true; data: T; } | { success: false; error: string; }, message: Memory, composedState: State, createFeedbackPromptFn: (originalResponse: string, errorMessage: string, composedState: State, userMessage: string) => string, callback?: HandlerCallback, failureMsg?: string, retryCount?: number): Promise; export declare function getMaxRetries(runtime: IAgentRuntime): number; export declare function handleNoSelectionAvailable(selection: T & { noToolAvailable?: boolean; noResourceAvailable?: boolean; }, callback?: HandlerCallback, message?: string): Promise; export declare function createMcpMemory(runtime: IAgentRuntime, message: Memory, type: string, serverName: string, content: string, metadata: Record): Promise; export declare function buildMcpProviderData(servers: McpServer[]): McpProvider;