export declare const WORKSPACE_METADATA_DIR_NAME = ".openspec-workspace"; export declare const WORKSPACE_SHARED_STATE_FILE_NAME = "workspace.yaml"; export declare const WORKSPACE_LOCAL_STATE_FILE_NAME = "local.yaml"; export declare const WORKSPACE_CHANGES_DIR_NAME = "changes"; export declare const MANAGED_WORKSPACES_DIR_NAME = "workspaces"; export declare const WORKSPACE_REGISTRY_FILE_NAME = "registry.yaml"; export declare const WORKSPACE_LOCAL_STATE_IGNORE_PATTERN = ".openspec-workspace/local.yaml"; export declare const WORKSPACE_CODE_WORKSPACE_EXTENSION = ".code-workspace"; export declare const WORKSPACE_SUPPORTED_OPENER_VALUES: readonly ["codex", "claude", "github-copilot", "editor"]; export declare const WORKSPACE_AGENT_OPENER_IDS: readonly ["codex", "claude", "github-copilot"]; export declare const WORKSPACE_EDITOR_OPENER_IDS: readonly ["vscode"]; export type WorkspaceSupportedOpenerValue = typeof WORKSPACE_SUPPORTED_OPENER_VALUES[number]; export type WorkspaceAgentOpenerId = typeof WORKSPACE_AGENT_OPENER_IDS[number]; export type WorkspaceEditorOpenerId = typeof WORKSPACE_EDITOR_OPENER_IDS[number]; export type WorkspacePreferredOpener = { kind: 'agent'; id: WorkspaceAgentOpenerId; } | { kind: 'editor'; id: WorkspaceEditorOpenerId; }; export interface WorkspaceSharedState { version: 1; name: string; links: Record; } export type WorkspaceLinkState = Record; export interface WorkspaceLocalState { version: 1; paths: Record; preferred_opener?: WorkspacePreferredOpener; workspace_skills?: WorkspaceSkillState; } export interface WorkspaceSkillState { selected_agents: string[]; last_applied_profile?: 'core' | 'custom'; last_applied_delivery?: 'both' | 'skills' | 'commands'; last_applied_workflow_ids?: string[]; last_applied_at?: string; } export interface WorkspaceRegistryState { version: 1; workspaces: Record; } export interface WorkspaceRegistryEntry { name: string; workspaceRoot: string; } export interface WorkspacePathOptions { globalDataDir?: string; } export declare function getWorkspaceMetadataDir(workspaceRoot: string): string; export declare function getWorkspaceSharedStatePath(workspaceRoot: string): string; export declare function getWorkspaceLocalStatePath(workspaceRoot: string): string; export declare function getWorkspaceChangesDir(workspaceRoot: string): string; export declare function getManagedWorkspacesDir(options?: WorkspacePathOptions): string; export declare function getManagedWorkspaceRoot(workspaceName: string, options?: WorkspacePathOptions): string; export declare function getWorkspaceRegistryPath(options?: WorkspacePathOptions): string; export declare function getWorkspaceCodeWorkspaceFileName(workspaceName: string): string; export declare function getWorkspaceCodeWorkspacePath(workspaceRoot: string, workspaceName: string): string; export declare function getWorkspacePortableIgnorePatterns(workspaceName?: string): string[]; export declare function validateWorkspaceName(name: string): string; export declare function validateWorkspaceLinkName(name: string): string; export declare function isValidWorkspaceName(name: string): boolean; export declare function isValidWorkspaceLinkName(name: string): boolean; export declare function isWorkspaceRoot(candidateRoot: string): Promise; export declare function findWorkspaceRoot(startPath?: string): Promise; export declare function isWorkspaceAgentOpenerId(value: string): value is WorkspaceAgentOpenerId; export declare function isWorkspaceSupportedOpenerValue(value: string): value is WorkspaceSupportedOpenerValue; export declare function parseWorkspacePreferredOpenerValue(value: string): WorkspacePreferredOpener; export declare function validateWorkspacePreferredOpener(opener: WorkspacePreferredOpener): WorkspacePreferredOpener; export declare function parseWorkspaceSharedState(content: string): WorkspaceSharedState; export declare function parseWorkspaceLocalState(content: string): WorkspaceLocalState; export declare function parseWorkspaceRegistryState(content: string): WorkspaceRegistryState; export declare function serializeWorkspaceSharedState(state: WorkspaceSharedState): string; export declare function serializeWorkspaceLocalState(state: WorkspaceLocalState): string; export declare function serializeWorkspaceRegistryState(state: WorkspaceRegistryState): string; export declare function listWorkspaceRegistryEntries(registry: WorkspaceRegistryState): WorkspaceRegistryEntry[]; export declare function readWorkspaceSharedState(workspaceRoot: string): Promise; export declare function readWorkspaceLocalState(workspaceRoot: string): Promise; export declare function readOptionalWorkspaceLocalState(workspaceRoot: string): Promise; export declare function writeWorkspaceSharedState(workspaceRoot: string, state: WorkspaceSharedState): Promise; export declare function writeWorkspaceLocalState(workspaceRoot: string, state: WorkspaceLocalState): Promise; export declare function readWorkspaceRegistryState(options?: WorkspacePathOptions): Promise; export declare function writeWorkspaceRegistryState(state: WorkspaceRegistryState, options?: WorkspacePathOptions): Promise; export declare function workspaceChangesDirExists(workspaceRoot: string): Promise; //# sourceMappingURL=foundation.d.ts.map