export declare const UNRESOLVED_FORWARD_OUTBOX_MESH_ID = "__unresolved_forward_outbox__";
export interface UnresolvedForwardEntry {
    /** Row id in mesh_pending_events; pass back to ack/expire after a push attempt. */
    id: string;
    /** The coordinator daemon to push this event to (mesh_forward_event target). */
    coordinatorDaemonId: string;
    /** The flat payload to forward (already shaped for handleMeshForwardEvent). */
    payload: Record<string, unknown>;
    /** When the entry was first enqueued (epoch ms) — used for age-based expiry. */
    queuedAt: number;
}
/** Register (or clear, with undefined) the PHASE 0 retry nudge handler. */
export declare function registerUnresolvedForwardRetryNudge(handler?: () => void): void;
/** Fire-and-forget nudge: ask the reconcile loop to run the outbox retry soon. */
export declare function nudgeUnresolvedForwardRetry(): void;
/**
 * Durably enqueue an unresolved-delegate forward for a coordinator daemon. The
 * `forwardPayload` is the flat shape handleMeshForwardEvent reads on the coordinator.
 * Idempotent on the event fingerprint. Returns true when a new row was written (or a
 * duplicate was harmlessly ignored), false on a hard persistence failure.
 */
export declare function enqueueUnresolvedDelegateForward(coordinatorDaemonId: string, eventName: string, forwardPayload: Record<string, unknown>): boolean;
/** Peek (non-destructive) every undrained outbox entry across all coordinators. */
export declare function peekUnresolvedDelegateForwards(): UnresolvedForwardEntry[];
/** Mark an outbox entry delivered (acked) after a successful push. */
export declare function ackUnresolvedDelegateForward(id: string): void;
/**
 * Drop outbox entries that have exceeded the max retry age. Returns the count
 * expired so the caller can log a fail-loud trace (a dropped completion is a real
 * loss; it must be visible, not silent).
 */
export declare function expireStaleUnresolvedDelegateForwards(nowMs?: number): number;
/** Test helper: purge the entire outbox. */
export declare function __clearUnresolvedDelegateForwardOutboxForTests(): void;
