/**
 * Hook to check if unread chat messages exist for a given reference_id
 * Used to determine if a field has active unread chat conversations
 * Updated for hazo_chat v3.0.0 - Group-based chat architecture
 */
export interface UseChatMessagesCheckOptions {
    /**
     * Reference ID to check for messages (typically field_data_id)
     */
    reference_id: string | null | undefined;
    /**
     * Reference type (typically empty string for form fields)
     */
    reference_type?: string;
    /**
     * Chat group ID for the chat (v3.0.0+)
     * Used to identify the chat group for group-based messaging
     */
    chat_group_id?: string;
    /**
     * Whether to enable the check (default: true)
     */
    enabled?: boolean;
    /**
     * Chat realtime mode
     * - 'polling': Automatically poll for new messages
     * - 'manual': Disable automatic polling, only fetch once on mount
     * Default: 'polling'
     */
    realtime_mode?: 'polling' | 'manual';
    /**
     * Polling interval in milliseconds (default: 5000ms)
     * Set to 0 to disable polling
     * Only used when realtime_mode is 'polling'
     */
    poll_interval?: number;
}
/**
 * Hook to check if unread chat messages exist for a given reference_id
 * Checks for messages in the specified chat group where read_at is null
 * @param options Configuration options
 * @returns Object with has_messages boolean and loading state
 */
export declare function use_chat_messages_check({ reference_id, reference_type, chat_group_id, enabled, realtime_mode, poll_interval, }: UseChatMessagesCheckOptions): {
    has_messages: boolean;
    is_loading: boolean;
};
//# sourceMappingURL=use_chat_messages_check.d.ts.map