import { h as RenameCascadeListInput, i as RenameCascadeListOutput } from './events-Da_cFgtc.js';
import '@openhi/workflows';

/**
 * Cascade Step Functions handler that queries one page of projection
 * rows affected by a Tenant / User / Role rename and bundles them into
 * \<=50-target chunks for the downstream Distributed Map state.
 *
 * One invocation per outer-loop iteration:
 *
 * 1. Calls `listRenameCascadeTargetsOperation` with the per-stream
 *    cursor map from the prior iteration (`{}` on the first call).
 * 2. Splits the merged page into chunks via `chunkRenameCascadeTargets`.
 * 3. Stamps each chunk with a deterministic `chunkToken` so a replayed
 *    Map iteration lands idempotently via `executeMultiWrite`'s
 *    `ClientRequestToken` forwarding.
 * 4. Returns the chunks, the new cursors, and the cumulative metrics
 *    so the state machine's outer `Choice` knows when to stop.
 *
 * The handler itself NEVER touches the canonical Tenant / User / Role
 * record; the cascade is a consumer that only rewrites projection rows.
 */

declare const handler: (input: RenameCascadeListInput) => Promise<RenameCascadeListOutput>;

export { handler };
