import type { ProjectRecord } from '../../project-scanner.js'; import type { ProjectRegistry } from '../../project-registry.js'; export interface UiHttpContext { rootPath: string; registry: ProjectRegistry; } export interface UiJsonResponse { status: number; body: unknown; } export interface UiProjectNotFoundError { error: { code: 'project_not_found'; message: string; details: { projectId: string; availableProjectIds: string[]; }; }; } export interface UiWorkspaceUnreadableError { error: { code: 'workspace_unreadable'; message: string; details: { projectId: string; rootPath: string; workspacePath: string; readable: boolean; }; }; } export type UiProjectLookupError = UiProjectNotFoundError | UiWorkspaceUnreadableError; export declare function handleProjectsRequest(context: UiHttpContext): Promise; export declare function getProjectById(context: UiHttpContext, projectId: string): Promise; export declare function getReadableProjectById(context: UiHttpContext, projectId: string): Promise; export declare function toProjectLookupErrorResponse(error: UiProjectLookupError): UiJsonResponse; //# sourceMappingURL=projects.d.ts.map