/// import { CustomerMethods } from './methods/customer.methods'; import { PersonMethods } from './methods/person.methods'; import { InvoiceMethods } from './methods/invoice.methods'; import { ContractMethods } from './methods/contract.methods'; import { EmployeeMethods } from './methods/employee.methods'; import { ProductMethods } from './methods/product.methods'; import { ProjectMethods } from './methods/project.methods'; import { SaleMethods } from './methods/sale.methods'; import { NotificationMethods } from './methods/notification.methods'; import { CustomerCategoryMethods } from './methods/customer-category.methods'; import { CustomerGroupMethods } from './methods/customer-group.methods'; import { OfferMethods } from './methods/offer.methods'; import { ProductCatalogMethods } from './methods/product-catalog.methods'; import { CustomerFinancialStatementMethods } from './methods/customer-financial-statement.methods'; import { EmployeeTeamMethods } from './methods/employee-team.methods'; import { EmployeeProfileMethods } from './methods/employee-profile.methods'; import { AccountingTargetMethods } from './methods/accounting-target.methods'; import { WorkSessionMethods } from './methods/work-session.methods'; import { WorkSessionAssignmentMethods } from './methods/work-session-assignment.methods'; import { WorkSessionAssignmentTemplateMethods } from './methods/work-session-assignment-template.methods'; import { WorkSessionShiftMethods } from './methods/work-session-shift.methods'; import { WorkSessionShiftTypeMethods } from './methods/work-session-shift-types.method'; import { CustomReportMethods } from './methods/custom-report.methods'; import { CompanyMethods } from './methods/company.methods'; import { AccountingAssignmentMethods } from './methods/accounting-assignment.methods'; import * as https from 'https'; import { ProjectTemplateMethods } from './methods/project-template.methods'; export interface KohoThrottleOptions { maxRetries: number; delay: number; enabled: boolean; } declare type KohoApiHelperOptions = { token: string; companyId?: number; enterpriseId?: number; url?: string; /** Request timeout, can be changed before request, defaults to 30000 */ timeout?: number; /** Set to true if keepalive https-agent should be used with http requests to Koho */ useKeepAliveAgent?: boolean; /** You can use this property to override got request options */ overrideGotOptions?: any; /** Set to true to disable streaming for GET requests (added in 2.0.0) */ disableStreaming?: boolean; /** Set Koho throttling options, defaults to retry 3 times on throttle with 15000ms delay */ throttleOptions?: KohoThrottleOptions; }; export declare class KohoApiHelper { [propName: string]: any; options: any; keepAliveAgent: https.Agent; readonly accountingTargets: AccountingTargetMethods; readonly customers: CustomerMethods; readonly persons: PersonMethods; readonly invoices: InvoiceMethods; readonly contracts: ContractMethods; readonly employees: EmployeeMethods; readonly employeesTeams: EmployeeTeamMethods; readonly employeesProfiles: EmployeeProfileMethods; readonly products: ProductMethods; readonly productsCatalogs: ProductCatalogMethods; readonly projects: ProjectMethods; readonly sales: SaleMethods; readonly notifications: NotificationMethods; readonly customersCategories: CustomerCategoryMethods; readonly customersGroups: CustomerGroupMethods; readonly customersFinancialStatements: CustomerFinancialStatementMethods; readonly offers: OfferMethods; readonly workSessions: WorkSessionMethods; readonly workSessionAssignments: WorkSessionAssignmentMethods; readonly workSessionAssignmentTemplates: WorkSessionAssignmentTemplateMethods; readonly workSessionShifts: WorkSessionShiftMethods; readonly workSessionShiftTypes: WorkSessionShiftTypeMethods; readonly customReports: CustomReportMethods; readonly companies: CompanyMethods; readonly accountingAssignments: AccountingAssignmentMethods; readonly projectTemplates: ProjectTemplateMethods; constructor(options: KohoApiHelperOptions); private _setupRequest; _retryRequestOnThrottle(maxRetries: number, fn: any): Promise; request(url: string, method?: string, data?: any, params?: any, options?: any): Promise; requestText(url: string, method?: string, data?: any, params?: any, options?: any): Promise; requestBuffer(url: string, method?: string, data?: any, params?: any, options?: any): Promise; get _authParams(): any; } export {};