import { GetBulkOperationByIdQuery } from '../../../../cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.js'; import { AdminSession } from '../../session.js'; import { AbortSignal } from '../../abort.js'; export declare const QUICK_WATCH_TIMEOUT_MS = 3000; export declare const QUICK_WATCH_POLL_INTERVAL_MS = 300; export type BulkOperation = NonNullable; /** * Polls a bulk operation briefly to surface its initial state, returning quickly so the caller can * keep working while the operation runs in the background. * * @param adminSession - The admin session. * @param operationId - The bulk operation ID to poll. * @returns The latest known operation state. */ export declare function shortBulkOperationPoll(adminSession: AdminSession, operationId: string): Promise; /** * Polls a bulk operation until it reaches a terminal state or is aborted, updating the rendered * status as it progresses. * * @param adminSession - The admin session. * @param operationId - The bulk operation ID to watch. * @param abortSignal - Signal used to stop watching early. * @param onAbort - Callback invoked when the user aborts. * @returns The latest known operation state. */ export declare function watchBulkOperation(adminSession: AdminSession, operationId: string, abortSignal: AbortSignal, onAbort: () => void): Promise;