import { AgentId } from "./compat/codecs.mjs"; //#region src/sync.d.ts interface SyncOptions { /** Starting directory. */ cwd: string; /** Number of parent directories to ascend (0 = cwd only). Infinity = root. */ up: number; /** Agents to include in bidirectional sync. Empty = all detected. */ with: AgentId[]; /** Agents to exclude from bidirectional sync. */ without: AgentId[]; /** Apply changes without prompting. */ yes: boolean; /** Show changes only, never write. */ dryRun: boolean; /** Create config files that don't exist. */ create: boolean; /** Show verbose output (rule provenance). */ verbose: boolean; /** Write .bak files before overwriting. */ backup: boolean; } interface SyncResult { /** Per-file changes that would be applied. */ changes: FileChange[]; /** Whether changes were applied. */ applied: boolean; } interface FileChange { /** Absolute path to the file. */ path: string; /** Agent this file belongs to. */ agent: AgentId | "canonical"; /** "create" | "update" */ kind: "create" | "update"; /** Current content (null for new files). */ current: string | null; /** Proposed content. */ proposed: string; } declare function sync(options: SyncOptions): Promise; //#endregion export { FileChange, SyncOptions, SyncResult, sync }; //# sourceMappingURL=sync.d.mts.map