import { Configuration, nodeUtils, Project, treeUtils, Workspace } from '@yarnpkg/core'; import { PortablePath } from '@yarnpkg/fslib'; export type ProcessResult = { manifestUpdates: Map>>>; reportedErrors: Map>; }; export interface Engine { process(): Promise; } export declare class Index { private indexedFields; private items; private indexes; constructor(indexedFields: Array); clear(): void; insert(item: T): T; find(filter?: { [K in keyof T]?: any; }): T[]; } export declare function normalizePath(p: Array | string): string; export type AnnotatedError = { text: string; fixable: boolean; }; export declare function applyEngineReport(project: Project, { manifestUpdates, reportedErrors }: ProcessResult, { fix }?: { fix?: boolean; }): { changedWorkspaces: Map>; remainingErrors: Map; }; export declare function convertReportToRoot(errors: Map>, { configuration }: { configuration: Configuration; }): treeUtils.TreeRoot;