export declare function ensureDir(dir: string): void; export declare function resetDir(dir: string): void; export declare function readJson(filePath: string): T; export declare function writeJson(filePath: string, data: unknown): void; export declare function fileExists(filePath: string): boolean; export declare function readText(filePath: string): string; export declare function writeText(filePath: string, content: string): void; export declare function getProjectName(): string; export declare function listDirs(dir: string): string[]; /** * Extract ours/theirs sections from a file with git conflict markers. * Handles standard format and diff3 format (with ||||||| base section). * Returns null if no conflict markers found. */ export declare function extractConflictSections(raw: string): { ours: string; theirs: string; } | null; /** * Parse one side of a JSON merge-conflict section into a normalized array payload. * Supports: * - full arrays: `[{}, {}]` * - single objects: `{}` * - empty object / null / empty string => `[]` * - array fragments extracted from inside a larger array: `{...}, {...}` */ export declare function parseConflictJsonArray>(raw: string): T[]; //# sourceMappingURL=fs.d.ts.map