import type { SessionAgentReaction } from '@xopcai/gateway-contract'; import type { Config } from '../../config/schema.js'; import { type ReactionTarget } from '../../storage/sqlite/agent-reaction-repository.js'; export declare const AGENT_REACTION_DEADLINE_MS = 2000; export declare function parseReactionDecision(raw: string): string | null; export declare function reactionText(text: string): string; type ToneMessage = { role: 'user' | 'assistant'; text: string; }; declare function generateDecision(messages: ToneMessage[], name: string, style: string, modelRef: string, signal: AbortSignal, recentEmojis: string[]): Promise; /** The local-owner gateway shares one request and concurrency budget across all its devices. */ export declare class AgentReactionService { private readonly generate; private readonly attempts; private pending; constructor(generate?: typeof generateDecision); isEnabled(agentId: string, config: Config): boolean; consider(params: { target: ReactionTarget; text: string; started: number; signal: AbortSignal; eligible: () => boolean; publish: (reaction: SessionAgentReaction) => void; }): Promise; } export {};