import * as Effect from "effect/Effect"; import * as FileSystem from "effect/FileSystem"; import * as Schema from "effect/Schema"; import type { JsonFileReadResult } from "./types.js"; /** * Read a JSON file, parse it, and validate it against a schema. * * Returns a {@link JsonFileReadResult} discriminated union so callers can * decide how to present each failure mode (missing file, I/O error, malformed * JSON, schema mismatch) without catching exceptions. * * @param filePath - Absolute path to the JSON file. * @param schema - Effect Schema to validate the parsed JSON against. * * @experimental This API is unstable and may change without notice. */ export declare const readAndValidateJsonFile: (filePath: string, schema: S, options?: { readonly maxSchemaIssues?: number; }) => Effect.Effect, never, FileSystem.FileSystem | S["DecodingServices"]>; //# sourceMappingURL=read-and-validate-json-file.d.ts.map