/** * Serverless Framework extraction (change: add-iac-deploy-binding-commands). * * A `serverless.yml` declares functions the same way a SAM template does — `functions.` * with a `.` handler — so each function becomes a resource carrying the `deploys` * binding the shared deploy binder already resolves against indexed source. * * A manifest's own `resources.Resources` block is CloudFormation written inside a Serverless file, * and it is read by NOBODY: dispatch is by language tag, so the CloudFormation extractor never * sees a file tagged `Serverless` (and its own probe requires `Resources:` at the top level, which * this is not). Those resources are therefore absent from the graph, not read elsewhere. * * Static only: no plugin execution, no `${...}` variable resolution, no `sls package`. A handler * behind a variable, a container image, or a runtime nothing binds is recorded as an unresolved * binding with the reason, never dropped silently. A file the YAML parser reports errors for — a * `---`-separated multi-document file among them, which the framework does not accept either — is * skipped whole, as every other ecosystem's reader skips an unparseable file. */ import type { IacGraph } from './types.js'; interface InFile { path: string; content: string; language?: string; } /** * Whether a path names a Serverless service manifest. The framework reads exactly these names * (plus `--config`, which is not in the repository's own layout). */ export declare function isServerlessPath(path: string): boolean; /** * Whether a file's text declares a Serverless service: a `service` key, or a `provider` with a * `functions` block. A cheap corroboration so a same-named file is not misclassified — it accepts * the JSON spelling too (a quoted, indented key), since the framework reads `serverless.json`. * The file name has already been matched by {@link isServerlessPath}, so leading whitespace is no * risk here. */ export declare function looksLikeServerless(content: string): boolean; export declare function extractServerless(files: readonly InFile[]): IacGraph; export {}; //# sourceMappingURL=serverless.d.ts.map