import { FetchClient } from "./clients/fetchClient.js"; import type { Logger } from "./types/Logger.js"; export declare class FetchRepositoryBase { modyoBaseUrl: string; fetchClient: FetchClient; logger: Logger; constructor(url: string, token: string, logger: Logger); /** * Helper method to convert query parameters for the fetch client. * Filters out undefined and null values. Preserves arrays for multi-value params. */ protected parseQueryParams>(params?: T): Record; /** * Generic GET method for fetching a single resource by ID */ protected getById(path: string, id: number): Promise; /** * Generic GET method for listing resources with optional query params */ protected list>(path: string, queryParams?: QueryParams): Promise; /** * Generic POST method for creating a resource */ protected create(path: string, data: Request): Promise; /** * Generic PUT method for updating a resource */ protected update(path: string, id: number, data: Request): Promise; /** * Generic PATCH method for partial updates */ protected patch(path: string, id: number, data: Request): Promise; /** * Generic DELETE method for removing a resource */ protected delete(path: string, id: number): Promise; } //# sourceMappingURL=FetchRepositoryBase.d.ts.map