/** * `metadata.repositories`: the repositories an increment changes (see * {@link IncrementMetadata.repositories}). Derived from task `Files` owners * and merged with entries a user declared. Raw read-modify-write of * metadata.json, like `touchIncrementUpdated`: it never validates, transitions * or syncs. * * @module core/tasks/increment-repositories */ import type { TaskBoard } from './task-board.js'; import { type RepositoryEntry } from './strict-close.js'; /** Owners of the board's `Files` entries, as project-relative paths. Unresolvable entries are skipped. */ export declare function deriveIncrementRepositories(root: string, board: TaskBoard, repos?: RepositoryEntry[]): string[]; /** A registered id stays an id; anything else becomes a project-relative POSIX path. */ export declare function normalizeRepositoryRef(root: string, ref: string, repos?: RepositoryEntry[]): string; export declare function readIncrementRepositories(incrementDir: string): string[]; /** * Write `repositories` as the union of `declared` and the board's Files * owners. Entries naming the same repository (id and path) collapse to one. * Returns the list written, or undefined when metadata.json is missing or * unchanged. */ export declare function writeIncrementRepositories(root: string, incrementDir: string, declared: string[], board?: TaskBoard): string[] | undefined; /** Add the board's Files owners to `repositories`. Best-effort: never fails a task command. */ export declare function refreshIncrementRepositories(root: string, incrementDir: string, board: TaskBoard): void; //# sourceMappingURL=increment-repositories.d.ts.map