import type { MessageRecord } from "../types.js";
export interface PollResult {
    messages: MessageRecord[];
    events: unknown[];
}
export interface PollOptions {
    endpoint: string;
    sessionId: string;
    peerId: string;
    token: string;
    lastMessageId?: string;
    fetchImpl?: typeof fetch;
}
/**
 * One call to the relay's poll endpoint. Returns the peer-relevant messages since
 * `lastMessageId` (all of them on the first, priming poll). Throws on a non-2xx
 * response so the loop can back off; the caller owns retry/backoff.
 */
export declare function pollOnce(opts: PollOptions): Promise<PollResult>;
//# sourceMappingURL=poll-client.d.ts.map