/** [file, plugin] that contributed a configuration property. */ export type SourceInformation = [file: string | null, plugin: string]; /** * The synthetic plugin name target-defaults results are attributed to. Shared * so the merge can recognize a target-defaults stamp when reconciling * provenance — target defaults never genuinely author a target's existence or * its executor/command, so such a stamp must not overwrite a real plugin's * attribution for those keys. */ export declare const TARGET_DEFAULTS_PLUGIN_NAME = "nx/target-defaults"; /** * Write the source for a target's "identity" key (the target node itself, or * its executor/command). Real plugins win last; a target-defaults stamp only * claims the key when no real plugin already recorded it — target defaults * never bring a target into existence, they only layer fields onto one. */ export declare function recordTargetIdentitySourceMapInfo(sourceMap: Record, key: string, sourceInfo: SourceInformation): void; /** Source map per project root. */ export type ConfigurationSourceMaps = Record>; export declare function forEachSourceMapKeyForArray(prefixKey: string, array: unknown[], callback: (key: string, index: number) => void, startIndex?: number): void; export declare function readArrayItemSourceInfo(sourceMap: Record, arrayKey: string, itemIndex: number): SourceInformation | undefined; export declare function readObjectPropertySourceInfo(sourceMap: Record, objectKey: string, propertyKey: string): SourceInformation | undefined; export declare function recordSourceMapInfo(sourceMap: Record, key: string, sourceInfo: SourceInformation): void; export declare function recordSourceMapKeysByIndex(sourceMap: Record, prefixKey: string, array: unknown[], sourceInfo: SourceInformation, startIndex?: number): void; export declare function targetSourceMapKey(targetName: string): string; export declare function targetOptionSourceMapKey(targetName: string, optionKey: string): string; export declare function targetConfigurationsSourceMapKey(targetName: string, configurationName?: string, configurationKey?: string): string;