/** * @fileoverview Derive an Attribution tuple from a producer. * * `attribute()` is a pure function over a `SnippetBase` — it reads * the producer's `generatorKey`, the producer's own `stackTrail` (if * any), and the producer's `Definition`-shaped identifier (if applicable), * and returns the canonical * `{ generatorId, schemaPointer, variant, definitionName, producerName }` * tuple. Used by sidecar emission (Phase C) and the viewer (Phase E). * * `genVersion` is intentionally not populated here. The version → id * map is plumbed through Phase D when the CLI reads each entry's * `denoJson.version`; this layer stays pure. */ import type { SnippetBase } from '../dsl/SnippetBase.js'; import type { Attribution } from './types.js'; /** * Derive the attribution tuple for a producer. * * Producers without a `generatorKey` (rare — only test doubles or * runtime-orphaned Snippets) get `generatorId: ''` and a * key-derived fallback pointer. */ export declare const attribute: (producer: SnippetBase) => Attribution;