/** * Shared task metadata normalization and safe formatting. * * Task storage currently serializes `context` as a JSON string, while callers * and test doubles may provide an already-parsed object. Keep that type * compatibility at the adapter boundary instead of dropping the field in a * summary DTO or coercing objects to "[object Object]" in the renderer. */ export type TaskContextValue = Record | unknown[] | string; /** * Normalize the task-store/CLI representations accepted by the plugin. * * - null/undefined/whitespace-only values become undefined; * - JSON object/array strings become structured values; * - malformed JSON and ordinary strings remain displayable strings; * - parsed objects/arrays are preserved without lossy coercion. */ export declare function normalizeTaskContext(value: unknown): TaskContextValue | undefined; /** Format a metadata value for a preformatted, HTML-escaped text node. */ export declare function formatTaskMetadata(value: unknown, empty?: string): string; //# sourceMappingURL=task-metadata.d.ts.map