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 { EnrichmentDefaults } from '../types/EnrichmentDefaults.js'; import type { ParseIssue } from '../context/ParseIssue.js'; /** * Arguments for {@link toEnrichmentDefaults}. The seed-values counterpart of * `SupportedSubjectsArgs` — same parse-then-capability shape, no attribution. */ type EnrichmentDefaultsArgs = { /** 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; }; /** * Compute the seed enrichment values each configured generator derives from a * document — the "Generate fields from schema" payload the CMS persists and the * user then edits. * * Runs Parse + a values pass: every generator that advertises * `toEnrichmentDefaults` is called over the subjects it supports, with no * transform and no render. The result mirrors the * `client.json#settings.enrichments` subtree (subject scope only) so a host can * fold it straight into settings. * * Like {@link toSupportedSubjects} it fails open: a bad schema surfaces as a * `parseIssue`, not a throw, and the defaults map is returned empty. */ export declare const toEnrichmentDefaults: ({ spanId, document, settings, toGeneratorConfigMap, stackTrail, silent, logsPath }: EnrichmentDefaultsArgs) => { enrichmentDefaults: EnrichmentDefaults; parseIssues: ParseIssue[]; }; export {};