export interface CreditSettlementTarget {
  finalizeGeneration(input: {
    generationId: string;
    operationKey: string;
    outcome: "succeeded" | "failed" | "rejected";
  }): unknown;
}

export function settleGenerationCredits(
  target: CreditSettlementTarget,
  input: {
    generationId: string;
    operationKey: string;
    outcome: "succeeded" | "failed" | "rejected";
  },
) {
  return target.finalizeGeneration(input);
}
