import { Client } from '../client'; import { BaseError } from '../errors'; import { UriHelper } from '../uri-helper'; import { ThBaseHandler } from '../base'; export interface BranchGroupsOptions { user?: string; base?: string; } export interface BranchGroupsQuery { limit?: number; uri?: string; query?: { deleted?: boolean; active?: boolean; name?: string; branch?: string; start?: string; }; } export interface BranchGroupsResponse { data: Array>; metadata: Record; next?: () => Promise; } export interface BranchGroupResponse { data?: BranchGroup; metadata?: { count?: number; patch?: any; }; msg?: string; } export interface BranchGroup { id?: string; name: string; color?: string; branches?: string[]; custom_id?: string; client_id?: string; active?: boolean; deleted?: boolean; available_in_online_booking?: boolean; } export declare class BranchGroups extends ThBaseHandler { static baseEndpoint: string; endpoint: string; http: Client; options: BranchGroupsOptions; uriHelper: UriHelper; constructor(options: BranchGroupsOptions, http: Client); getAll(queryOrOptions?: BranchGroupsQuery | undefined): Promise; get(branchId: string): Promise; put(branchId: string, branchGroup: BranchGroup): Promise; create(branchGroup: BranchGroup): Promise; delete(branchId: string): Promise; } export declare class BranchGroupsFetchFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class BranchGroupFetchFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class BranchGroupPutFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class BranchGroupCreationFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); } export declare class BranchGroupDeleteFailed extends BaseError { message: string; name: string; constructor(message?: string, properties?: Record); }