import type { ContractFormatted, CreditPayload, Kind, VoucherPayload } from '../../../../../entities/index.ts'; import type { HttpClient } from '../../../../../services/index.ts'; import type { ApiError, Response } from '../../../../types/index.ts'; export type Transaction = { kind: Extract; amount: number; due_on: string; }; export type CancelContractPayload = { contract: { cancellation_cause_id: number; cancellation_cause_details: string; voucher?: VoucherPayload['voucher']; credit?: CreditPayload['credit']; payment_transactions_attributes?: Record; }; }; export type CancelContractInput = { contractId: string; payload: CancelContractPayload; }; declare const cancelContract: (http: HttpClient) => { query: (input: CancelContractInput) => Promise>; }; export default cancelContract;