import { Observable } from 'rxjs'; import { AjaxResponse } from 'rxjs/ajax'; import type { CustomerService } from '@src/services/customer.service'; import type { SalesService } from '@src/services/sales.service'; export type QueryErrors = { __errors?: Array; }; export type QueryVariables = { [index: string]: any; }; export type QueryOptions = { debug?: boolean; retry?: number; }; export { getApi, getEcommerce, getSales, post, post2, postEcommerce, postSales, query }; declare const getEcommerce: (url: string, inputData: any, customer: CustomerService | undefined) => Observable<{ __errors: any; status: number; } & T>; declare const postEcommerce: (url: string, inputData: any, customer?: CustomerService) => Observable<{ __errors: any; status: number; } & T>; declare const post: (url: string, data: any, token: string | undefined) => Observable<{ __errors: any; status: number; } & T>; declare const query: (query: string, variables: QueryVariables, customer?: CustomerService) => Observable; declare const getApi: (url: string, data: any, customer: CustomerService | undefined) => Observable>; declare const post2: (url: string, data: any, customer?: CustomerService) => Observable; declare const getSales: (url: string, { search, page }: CustomersFilter, sales: SalesService | undefined) => Observable<{ __errors: any; status: number; } & T>; declare const postSales: (url: string, inputData: any, sales: SalesService) => Observable<{ __errors: any; status: number; } & T>;