/** * Type declarations for src/receive-policy.mjs */ export interface MessageLike { id?: string; from?: string; to?: string | string[]; subject?: string; kind?: string; thread?: string; body?: string; priority?: string; created?: string; [key: string]: unknown; } export interface BatchPlan { injectable: MessageLike[]; activeId: string | null; triggerTurn: boolean; urgentTrusted: boolean; } export declare const ACTIONABLE_KINDS: Set; export function isActionable(message: MessageLike): boolean; export function isUrgent(message: MessageLike): boolean; export function classifyTrust(source: string | undefined | null): 'trusted' | 'untrusted'; export function stripEnvelope(message: MessageLike): MessageLike; export function formatEnvelope(message: MessageLike): string; export function planBatch(options: { messages: MessageLike[]; processedIds: string[]; isTrusted: (from: string) => boolean; currentActiveId: string | null | undefined; }): BatchPlan;