import type { InstallScope } from '../../platform/install/types.js'; declare const MINIMUM_OPENSPEC_VERSION = "1.5.0"; type ProjectMutationGuard = () => void | Promise; type OpenSpecFailureObserver = (error: Error) => void; declare class ProjectMutationGuardError extends Error { readonly name = "ProjectMutationGuardError"; } declare function isProjectMutationGuardError(error: unknown): error is ProjectMutationGuardError; declare function getNpmExecutable(platform?: NodeJS.Platform): string; declare function buildOpenSpecInitInvocation(projectPath: string, toolIds: string[], scope: InstallScope, homeDir?: string, includeProfileFlag?: boolean): { command: string; args: string[]; }; declare function isCommandAvailable(command: string): boolean; declare function isOpenSpecVersionCompatible(versionOutput: string): boolean; declare function getOpenSpecVersion(): string | null; export declare function isOpenSpecCliCompatible(): boolean; declare function migrateOpenCodeOpenSpecPaths(homeDir: string): void; /** * OpenCode-compatible platforms can reuse openspec's opencode tool id. The * openspec CLI writes into the opencode directory, so mirror those skills and * commands into each platform-specific config directory. */ declare function mirrorOpenCodeCompatibleOpenSpecPaths(baseDir: string, scope: InstallScope, platformIds: string[]): void; declare function migrateZCodeOpenSpecPaths(baseDir: string, scope: InstallScope): void; declare function installOpenSpec(projectPath: string, toolIds: string[], scope: InstallScope, shouldInstallCli?: boolean, mirrorPlatformIds?: string[], artifactLayout?: 'legacy' | 'docs', projectMutationGuard?: ProjectMutationGuard, failureObserver?: OpenSpecFailureObserver, extraMirrorPlatformIds?: string[], moreMirrorPlatformIds?: string[], selectedPlatformIds?: string[]): Promise<'installed' | 'failed' | 'skipped'>; export { MINIMUM_OPENSPEC_VERSION, installOpenSpec, isCommandAvailable, isOpenSpecVersionCompatible, getOpenSpecVersion, buildOpenSpecInitInvocation, getNpmExecutable, migrateOpenCodeOpenSpecPaths, migrateZCodeOpenSpecPaths, mirrorOpenCodeCompatibleOpenSpecPaths, isProjectMutationGuardError, }; export type { ProjectMutationGuard }; //# sourceMappingURL=openspec.d.ts.map