export interface InboxResult { success: boolean; error?: string; } /** Callbacks for inbox processing — dependency-injected by the app */ export interface InboxCallbacks { onFollow: (actorUri: string, targetActorUri: string, activityId: string) => Promise; onAccept: (actorUri: string, objectId: string) => Promise; onReject: (actorUri: string, objectId: string) => Promise; onUndo: (actorUri: string, objectType: string, objectId: string) => Promise; onCreate: (actorUri: string, object: Record) => Promise; onUpdate: (actorUri: string, object: Record) => Promise; onDelete: (actorUri: string, objectId: string) => Promise; onLike: (actorUri: string, objectUri: string) => Promise; onAnnounce: (actorUri: string, objectUri: string) => Promise; /** * Inbound consent-based mirror request (Phase 3). Optional: instances that don't implement it * reject the Offer as unsupported. `requesterActorUri` asked us (`targetActorUri`) to mirror them. */ onMirrorRequest?: (requesterActorUri: string, targetActorUri: string, offerActivityId: string) => Promise; } /** Route an inbound activity to the appropriate handler */ export declare function processInboxActivity(activity: Record, callbacks: InboxCallbacks): Promise; //# sourceMappingURL=inbox.d.ts.map