import type { APIRequestContext, APIResponse } from '@playwright/test';
export type McpToolResult = {
    content: Array<{
        type: string;
        text: string;
    }>;
    isError?: boolean;
};
export declare function assertResponseStatus(res: APIResponse, expected: number | number[], label?: string): Promise<void>;
export declare function buildMcpHeaders(authToken: string, mcpSessionId: string | null): Record<string, string>;
export declare function initializeMcpSession(apiContext: APIRequestContext, mcpProcessesUrl: string, authToken: string, mcpSessionId: string | null): Promise<string | null>;
export declare function listTools(apiContext: APIRequestContext, mcpProcessesUrl: string, authToken: string, mcpSessionId: string | null): Promise<{
    name: string;
    description?: string;
    inputSchema?: unknown;
}[]>;
export declare function callTool(apiContext: APIRequestContext, mcpProcessesUrl: string, authToken: string, mcpSessionId: string | null, toolName: string, args?: Record<string, unknown>): Promise<{
    result?: McpToolResult;
    error?: {
        code: number;
        message: string;
    };
}>;
/** Extract processInstanceKey from MCP tool result text content (JSON or plain text). */
export declare function extractProcessInstanceKey(text: string): string | null;
