import { SessionDto } from '../types/dtos'; import { WidgetAgentMessage, WidgetAiMessage, WidgetMessageU } from '../types/messages'; /** * Agent and AI messages are the ones that can carry options: a teammate's * macro arrives as AGENT, a workflow's (e.g. its send-macro action) as AI. */ export declare function isAgentOrAiMessage(message: WidgetMessageU): message is WidgetAgentMessage | WidgetAiMessage; /** * The message whose options the visitor can tap now: the newest agent or AI * message that carries options, while none of them is picked and the session * is not closed. Older options are spent, even if nobody tapped them. */ export declare function tappableOptionsMessage(messages: readonly WidgetMessageU[], session: Pick | null): WidgetAgentMessage | WidgetAiMessage | null; /** * The visitor must answer the tappable options by tapping, so the composer is * locked: they require a tap and no agent or AI message has arrived after * them. A tap (picked at once, on acceptance), a closed session or a newer * agent or AI message releases it. Options without `requireTap` never lock. */ export declare function isAwaitingRequiredTap(messages: readonly WidgetMessageU[], session: Pick | null): boolean; //# sourceMappingURL=message-options.d.ts.map