import { FileMetadata, ImageMetadata, SerializedSchema, Source, SourcePath, ValidationError } from "@valbuild/core"; import { JSONValue, Patch } from "@valbuild/core/patch"; export type FixPatchRemainingError = ValidationError & { sourcePath?: SourcePath; }; /** * A whole media value, for the fixes that replace one outright. * * The three remote fixes each wrote this shape out by hand, and one of them was * left behind when the shape changed. One name, so the next change cannot miss a * site. * * `path` last is deliberate: it is the field the fix is about, and a stray * `path` inside the metadata must not win over it. */ export declare function mediaValue(path: string, metadata: unknown): Record; export declare function createFixPatch(config: { projectRoot: string; remoteHost: string; }, apply: boolean, sourcePath: SourcePath, validationError: ValidationError, remoteFiles: { [sourcePath: SourcePath]: { ref: string; metadata?: Record; }; }, moduleSource?: Source, moduleSchema?: SerializedSchema): Promise<{ patch: Patch; remainingErrors: FixPatchRemainingError[]; } | undefined>; export declare function getImageMetadata(projectRoot: string, validationError: ValidationError): Promise; export declare function getFileMetadata(projectRoot: string, validationError: ValidationError): Promise;