import { n as ResultAsync } from "./result-Dg2-rfn6.js"; //#region src/manifest.d.ts /** * A parsed package.json manifest with common fields extracted. */ interface Manifest { readonly name: string | undefined; readonly version: string | undefined; readonly description: string | undefined; readonly license: string | undefined; readonly author: string | undefined; readonly repository: string | undefined; readonly homepage: string | undefined; readonly keywords: readonly string[]; readonly bin: Readonly> | undefined; } /** * Result type for manifest operations. Error is a plain message string. */ type ManifestResult = ResultAsync; /** * Read a package.json file and extract common manifest fields. * * @param dir - Directory containing the package.json. Defaults to the current working directory. * @returns A Result tuple with the parsed {@link Manifest} or an error message. */ declare function readManifest(dir?: string): ManifestResult; //#endregion export { Manifest, ManifestResult, readManifest }; //# sourceMappingURL=manifest.d.ts.map