/**
 * @fileoverview Projects handler for the DeepSource MCP server
 * This module provides MCP tool handlers for DeepSource projects using domain aggregates.
 */
import { IProjectRepository } from '../domain/aggregates/project/project.repository.js';
import { ApiResponse } from '../models/common.js';
import { Logger } from '../utils/logging/logger.js';
/**
 * Dependencies interface for the projects handler
 */
export interface ProjectsHandlerDeps {
    projectRepository: IProjectRepository;
    logger: Logger;
}
/**
 * Creates a projects handler with injected dependencies
 * @param deps - The dependencies for the handler
 * @returns The configured handler function
 */
export declare function createProjectsHandler(deps: ProjectsHandlerDeps): () => Promise<ApiResponse>;
/**
 * Fetches and returns a list of all available DeepSource projects using domain aggregates
 * @returns A response containing the list of projects with their keys and names
 * @throws MCPError if the DEEPSOURCE_API_KEY environment variable is not set or other errors occur
 * @public
 */
export declare function handleProjects(): Promise<ApiResponse>;
