/** * Rendered files tracking utilities for extension-managed output files. * * Provides schemas and hashing for tracking which files an extension has * rendered, keyed by agent ID. Used as a lockfile mixin. * * @experimental This API is unstable and may change without notice. */ import * as Schema from "effect/Schema"; /** * Branded string for content source hashes. * * A `SourceHash` is an advisory change-detection marker: the SHA-256 of * canonical content captured at install/enable time. It powers * created/updated/unchanged reporting and drift hints. It is NOT a tamper * seal — installed canonical content is workspace-owned and may be * rewritten by content-preserving tools (formatters, line-ending * normalization) after install, so a stored hash can legitimately go stale. * Consumers must never hard-fail on a mismatch; supply-chain integrity is * enforced separately by verifying registry archive SRI hashes at download * time. * * @experimental This API is unstable and may change without notice. */ export declare const SourceHashSchema: Schema.brand; /** * Branded SourceHash type. * * @experimental This API is unstable and may change without notice. */ export type SourceHash = Schema.Schema.Type; /** * Branded string for rendered file paths tracked in lockfiles. * * These are workspace-root-relative managed-output paths. Lockfiles must not * persist host-specific absolute paths. * * @experimental This API is unstable and may change without notice. */ export declare const RenderedFilePathSchema: Schema.brand, "RenderedFilePath">; /** * Branded RenderedFilePath type. * * @experimental This API is unstable and may change without notice. */ export type RenderedFilePath = Schema.Schema.Type; /** * Schema for the rendered files map — a record keyed by agent ID, * where each value is an array of rendered file entries. * * Used as a lockfile mixin to track which files have been rendered * per agent. * * @experimental This API is unstable and may change without notice. */ export declare const RenderedFilesMapSchema: Schema.$Record, "RenderedFilePath">; }>>>; /** * Inferred type for the rendered files map. * * @experimental This API is unstable and may change without notice. */ export type RenderedFilesMap = Schema.Schema.Type; /** * Compute a SHA-256 hash of arbitrary content. * * Callers determine what to hash — this function accepts any string content * and returns a branded SourceHash. * * @experimental This API is unstable and may change without notice. */ export declare const computeSourceHash: (content: string) => SourceHash; //# sourceMappingURL=rendered-files.d.ts.map