UNPKG

@teambit/workspace

Version:
24 lines (23 loc) 789 B
type ConflictPerId = { [compIdWithoutVersion: string]: string; }; export declare class MergeConflictFile { private workspacePath; conflictPerId: ConflictPerId | undefined; constructor(workspacePath: string); addConflict(id: string, conflict: string): void; removeConflict(id: string): void; getConflict(id: string): Promise<string | undefined>; getConflictAssumeIsLoaded(id: string): string | undefined; getConflictParsed(id: string): Record<string, any> | undefined; hasConflict(): boolean; getPath(): string; loadIfNeeded(): Promise<void>; write(): Promise<void>; delete(): Promise<void>; private formatConflicts; private stringHasConflictMarker; private parseConflict; private getFileContentIfExists; } export {};