/** * Local mirror sidecar helpers. * * D062 envelope producers should write semantic payloads under * `_local.content`. Older producers and some direct integration callbacks * instead wrote sibling fields such as `_local.toolName`, `_local.args`, * `_local.result`, `_local.input`, and `_local.output`. Those fields are * still local-only evidence, so recall, trace, and summarize should not * drop them just because the producer used the older shape. */ export type LocalSidecarLike = object; export declare function isLocalSidecarLike(value: unknown): value is LocalSidecarLike; /** * Return the recall-readable content payload for a local sidecar. * * If `_local.content` exists, it wins. If not, derive the equivalent * content shape from known legacy fields. The returned value is still * local-only data. It is never part of the signed AtribRecord bytes. */ export declare function deriveLocalContentFromSidecar(eventTypeUri: string, local: unknown): unknown | undefined; /** * Clone a local sidecar and populate `content` when it can be derived. * Consumers that need the full sidecar keep the original fields; consumers * that only know D062 `_local.content` get a stable shape. */ export declare function withDerivedLocalContent(eventTypeUri: string, local: T): T & { content?: unknown; }; //# sourceMappingURL=local-sidecar.d.ts.map