import { GetBulkOperationByIdQuery } from '../../../../cli/api/graphql/bulk-operations/generated/get-bulk-operation-by-id.js'; import { TokenizedString } from '../../output.js'; import { TokenItem } from '../../ui.js'; /** * Produces a human-readable status line for a bulk operation. * * @param operation - The bulk operation. * @returns A tokenized status string. */ export declare function formatBulkOperationStatus(operation: NonNullable): TokenizedString; interface UserError { field?: string[] | null; message: string; } /** * Renders a list of bulk operation user errors. * * @param userErrors - The user errors to render. * @param headline - The headline for the error block. */ export declare function renderBulkOperationUserErrors(userErrors: UserError[], headline: string): void; export interface BulkOperationCancellationResult { headline: string; body?: TokenItem; customSections?: { body: { list: { items: string[]; }; }[]; }[]; renderType: 'success' | 'warning' | 'info'; } /** * Classifies the outcome of a cancellation request into a renderable payload. * * The engine intentionally stays command-agnostic: for an in-progress cancellation it returns just * the headline and render type, leaving each command to append its own "check status" hint (which * references that command's own `bulk status` invocation). * * @param operation - The bulk operation after the cancel request. * @returns The headline, body, sections, and render type to use. */ export declare function formatBulkOperationCancellationResult(operation: NonNullable): BulkOperationCancellationResult; export {};