/**
 * Serialization and deserialization for hierarchy message types.
 *
 * Converts structured message objects to markdown for PTY delivery,
 * and parses markdown back into typed objects on the agent side.
 *
 * Format uses header blocks with bracketed type identifiers:
 *   [TASK ASSIGNMENT], [STATUS REPORT], [VERIFICATION REQUEST], [VERIFICATION RESULT]
 */
import type { TaskAssignment, StatusReport, VerificationRequest, VerificationResult } from '../types/hierarchy-message.types.js';
/**
 * Serialize a TaskAssignment to markdown for PTY delivery.
 *
 * @param msg - The task assignment message
 * @returns Markdown-formatted string with [TASK ASSIGNMENT] header
 */
export declare function serializeTaskAssignment(msg: TaskAssignment): string;
/**
 * Serialize a StatusReport to markdown for PTY delivery.
 *
 * @param msg - The status report message
 * @returns Markdown-formatted string with [STATUS REPORT] header
 */
export declare function serializeStatusReport(msg: StatusReport): string;
/**
 * Serialize a VerificationRequest to markdown for PTY delivery.
 *
 * @param msg - The verification request message
 * @returns Markdown-formatted string with [VERIFICATION REQUEST] header
 */
export declare function serializeVerificationRequest(msg: VerificationRequest): string;
/**
 * Serialize a VerificationResult to markdown for PTY delivery.
 *
 * @param msg - The verification result message
 * @returns Markdown-formatted string with [VERIFICATION RESULT] header
 */
export declare function serializeVerificationResult(msg: VerificationResult): string;
/**
 * Parse a TaskAssignment from serialized markdown.
 *
 * @param text - Markdown text with [TASK ASSIGNMENT] header
 * @returns Parsed TaskAssignment or null if parsing fails
 */
export declare function parseTaskAssignment(text: string): TaskAssignment | null;
/**
 * Parse a StatusReport from serialized markdown.
 *
 * @param text - Markdown text with [STATUS REPORT] header
 * @returns Parsed StatusReport or null if parsing fails
 */
export declare function parseStatusReport(text: string): StatusReport | null;
/**
 * Parse a VerificationRequest from serialized markdown.
 *
 * @param text - Markdown text with [VERIFICATION REQUEST] header
 * @returns Parsed VerificationRequest or null if parsing fails
 */
export declare function parseVerificationRequest(text: string): VerificationRequest | null;
/**
 * Parse a VerificationResult from serialized markdown.
 *
 * @param text - Markdown text with [VERIFICATION RESULT] header
 * @returns Parsed VerificationResult or null if parsing fails
 */
export declare function parseVerificationResult(text: string): VerificationResult | null;
/**
 * Detect the message type from serialized markdown text.
 *
 * @param text - Markdown text to analyze
 * @returns The detected message type, or null if not recognized
 */
export declare function detectMessageType(text: string): TaskAssignment['type'] | StatusReport['type'] | VerificationRequest['type'] | VerificationResult['type'] | null;
//# sourceMappingURL=message-serializer.d.ts.map