export declare const AGENT_TRIGGER_TYPES: readonly ["chat", "mention", "assigned"]; export type AgentTriggerType = (typeof AGENT_TRIGGER_TYPES)[number]; export declare const AGENT_TRIGGER_TYPE_LABELS: Record; export declare function normalizeTriggerType(raw: unknown): AgentTriggerType | 'unknown'; export declare function verifyAgentSignature(signingSecret: string, rawBody: Buffer | string, timestamp: string | undefined, signature: string | undefined): boolean; export declare function buildAgentSseBody(replyText: string): string; export declare const AGENT_SSE_HEADERS: { readonly 'content-type': "text/event-stream"; readonly 'cache-control': "no-cache"; readonly connection: "keep-alive"; }; export declare function buildAgentResponse(replyText: string, wantsStream: boolean): { body: Buffer | { message: string; }; headers: Record; statusCode: number; }; export interface AgentMentionContext { itemId: string | null; updateId: string | null; boardId: string | null; } export declare function extractAgentMentionContext(json: Record): AgentMentionContext; export declare function resolveSelectedTriggerTypes(param: unknown): AgentTriggerType[]; export declare const EXTERNAL_AGENT_USER_KIND = "external_agent_member"; export declare const EXTERNAL_AGENT_DETACHED_USER_KIND = "external_agent_detached_member"; export declare function isExternalAgentTokenKind(kind: unknown): boolean; export interface AgentIdentity { userId: string; userName: string; kind: string; email: string | null; agentId: string; agentName: string; agentKind: string | null; state: string | null; agentUserId: string | null; appFeatureId: string | null; goal: string | null; createdAt: string | null; updatedAt: string | null; } export declare function formatAgentIdentityLabel(identity: AgentIdentity): string;