@tech-arelius/api-client
Version:
Configurable HTTP client with builder pattern for Node.js/TypeScript
20 lines • 766 B
TypeScript
/**
* Utility for safe URL construction with path and query parameters
*/
export declare class EndpointBuilder {
/**
* Builds a complete URL with path parameters and query parameters
* @param baseUrl - The base URL or path template
* @param pathParams - Path parameters to replace placeholders
* @param queryParams - Query parameters to append
* @returns The complete URL
*/
static build(baseUrl: string, pathParams?: Record<string, string>, queryParams?: Record<string, string | string[] | undefined>): string;
/**
* Builds a query string from parameters
* @param params - Query parameters
* @returns Query string
*/
private static buildQueryString;
}
//# sourceMappingURL=EndpointBuilder.d.ts.map