import type { SqliteDatabase } from '../db/adapter.js'; import { type RootSource } from '../repository/detect-root.js'; export declare const GLOBAL_REPOSITORY_ID = "kiokuko_global"; export declare const GLOBAL_WORKSPACE = "global"; export interface ResolvedProjectWorkspace { repositoryRoot: string; repositoryId: string; workspace: string; source: RootSource | 'location' | 'remote' | 'local-path'; } export declare function ensureGlobalWorkspace(database: SqliteDatabase, now?: string): void; /** * Resolve the current repository without requiring `kiokuko use` and persist only * the path-to-workspace mapping in the global database. No repository file is written. */ export declare function resolveProjectWorkspace(database: SqliteDatabase, cwd?: string): Promise; /** * Resolve a repository for a read-only lookup without registering its path, * updating last-used timestamps, or creating a repository row. * * The normal resolver intentionally persists this mapping so later commands * can reuse the same project identity. A read-only lookup must not turn an * untrusted cwd input into database state. */ export declare function resolveProjectWorkspaceReadOnly(database: SqliteDatabase, cwd?: string): Promise; //# sourceMappingURL=workspaces.d.ts.map