export interface ArtifactPaths { slug: string; mdPath: string; jsonPath: string; } /** * Resolve a collision-free slug + its `.md`/`.json` paths under * `artifactDir`. The base slug wins when free; otherwise `-2`, `-3`, … * until neither the `.md` nor the `.json` exists. Bounded so a * pathological directory can't loop forever — after 998 collisions it * falls back to a high-resolution millisecond suffix rather than clobber. */ export declare function resolveUniqueArtifactPaths(artifactDir: string, baseSlug: string): Promise; /** * Write the artifact pair atomically, `.json` LAST as the commit marker. * Callers pass FINAL paths (already de-collided via * resolveUniqueArtifactPaths). Throws on any filesystem failure — the pack * handlers catch it and record the artifact as not-written. */ export declare function writeArtifactPair(artifactDir: string, mdPath: string, markdown: string, jsonPath: string, jsonPayload: string): Promise; //# sourceMappingURL=artifactWrite.d.ts.map