UNPKG

histoire

Version:

A fast story book powered by Vite

25 lines • 1.43 kB
import type { UiAiThreadAnchor, UiCommentAttachment, UiCommentMessage, UiCommentSessionOptions } from '@histoire/shared'; /** UUIDs are opaque labels and never participate in filesystem paths. */ export declare function commentId(value: unknown): string; /** Stored attachment references keep generated paths and bounded display metadata only. */ export declare function validateCommentAttachments(value: unknown): UiCommentAttachment[] | undefined; /** Session choices are opaque agent value IDs. */ export declare function validateCommentOptions(value: unknown): UiCommentSessionOptions | undefined; /** * Canvas point of a pinned thread, in bounded logical frame coordinates. * @param value Untrusted anchor. */ export declare function validateCommentAnchor(value: unknown): UiAiThreadAnchor; /** * JSON-safe prop snapshot, at most 16 KB once serialized. * @param value Untrusted props. */ export declare function validateCommentProps(value: unknown): Record<string, unknown> | undefined; /** * Generated screenshot path; existence is checked against the screenshot inventory. * @param value Untrusted project-relative path. */ export declare function validateCommentScreenshot(value: unknown): string | undefined; /** Preserve only project-relative agent-reported edits with finite line counts. */ export declare function validateCommentMessage(value: unknown): UiCommentMessage; //# sourceMappingURL=validate.d.ts.map