import { AxiosInstance, AxiosRequestConfig } from 'axios'; import { KiotVietClientConfig } from './types/common'; import { CategoryHandler } from './resources/categories'; import { CustomerHandler } from './resources/customers'; import { ProductHandler } from './resources/products'; import { OrderHandler } from './resources/orders'; import { InvoiceHandler } from './resources/invoices'; import { WebhookHandler } from './resources/webhooks'; import { UserHandler } from './resources/users'; import { PurchaseOrderHandler } from './resources/purchase-orders'; import { BranchHandler } from './resources/branches'; import { BankAccountHandler } from './resources/bank-accounts'; import { PriceBookHandler } from './resources/price-books'; import { SupplierHandler } from './resources/suppliers'; import { TransferHandler } from './resources/transfers'; import { SurchargeHandler } from './resources/surcharges'; import { CashFlowHandler } from './resources/cash-flow'; import { ReturnsHandler } from './resources/returns'; import { VouchersHandler } from './resources/vouchers'; import { SalesChannelsHandler } from './resources/sales-channels'; import { TrademarksHandler } from './resources/trademarks'; import { SettingsHandler } from './resources/settings'; import { OrderSuppliersHandler } from './resources/order-suppliers'; export declare class KiotVietClient { private config; private tokenManager; readonly apiClient: AxiosInstance; readonly customers: CustomerHandler; readonly categories: CategoryHandler; readonly orders: OrderHandler; readonly products: ProductHandler; readonly invoices: InvoiceHandler; readonly webhooks: WebhookHandler; readonly users: UserHandler; readonly purchaseOrders: PurchaseOrderHandler; readonly branches: BranchHandler; readonly bankAccounts: BankAccountHandler; readonly priceBooks: PriceBookHandler; readonly suppliers: SupplierHandler; readonly transfers: TransferHandler; readonly surcharges: SurchargeHandler; readonly cashFlow: CashFlowHandler; readonly returns: ReturnsHandler; readonly vouchers: VouchersHandler; readonly salesChannels: SalesChannelsHandler; readonly trademarks: TrademarksHandler; readonly settings: SettingsHandler; readonly orderSuppliers: OrderSuppliersHandler; constructor(config: KiotVietClientConfig); private validateConfig; private initializeConfig; private createApiClient; /** * Manually trigger a token refresh * @returns Promise The new access token */ refreshToken(): Promise; /** * Make a GET request * @param url The URL to make the request to * @param config Optional axios request configuration * @returns Promise with the response data */ get(url: string, config?: AxiosRequestConfig): Promise; /** * Make a POST request * @param url The URL to make the request to * @param data The data to send in the request body * @param config Optional axios request configuration * @returns Promise with the response data */ post(url: string, data?: unknown, config?: AxiosRequestConfig): Promise; /** * Make a DELETE request * @param url The URL to make the request to * @param config Optional axios request configuration * @returns Promise with the response data */ delete(url: string, config?: AxiosRequestConfig): Promise; /** * Make a PUT request * @param url The URL to make the request to * @param data The data to send in the request body * @param config Optional axios request configuration * @returns Promise with the response data */ put(url: string, data?: any, config?: AxiosRequestConfig): Promise; }