import type { TaskStore } from '@modelcontextprotocol/sdk/experimental/tasks/interfaces.js';
import type { ApifyClient } from 'apify-client';
import type { ActorStore, Input, ServerMode } from '../types.js';
/**
 * Process input parameters from URL and get tools
 * If URL contains query parameter `actors`, return tools from Actors otherwise return null.
 * @param url The URL to process
 * @param apifyClient The Apify client instance
 * @param mode Server mode for tool variant resolution
 * @param actorStore
 */
export declare function processParamsGetTools(url: string, apifyClient: ApifyClient, mode?: ServerMode, actorStore?: ActorStore): Promise<import("../types.js").ToolEntry[]>;
export declare function parseInputParamsFromUrl(url: string): Input;
/**
 * Checks if a task was cancelled, preventing state transitions from terminal states.
 * Critical for task execution: prevents SDK errors when trying to transition from 'cancelled' to 'working'.
 * @param taskId - The task identifier
 * @param mcpSessionId - The MCP session ID
 * @param taskStore - The task store instance
 * @returns true if task is cancelled, false otherwise
 */
export declare function isTaskCancelled(taskId: string, mcpSessionId: string | undefined, taskStore: TaskStore): Promise<boolean>;
//# sourceMappingURL=utils.d.ts.map