export type RequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH'; export interface RequestOptions { method?: RequestMethod; body?: unknown; headers?: Record; timeout?: number; } export declare class RequestError extends Error { readonly status: number; readonly data: unknown; constructor(message: string, status: number, data?: unknown); } export declare function request(url: string, options?: RequestOptions): Promise;