import type { ProjectStore } from "../store/project-store.js"; import type { EventSource, JsonObject, Root, Workspace, WorkspaceKind } from "../types/workspace.js"; export interface WorkspaceImportPreview { name: string; slug: string; path: string; kind: WorkspaceKind; root_id?: string; tags: string[]; metadata: JsonObject; git_remote?: string; confidence: number; signals: string[]; } export interface ImportWorkspaceOptions { dryRun?: boolean; tags?: string[]; metadata?: JsonObject; agent_id?: string; source?: EventSource; prompt?: string; command?: string; } export interface ImportWorkspaceResult { workspace?: Workspace; preview?: WorkspaceImportPreview; skipped?: string; error?: string; } export interface ImportWorkspaceBulkResult { imported: Workspace[]; previews: WorkspaceImportPreview[]; skipped: Array<{ path: string; reason: string; }>; errors: Array<{ path: string; error: string; }>; } export interface ImportRegisteredRootsResult { dry_run: boolean; roots: Array<{ root: Root; result: ImportWorkspaceBulkResult; }>; imported: Workspace[]; previews: WorkspaceImportPreview[]; skipped: Array<{ path: string; reason: string; }>; errors: Array<{ path: string; error: string; }>; } export declare function planWorkspaceImport(store: ProjectStore, path: string, options?: ImportWorkspaceOptions): Promise; export declare function importWorkspace(store: ProjectStore, path: string, options?: ImportWorkspaceOptions): Promise; export declare function importWorkspaceBulk(store: ProjectStore, path: string, options?: ImportWorkspaceOptions): Promise; export declare function importRegisteredRoots(store: ProjectStore, options?: ImportWorkspaceOptions): Promise; //# sourceMappingURL=workspace-import.d.ts.map