import type { ToolCall } from '../../../types/ToolCall';
import type { TODO_any } from '../../../utils/organization/TODO_any';
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function parseToolCallArguments(toolCall: Pick<ToolCall, 'arguments'>): Record<string, TODO_any>;
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function parseToolCallResult(result: ToolCall['result']): TODO_any;
type SearchResultsExtraction = {
    results: Array<TODO_any>;
    rawText: string | null;
};
export type TeamToolResult = {
    teammate?: {
        url?: string;
        label?: string;
        instructions?: string;
        toolName?: string;
    };
    request?: string;
    response?: string;
    /**
     * Tool calls executed by the teammate while answering.
     */
    toolCalls?: ReadonlyArray<ToolCall>;
    error?: string | null;
    conversation?: Array<{
        sender?: string;
        name?: string;
        role?: string;
        content?: string;
    }>;
};
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function extractSearchResults(resultRaw: TODO_any): SearchResultsExtraction;
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function parseTeamToolResult(resultRaw: TODO_any): TeamToolResult | null;
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function getToolCallTimestamp(toolCall: Pick<ToolCall, 'createdAt'>): Date | null;
/**
 * @@@
 *
 * @private utility of `<Chat/>` component
 */
export declare function getToolCallResultDate(result: ToolCall['result']): Date | null;
export {};
/**
 * Note: [💞] Ignore a discrepancy between file name and entity name
 *         <- TODO: But maybe split into multiple files later?
 */
