import type { ClientSettings } from '../types/Settings.js'; import type { GeneratorsMapContainer } from '../types/GeneratorType.js'; import type { StackTrail } from '../context/StackTrail.js'; import type { SkmtcDocumentInput } from '../types/SkmtcDocument.js'; import type { SupportedSubjects } from '../types/SupportedSubjects.js'; import type { ParseIssue } from '../context/ParseIssue.js'; /** * Arguments for {@link toSupportedSubjects}. The capability-only counterpart of * `TransformArgs` — no attribution, since nothing is rendered. */ type SupportedSubjectsArgs = { /** Unique identifier for the trace */ traceId: string; /** Unique identifier for this span */ spanId: string; /** * Source document. OAS variant carries the OpenAPI v3 JSON; GQL variant * carries the SDL string. Protocol-specific parsing runs inside the pipeline. */ document: SkmtcDocumentInput; /** Client settings (only `include` / `skip` affect which generators run). */ settings: ClientSettings | undefined; /** Stack trail for distributed tracing */ stackTrail: StackTrail; /** Function that returns the generator configuration map */ toGeneratorConfigMap: () => GeneratorsMapContainer; /** Whether to suppress console output */ silent: boolean; /** Optional path for writing log files */ logsPath?: string; }; /** * Report the subjects each configured generator supports for a document. * * Runs only Parse + a capability pass — every generator's `isSupported` is * evaluated over the document's operations / models, with no transform and no * render. Use this to drive a UI that needs to know, ahead of a run, which * operations / models each generator would process. * * Like {@link toArtifacts} it fails open: a bad schema surfaces as a * `parseIssue`, not a throw, and the supported map is returned empty. */ export declare const toSupportedSubjects: ({ spanId, document, settings, toGeneratorConfigMap, stackTrail, silent, logsPath }: SupportedSubjectsArgs) => { subjects: SupportedSubjects; parseIssues: ParseIssue[]; }; export {};