import { atomicWriteTextIfUnchanged, readRegularFile, unlinkRegularFileIfUnchanged } from '../agent-file/atomic-write.js'; import { openConnection } from '../db/connection.js'; import { registerRepositoryAndLocation } from '../repository/binding.js'; export interface UseOptions { cwd?: string; root?: string; workspace?: string; agentFile?: string; dryRun?: boolean; noAgentFile?: boolean; forceRebind?: boolean; allowDirectory?: boolean; databasePath?: string; migrationsDirectory?: string; repositoryId?: string; /** Setup-only policy: ignore a binding created by this use operation. */ ensureNewBindingIgnored?: boolean; } export interface UseCommandDependencies { atomicWriteTextIfUnchanged?: typeof atomicWriteTextIfUnchanged; unlinkRegularFileIfUnchanged?: typeof unlinkRegularFileIfUnchanged; readBindingFileForConvergence?: typeof readRegularFile; readAgentFileForConvergence?: typeof readRegularFile; registerRepositoryAndLocation?: typeof registerRepositoryAndLocation; openConnection?: typeof openConnection; } export interface UseResult { repositoryRoot: string; repositoryId: string; workspace: string; databasePath: string; bindingFile: string; agentFile: string | null; agentFileAction: 'created' | 'updated' | 'unchanged' | 'skipped'; bindingAction: 'created' | 'updated' | 'unchanged' | 'planned'; dryRun: boolean; templateVersion: number; } export declare function useRepository(options?: UseOptions, dependencyOverrides?: UseCommandDependencies): Promise; //# sourceMappingURL=use.d.ts.map