/** * Defines a generic interface for formatting data into a string. */ interface ResponseFormatter { format(data: T): string; } /** * Interface for a single knowledge item response */ interface SingleKnowledgeResponse { id: string; projectId: string; text: string; tags?: string[]; domain: string; citations?: string[]; createdAt: string; updatedAt: string; properties?: any; identity?: number; labels?: string[]; elementId?: string; } /** * Interface for bulk knowledge addition response */ interface BulkKnowledgeResponse { success: boolean; message: string; created: (SingleKnowledgeResponse & { properties?: any; identity?: number; labels?: string[]; elementId?: string; })[]; errors: { index: number; knowledge: any; error: { code: string; message: string; details?: any; }; }[]; } /** * Formatter for single knowledge item addition responses */ export declare class SingleKnowledgeFormatter implements ResponseFormatter { format(data: SingleKnowledgeResponse): string; } /** * Formatter for bulk knowledge addition responses */ export declare class BulkKnowledgeFormatter implements ResponseFormatter { format(data: BulkKnowledgeResponse): string; } /** * Create a formatted, human-readable response for the atlas_knowledge_add tool * * @param data The raw knowledge addition response data (can be SingleKnowledgeResponse or BulkKnowledgeResponse) * @param isError Whether this response represents an error condition (primarily for single responses if not inherent in data) * @returns Formatted MCP tool response with appropriate structure */ export declare function formatKnowledgeAddResponse(data: any, isError?: boolean): any; export {};