import { BaseApi } from "../base-api"; import type { ApiRecords } from "../types"; import type { ContractDetails, ContractRateView, CustomerContract, PaymentMethod } from "./types"; /** * A class for accessing the Contracts API. * * Only the read routes `GET /contracts` and `GET /contracts/active` are part of * the public surface. Fetching a specific contract revision and updating a * contract exist server-side only as admin routes (`GET * /admin/contracts/{id}/{revision}` and `PUT /admin/contracts/{company_id}`, * both requiring `Permission.Admin`), so they are intentionally not exposed * here. * @extends BaseApi */ declare class ContractsApi extends BaseApi { /** * Gets a list of contracts from the API. * * @returns {Promise>} A promise that resolves with the list of contracts. */ getContracts(): Promise>; /** * Get the active contract for a company * * @returns Promise that resolves to the customer contract * */ getActiveContract(): Promise; } export { type ContractDetails, type ContractRateView, ContractsApi, type CustomerContract, type PaymentMethod, };