import type { Mastra } from '../mastra/index.js';
import type { InputProcessor } from './index.js';
export type BackgroundWorkDisposition = 'deferred' | 'awaited';
export type BackgroundWorkInvocationKind = 'tool' | 'agent';
export type BackgroundWorkLifecycleStatus = 'running' | 'completed' | 'failed' | 'cancelled';
export type BackgroundWorkTerminalStatus = Exclude<BackgroundWorkLifecycleStatus, 'running'>;
export interface BackgroundWorkLifecyclePayload {
    originRunId: string;
    originToolCallId: string;
    executorRunId?: string;
    taskId: string;
    invocationKind: BackgroundWorkInvocationKind;
    disposition: BackgroundWorkDisposition;
    status: BackgroundWorkLifecycleStatus;
}
export declare const BACKGROUND_WORK_CONTEXT: unique symbol;
export interface BackgroundWorkContext {
    originRunId: string;
    originToolCallId: string;
    taskId: string;
    invocationKind: BackgroundWorkInvocationKind;
    disposition: BackgroundWorkDisposition;
}
export declare function notifyBackgroundWorkTerminal(mastra: Mastra | undefined, payload: BackgroundWorkLifecyclePayload): Promise<void>;
/**
 * Retains the active caller's signal capability on stable per-run tool wrappers.
 * Native agent background execution remains responsible for dispatch, persistence,
 * result reconciliation, and continuation.
 */
export declare function createBackgroundWorkSignalProcessor(): InputProcessor;
//# sourceMappingURL=background-work-signals.d.ts.map