import { WorkspacePreferredOpener, WorkspaceRegistryEntry, WorkspaceContextState, WorkspaceViewState } from '../../core/workspace/index.js'; import { SelectedWorkspace, WorkspaceLinkMutationPayload, WorkspaceListOutput, WorkspaceOutput, WorkspaceStatus } from './types.js'; export declare function directoryExists(dirPath: string): Promise; export declare function resolveExistingDirectory(inputPath: string, cwd?: string): Promise; export declare function inferLinkName(absolutePath: string): string; export declare function validateWorkspaceNameForSetup(name: string): string; export declare function validateLinkNameForCommand(name: string): string; export declare function createManagedWorkspace(name: string, links: Record, preferredOpener?: WorkspacePreferredOpener, context?: WorkspaceContextState | null, tools?: string[]): Promise; export declare function parseSetupLinks(linkInputs: string[] | undefined): Promise>; export declare function loadWorkspaceForList(entry: WorkspaceRegistryEntry): Promise; export declare function loadWorkspaceForDoctor(selected: SelectedWorkspace): Promise<{ workspace: WorkspaceOutput; status: WorkspaceStatus[]; }>; export declare function readWorkspaceForMutation(selected: SelectedWorkspace): Promise; export declare function addWorkspaceLink(selected: SelectedWorkspace, nameOrPath: string, linkPath?: string): Promise; export declare function updateWorkspaceLink(selected: SelectedWorkspace, linkNameInput: string, linkPath: string): Promise; export declare function deriveWorkspaceNameForInitiative(initiativeId: string): string; export declare function selectOrCreateWorkspaceForInitiativeOpen(input: { workspaceName?: string; context: WorkspaceContextState; preferredOpener?: WorkspacePreferredOpener; linksForNewWorkspace?: () => Promise>; }): Promise<{ selected: SelectedWorkspace; created: boolean; state: WorkspaceViewState; }>; //# sourceMappingURL=operations.d.ts.map