import type { MastraDBMessage } from '../../agent/message-list/index.js';
type ResumeSource = 'framework' | 'model';
type SuspendedToolCandidate = {
    toolCallId?: string;
    toolName: string;
    runId: string;
    type: 'approval' | 'suspension';
};
export type ResolveSuspendedToolRunIdOptions = {
    toolCallId: string;
    toolName: string;
    resumeSource: ResumeSource;
    modelSuppliedSuspendedToolCallId?: unknown;
    modelSuppliedSuspendedToolRunId?: unknown;
    suspendData?: unknown;
    messages: ReadonlyArray<MastraDBMessage>;
};
export type ResolvedSuspendedToolIdentity = SuspendedToolCandidate;
/**
 * The suspend data a tool-call step received, when it belongs to that tool call; otherwise
 * `undefined`. A foreach item can be handed a sibling call's payload, which would make a fresh
 * call look resumed (skipping its approval) or route it into the sibling's delegated run.
 * Every payload a tool-call step suspends with names its call, as `toolCallId` or as
 * `requireToolApproval.toolCallId`.
 */
export declare function ownToolCallSuspendData(suspendData: unknown, toolCallId: string): unknown;
/**
 * Resolves delegated run identity only from framework-persisted suspension state.
 * Model-driven resumes identify an original suspended tool call; the framework
 * derives its delegated run ID from the matching persisted suspension.
 */
export declare function resolveFrameworkSuspendedToolIdentity({ toolCallId, toolName, resumeSource, modelSuppliedSuspendedToolCallId, modelSuppliedSuspendedToolRunId, suspendData, messages, }: ResolveSuspendedToolRunIdOptions): ResolvedSuspendedToolIdentity | undefined;
export declare function resolveFrameworkSuspendedToolRunId(options: ResolveSuspendedToolRunIdOptions): string | undefined;
export {};
//# sourceMappingURL=suspended-tool-run-id.d.ts.map