export interface ApiError {
    status: number;
    message: string;
}
export declare function apiGet<T>(urlPath: string, port?: number): Promise<T>;
export declare function apiPost<T>(urlPath: string, body: unknown, port?: number): Promise<T>;
export declare function apiPut<T>(urlPath: string, body: unknown, port?: number): Promise<T>;
export declare function apiDelete<T>(urlPath: string, port?: number): Promise<T>;
export declare function handleApiError(err: unknown): never;
//# sourceMappingURL=api.d.ts.map