import { type OrgDaemon, type RunningOrg } from './daemon.js'; /** Cross-process leg of deliver(): ask the machine-local broker who hosts targetOrgName, then POST over HTTP. * `to` here is always the fully-qualified "org:role" display form (resolveAddress already normalized it). */ export declare function deliverRemote(daemon: OrgDaemon, fromOrg: string, fromRole: string, targetOrgName: string, targetRole: string, to: string, subject: string, body: string, src: RunningOrg | undefined, messageId: string): Promise; export interface ReceiveRemoteOpts { /** The caller presented the OPERATOR credential: skip the broker sender * identity check and trust `fromQualified` as given (M3). */ operator?: boolean; /** Origin message id (M3) — generated here when the sender sent none. */ messageId?: string; /** M4: the sending daemon's project root (xdeliver body `fromRoot`). */ fromRoot?: string; } /** Inbound handler for cross-process delivery — called by the server's POST /api/xdeliver route * when ANOTHER process's deliverRemote() reaches this daemon. Pushes straight into the target * agent's mailbox; the agent picks it up on its own next turn (see Mailbox — never interrupts). */ export declare function receiveRemote(daemon: OrgDaemon, toOrg: string, toRole: string, fromQualified: string, subject: string, body: string, fromCredential?: string, opts?: ReceiveRemoteOpts): Promise<{ ok: true; receipt: string; } | { ok: false; error: string; }>; //# sourceMappingURL=cross-org-remote.d.ts.map