/** * `.specweave/` folders, the committed memory index, `.gitattributes` and the * config fill that `specweave init` runs (1407). */ /** The committed project memory index `init` creates (see the AGENTS.md template). */ export declare const MEMORY_INDEX_STUB: string; /** * Create the .specweave directory structure: increments/, state/ and the * committed memory index. No living-docs scaffold (3.0). * * @param targetDir - Target directory * @param _adapterName - Adapter name (unused, kept for API compatibility) * @param _options - Unused, kept for API compatibility */ export declare function createDirectoryStructure(targetDir: string, _adapterName: string, _options?: { projectName?: string; scanExistingDocs?: boolean; }): Promise; /** Create `.specweave/memory/MEMORY.md` unless one exists. */ export declare function ensureMemoryIndex(targetDir: string): void; export declare const LEDGER_MERGE_ATTRIBUTE = "**/ledger.jsonl merge=union"; /** * Create `.gitattributes` from the template, or (when the user already has one) * append only the lines SpecWeave needs. Idempotent: re-running init never * duplicates a line and never clobbers user content. */ export declare function ensureGitattributes(targetDir: string, templatePath: string): void; /** * Write `.specweave/config.json` so that it has every default, without * replacing anything the project already set: keys in the file win, defaults * only fill what is missing (one level deep, so `testing.commands` survives * while a missing `testing` block is added). `adapters.default` is the one * key set outright, to the tool this run settled on. * * A file that is not a JSON object is left untouched ('unreadable'): the * person's settings may still be recoverable from it. */ export declare function ensureConfigFile(targetDir: string, projectName: string, adapter: string): 'created' | 'kept' | 'unreadable'; /** * `current` with the keys it lacks added from `fallback`. Keys `current` has * win and keep their order, so two writers filling the same object never * reorder each other's work (which would rewrite an unchanged config). */ export declare function fillMissing(current: object, fallback: object): Record; /** * Write `data` as two-space JSON unless the file already holds exactly that, * so a re-run leaves an unchanged file untouched (no mtime churn for watchers). */ export declare function writeJsonIfChanged(filePath: string, data: unknown): boolean; //# sourceMappingURL=directory-structure.d.ts.map