export interface ClientToolDefinition { description?: string; parameters?: Record; execute: (args: Record) => Promise; } export interface QueryCallbacks { onToolCall?: (call: { toolCallId: string; toolName: string; args: Record; }) => void; } export interface QueryResponse { status: string; data?: string; toolCall?: { toolCallId: string; toolName: string; args: Record; }; threadId?: string; error?: { message: string; }; } export declare class CrewxClient { private readonly baseUrl; private readonly tools; constructor(baseUrl: string); registerTool(name: string, definition: ClientToolDefinition): void; query(agent: string, message: string, callbacks?: QueryCallbacks): Promise; private _post; }