import type { SessionEvent } from '@deepseek-ai/dsh-session'; import type { ChannelSession, PartnerState } from '../domain.js'; import type { ExecutionRun } from './domain.js'; /** Match the current work to a real input, including a scheduler-issued activity notice. */ export declare function backgroundInput(events: readonly SessionEvent[]): ({ type: "user/message"; seq: import("@deepseek-ai/dsh-session").SessionSeq; time: number; data: import("@deepseek-ai/dsh-session").UserMessage; ignorable?: true; } & { surfaceOp: import("@deepseek-ai/dsh-session").SurfaceOp; } & { sourceEventSeqs?: import("@deepseek-ai/dsh-session").SessionSeq[]; }) | undefined; export declare function backgroundOrigin(sessionId: string, events: readonly SessionEvent[], routes: readonly ChannelSession[], input?: ({ type: "user/message"; seq: import("@deepseek-ai/dsh-session").SessionSeq; time: number; data: import("@deepseek-ai/dsh-session").UserMessage; ignorable?: true; } & { surfaceOp: import("@deepseek-ai/dsh-session").SurfaceOp; } & { sourceEventSeqs?: import("@deepseek-ai/dsh-session").SessionSeq[]; }) | undefined): ChannelSession | undefined; export declare function backgroundRunRoute(routes: readonly ChannelSession[], run: ExecutionRun): ChannelSession | undefined; /** Both execution and final delivery use the frozen origin, even after other speakers enter the session. */ export declare function backgroundSourceAllowed(state: PartnerState, run: ExecutionRun): boolean; export declare function backgroundWork(name: string, args: unknown): boolean; /** Keep lookups in the chat and hand executable or continuing work to the background. */ export declare function backgroundRequired(name: string, args: unknown, events: readonly SessionEvent[], callId?: string): string | undefined; //# sourceMappingURL=background-routing.d.ts.map