import type { Result } from "../result/result.js";
import type { ProjectSource } from "./project.js";
import type { ReadTextFailureReason } from "./read-text.js";
export type ReadJsonResult = Result<ReadJsonFailureReason, any>;
export type ReadJsonFailureReason = ReadTextFailureReason | InvalidJson;
export interface InvalidJson {
    readonly type: "invalid-json";
    readonly path: string;
}
export declare function readProjectJson(project: ProjectSource, path: string): Promise<ReadJsonResult>;
