import type { Agent, CreateWorkspaceInput, Recipe, Root, UpdateWorkspaceInput, Workspace, WorkspaceAgentAssignment, WorkspaceEvent, WorkspaceLocation } from "./types.js";
import type { ProjectManagementView, ProjectTransport, ProjectsDataApi, ProjectsListFilter } from "./types.js";
/** Which registry transport is serving this session ("local" sqlite vs hosted /v1). */
export declare function transport(): ProjectTransport;
/** The configured authority host for the http transport, or null for local. */
export declare function authority(): string | null;
export declare function listProjects(filter?: ProjectsListFilter): Promise<Workspace[]>;
export declare function getProject(idOrSlug: string): Promise<Workspace>;
export declare function createProject(input: CreateWorkspaceInput): Promise<Workspace>;
export declare function updateProject(id: string, patch: UpdateWorkspaceInput): Promise<Workspace>;
export declare function archiveProject(id: string): Promise<Workspace>;
export declare function unarchiveProject(id: string): Promise<Workspace>;
/**
 * Delete a project. Both transports throw when nothing was deleted (local:
 * `Workspace not found`; hosted: the DELETE route 404s), so a resolved call
 * means the deletion happened — `deleted` is therefore true, mirroring the
 * hosted /v1 `DeleteResult { deleted, hard, id }` contract.
 */
export declare function deleteProject(id: string, hard?: boolean): Promise<{
    deleted: boolean;
    hard: boolean;
    id: string;
}>;
export declare function listRoots(): Promise<Root[]>;
export declare function listRecipes(): Promise<Recipe[]>;
export declare function listAgents(): Promise<Agent[]>;
export declare function listProjectEvents(idOrSlug: string, limit?: number): Promise<WorkspaceEvent[]>;
export declare function listProjectLocations(idOrSlug: string): Promise<WorkspaceLocation[]>;
export declare function listProjectAgents(idOrSlug: string): Promise<WorkspaceAgentAssignment[]>;
export declare function managementView(project: Workspace): ProjectManagementView;
/**
 * The full TUI data API as a single object — the views may import this, or the
 * individual named functions above; both expose the same implementations.
 */
export declare const data: ProjectsDataApi;
//# sourceMappingURL=data.d.ts.map