import { Provider } from './provider'; import { AxiosResponse } from 'axios'; import { Config } from './config'; import Request from './request'; import { CasdoorResponse } from './util'; export interface Product { owner: string; name: string; createdTime: string; displayName: string; image: string; detail?: string; description: string; tag: string; currency?: string; price?: number; quantity: number; sold: number; providers?: string[]; returnUrl?: string; state?: string; providerObjs?: Provider[]; isRecharge?: boolean; rechargeOptions?: number[]; disableCustomRecharge?: boolean; successUrl?: string; properties?: Record; } export declare class ProductSDK { private config; private readonly request; constructor(config: Config, request: Request); getProducts(): Promise, any>>; getProduct(id: string): Promise, any>>; modifyProduct(method: string, product: Product, columns?: string[]): Promise, any>>; getPaginationProducts(p: number, pageSize: number, queryMap?: Record): Promise, any>>; addProduct(product: Product): Promise, any>>; updateProduct(product: Product): Promise, any>>; deleteProduct(product: Product): Promise, any>>; }