import { type EventTransport } from './events.js'; import { type SocketSession } from './sockets.js'; /** Make the delivery's next attempt, if it is queued for one: sent, or failed without sending when the World's scenario * drops it (`webhook-drop`, landing on each attempt it is placed over), and recorded. Answers whether the delivery is * now held for a later attempt. Existing attempts and interrupted sending claims never turn into an unrequested send. */ export declare function attemptDelivery(service: string, deliveryType: string, deliveryId: string, root: string | undefined, transport: EventTransport, trace: Record): Promise; /** A socket session that resumes after the last sequence number it saw is sent every later frame of the endpoint it is * bound to again, in order, whatever became of their attempts (Discord's Gateway resume): the frames as they were * rendered at the write. Answers how many it was sent. */ export declare function replaySocketDeliveries(service: string, root: string | undefined, session: SocketSession, after: number): number;