import { type PartnerImageReferences } from '../attachments/image-references.js'; import type { Context } from '@deepseek-ai/cordis'; import type { ToolDefinition } from '@deepseek-ai/dsh-tools'; import type { PartnerStore } from '../store.js'; import type { ExecutionRun } from './domain.js'; import type { PartnerReply } from '../channel-message.js'; import { type BackgroundAgentRuntime } from './background-agent.js'; /** DSH Agents execute the work. The plugin owns task identity and channel delivery. */ export declare class NativeBackgroundTasks { private readonly ctx; private readonly store; private readonly deliver; private readonly preferences?; private readonly review?; private readonly images?; private readonly agents; private readonly onSettled?; private readonly children; private readonly reviews; private readonly detachGuard; private readonly detachStore; private readonly detachCreated; private readonly detachMalformedRetry; private closing; private recovering; private readonly delivering; constructor(ctx: Context, store: PartnerStore, deliver: (run: ExecutionRun, reply: PartnerReply) => Promise, preferences?: ((run: ExecutionRun, input: string) => Promise) | undefined, review?: ((run: ExecutionRun) => Promise) | undefined, images?: PartnerImageReferences | undefined, agents?: BackgroundAgentRuntime, onSettled?: ((parentSessionId: string) => void) | undefined); private childToolAllowed; private authorize; private configuredModel; tool(owner: string): ToolDefinition; private adoptSupplement; private activate; private releaseChild; private save; private readChildEvents; private failed; private queueOutcome; private retryInBackground; private reviewOnce; private processReview; private finished; private deliverResult; private deliverResultOnce; private recoverSavedOutput; recoverDeliveries(): Promise; close(): Promise; } //# sourceMappingURL=native-background.d.ts.map