import type { ActionResponse, AuthParams, StackOperation } from '../../utils/types.js';
/**
 * Classify a single poll. Terminal status -> 'completed'/'failed'. 404 ->
 * 'pending' (read-replica lag). Other failed responses -> 'error'. The caller
 * decides whether an 'error' is retryable.
 */
export declare function classifyOperationPoll(options: {
    ok: boolean;
    httpStatus: number | undefined;
    operation: StackOperation | undefined;
}): 'pending' | 'completed' | 'failed' | 'error';
interface GetOperationResponse extends ActionResponse {
    operation?: StackOperation;
    response?: Response;
}
export declare function getOperation({ stackId, operationId, auth, fetchFn, includeDestroyed, }: {
    stackId: string;
    operationId: string;
    auth: AuthParams;
    fetchFn: typeof fetch;
    includeDestroyed?: boolean;
}): Promise<GetOperationResponse>;
export {};
