import { readFile } from "node:fs/promises"; import { readJson } from "./fs-extra.js"; type ReadFileOptions = Parameters[1]; export type EnsureReadFile = (path: string, defaultContent?: string, options?: ReadFileOptions) => Promise; export type EnsureReadJson = (path: string, defaultContent: T, options?: Parameters[1]) => Promise; export declare let ensureReadFile: (pathLike: string, defaultContent?: string, options?: Parameters[1]) => Promise; export declare let ensureReadJson: (pathLike: string, defaultContent: T, options?: Parameters[1]) => Promise; export {};