/** The fields of a `package.json` anything in this package looks at. */ export type Manifest = { name?: string; version?: string; dependencies?: Record; devDependencies?: Record; }; /** The dependency that marks a directory as a CDK project. */ export declare const CDK_PACKAGE = "@cargo-ai/cdk"; /** * Read and parse the `package.json` in `dir`. Undefined when there is none or * it is unreadable — every caller treats an absent manifest and an unparseable * one the same way. */ export declare function readManifest(dir: string): Manifest | undefined; /** * Whether a manifest belongs to a Cargo CDK project. Callers read the manifest * themselves because "no package.json here" and "a package.json that does not * use the CDK" deserve different messages where it matters. */ export declare function dependsOnCdk(manifest: Manifest): boolean; /** Whether `dir` itself holds a package.json declaring the CDK. */ export declare function declaresCdk(dir: string): boolean; //# sourceMappingURL=manifest.d.ts.map