import { GlobalPlaceholders, LocalPlaceholders } from "./data-cache";
import { ExtractionConfig } from "./types";
import { createTabManager } from "./utils/tab-manager";
/**
 * Extracts data from a page snapshot and URL using AI.
 * Uses Gemini 2.5 Flash for fast, accurate extraction.
 *
 * @param snapshot - The accessibility snapshot of the page
 * @param url - The current page URL
 * @param prompt - The extraction prompt describing what to extract
 * @returns The extracted value as a string
 *
 * @example
 * ```typescript
 * const token = await extractDataWithAI({
 *   snapshot: await safeSnapshot(page),
 *   url: page.url(),
 *   prompt: 'Extract the token query parameter value from the URL'
 * });
 * // Returns: "abc123"
 * ```
 */
export declare function extractDataWithAI({ snapshot, url, prompt, }: {
    snapshot: string;
    url: string;
    prompt: string;
}): Promise<string>;
/**
 * Runs an `extract` step: pulls a value off the current page with AI and stores
 * it under the requested scope so later steps can reference it via placeholder.
 *
 * - scope "local" (default) → stored as {{run.<as>}} in `localValues`, available
 *   only within the current runSteps call.
 * - scope "global" → stored as {{global.<as>}} in `globalValues` and persisted to
 *   Redis under `executionId`, so subsequent runSteps calls with the same
 *   executionId can read it. Requires `executionId`.
 */
export declare function applyExtraction({ extract, tabManager, localValues, globalValues, executionId, }: {
    extract: ExtractionConfig;
    tabManager: ReturnType<typeof createTabManager>;
    localValues: LocalPlaceholders;
    globalValues?: GlobalPlaceholders;
    executionId?: string;
}): Promise<void>;
