/** * AWS CDK + CDKTF framework detector (spec-07). * * Like Pulumi, CDK and CDKTF programs are ordinary TS/JS/Python/Go that * construct resources — already parsed for the call graph. We recognize the * construct instantiations and emit extra `CDK` / `CDKTF` resource nodes + * reference edges, leaving the normal call graph untouched. * * The distinguishing shape: a construct's **first** argument is the scope * (`this`/`self`/an identifier) and the **second** argument is the logical id * string — `new s3.Bucket(this, "MyBucket", { … })`. (Pulumi puts the name * first.) We never synthesize CFN/Terraform; this is static detection only. * * Scope conservatively: a construction is only recognized when its root * identifier is bound to a CDK (`aws-cdk-lib`, `@aws-cdk/*`, `aws_cdk`) or * CDKTF (`cdktf`, `@cdktf/*`) import. Unknown roots → no nodes. */ import type { IacGraph } from './types.js'; interface InFile { path: string; content: string; language: string; } export declare function extractCdk(files: InFile[]): IacGraph; export {}; //# sourceMappingURL=cdk.d.ts.map