import type { NativeLocalExecutionState, NativePortableState, NativePortableWorkspace } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; import type { NativeWorkspaceBinding } from './native-workspace.js'; export declare const NAME_PATTERN: RegExp; export declare const NATIVE_PORTABLE_STATE_FILE = "comet-state.yaml"; export declare const NATIVE_LOCAL_EXECUTION_FILE = "state.json"; export declare function nativePortableChangeDir(paths: NativeProjectPaths, name: string): string; export declare function nativePortableStateFile(paths: NativeProjectPaths, name: string): string; export declare function nativeLocalExecutionFile(paths: NativeProjectPaths, name: string): string; export declare function isNativePortableChange(paths: NativeProjectPaths, name: string): Promise; export declare function portableWorkspace(binding?: NativeWorkspaceBinding): NativePortableWorkspace; export declare function currentBranch(projectRoot: string): string | null; /** * `--isolation current` changes created before the project had a Git * repository persist a null branch binding. A Supervisor Shape requires a Git * target branch; bind such a workspace to the attached branch when the * confirmation boundary is reached, mirroring what `--isolation current` * would have recorded at creation time. Returns null while the project root * has no attached branch that resolves to a commit. */ export declare function lateBindPortableCurrentWorkspace(workspace: NativePortableWorkspace, projectRoot: string): NativePortableWorkspace | null; export declare function assertPortableWorkspaceBindingCurrent(projectRoot: string, binding: NativeWorkspaceBinding | undefined): void; export declare function readNativePortableChange(paths: NativeProjectPaths, name: string): Promise; export declare function writePortableMutation(options: { paths: NativeProjectPaths; previous: NativePortableState; next: NativePortableState; }): Promise; export declare function readNativePortableRuntime(options: { paths: NativeProjectPaths; name: string; }): Promise<{ state: NativePortableState; local: NativeLocalExecutionState | null; localStatus: 'available' | 'missing' | 'invalid' | 'stale'; }>; //# sourceMappingURL=native-portable-storage.d.ts.map