import type { TSESTree } from '@typescript-eslint/types'; import type { Construct } from '../../constructs/construct.js'; import { type ParsedSource } from '../write-back/source-file.js'; /** * The project's source files as the deploy plan reads them, each parsed * once however many constructs it declares. Everything here is best effort: * a file that cannot be read or parsed, or a construct whose declaration * cannot be found in it, yields `undefined`, and the plan renders without * what the source would have told it. */ export declare class SourceIndex { #private; source(filePath: string): ParsedSource | undefined; /** The options literal of the construct's `new ('', { … })` in the file that declares it. */ options(construct: Construct): TSESTree.ObjectExpression | undefined; /** The properties the construct's declaration spells out (`ContextOptions.spelledOut`), when it can be read. */ spelledOut(construct: Construct): ReadonlySet | undefined; }