/** * Type declarations for src/receive-loop.mjs */ import type { MessageLike } from './receive-policy.mjs'; export interface RunInboxLoopOptions { root: string; me: string; signal: AbortSignal; poll?: boolean; isTrusted: (from: string) => boolean; emit: (payload: { envelopes: MessageLike[]; activeId: string | null; triggerTurn: boolean; urgentTrusted: boolean; }) => Promise; } export function runInboxLoop(options: RunInboxLoopOptions): Promise; export function dequeueNext(options: { root: string; me: string }): Promise;