export type HeaderMessageHandler = (rawData: unknown, onResult: (val: unknown) => void) => void;
interface UseHeaderObserverProps {
    handlers?: Record<string, HeaderMessageHandler>;
    setResult?: (result: unknown) => void;
}
export declare function parseValidationData(data: any): any;
/**
 * Extracts and parses JSON from a markdown block, supporting optional properties.
 * @param responseText The raw response string.
 * @param propertyName The property identifier to look for (e.g., "updated_fields").
 */
export declare function extractAndParseWithProperty(responseText: string, propertyName?: string): any | null;
export declare function extractAndParseResponse(responseText: string): any | null;
export declare function extractVariantIds(data: any): string[] | null;
/** * rawData: The string returned by the AI agent
 * onResult: The generic callback (e.g., setStructuredAIResponse)
 */
export declare const useHeaderObserver: ({ handlers, setResult }: UseHeaderObserverProps) => {
    processHeaderMessage: (message: any) => void;
};
export declare function extractTextFromChildren(children: any): string;
export {};
//# sourceMappingURL=utils.d.ts.map