export type ConversationMessage = {
    role: string;
    content: string;
};
/** Normalize pasted prompt JSON so JSON.parse accepts common copy/paste artifacts. */
export declare function normalizePromptJsonInput(value: string): string;
/** Parse prompt JSON; normalizes paste artifacts. Returns null for empty input. */
export declare function parsePromptJsonString(value: string): unknown | null;
/** True when value is a non-empty array of { role, content } string pairs only. */
export declare function isConversationMessageArray(parsed: unknown): parsed is ConversationMessage[];
/** Returns a user-facing error when conversation JSON rules fail; null when valid or not a conversation array. */
export declare function getConversationPromptValidationError(parsed: unknown): string | null;
/** Form validate helper: invalid message shape in a conversation array. */
export declare function getConversationMessageShapeError(parsed: unknown): string | null;
//# sourceMappingURL=validateConversationPromptJson.d.ts.map