import type { Breakpoint, BreakpointAnswer } from "../types.js"; import { ServerClient } from "./server-client.js"; /** * Callback invoked when new pending breakpoints are found. */ export type BreakpointCallback = (breakpoints: Breakpoint[]) => void | Promise; /** * Client used by responders to receive, claim, and answer breakpoints. */ export declare class ResponderClient { private readonly client; readonly responderId: string; private pollingTimer; constructor(client: ServerClient, responderId: string); /** * Fetch all pending breakpoints routed to this responder. */ fetchPendingBreakpoints(): Promise; /** * Claim a breakpoint so no other responder can answer it. */ claimBreakpoint(breakpointId: string): Promise; /** * Submit an answer to a claimed breakpoint. */ submitAnswer(breakpointId: string, text: string, confidence?: number, references?: string[]): Promise; /** * Start a polling loop that periodically checks for new pending breakpoints * and invokes the callback when breakpoints are found. * * Returns a function to stop the loop. */ startPollingLoop(callback: BreakpointCallback, intervalMs?: number): () => void; /** * Stop the current polling loop if running. */ stopPollingLoop(): void; } //# sourceMappingURL=responder-client.d.ts.map