import { AxioDB } from '../../../Services/Indexation.operation'; import { TCPResponse } from '../../types/protocol.types'; /** * Collection Handler - Handles collection-related TCP commands * Uses AxioDB instance directly for idempotent operations */ export default class CollectionHandler { private controller; private axioDB; constructor(axioDB: AxioDB); /** * Handle CREATE_COLLECTION command * Note: This is idempotent - returns collection whether it exists or not */ handleCreateCollection(requestId: string, params: any): Promise; /** * Handle DELETE_COLLECTION command */ handleDeleteCollection(requestId: string, params: any): Promise; /** * Handle COLLECTION_EXISTS command */ handleCollectionExists(requestId: string, params: any): Promise; /** * Handle GET_COLLECTION_INFO command */ handleGetCollectionInfo(requestId: string, params: any): Promise; }