import { Client } from '../client'; import { BaseError } from '../errors'; import { UriHelper } from '../uri-helper'; export interface PricebooksOptions { user?: string; base?: string; } export interface PricebooksQuery { limit?: number; uri?: string; query?: { deleted?: boolean; active?: boolean; name?: string; }; } export interface PricebooksResponse { data: Pricebook[]; metadata: Record; next?: () => Promise; } export interface PricebookResponse { data?: Pricebook; metadata?: { count?: number; patch?: any; }; msg?: string; } export interface Pricebook { name?: string; custom_id?: string; constraints?: Record; active?: boolean; deleted?: boolean; } export declare class Pricebooks { http: Client; options: PricebooksOptions; uriHelper: UriHelper; constructor(options: PricebooksOptions, http: Client, uriHelper: UriHelper); getAll(query?: PricebooksQuery | undefined): Promise; meta(): Promise; get(pricebookId: string): Promise; put(pricebookId: string, pricebook: Pricebook): Promise; create(pricebook: Pricebook): Promise; delete(pricebookId: string): Promise; copy(pricebookIds: string[]): Promise; } export declare class PricebooksFetchFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class PricebookFetchFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class PricebookPutFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class PricebookCreationFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class PricebookDeleteFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class PricebooksCopyFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); }