export declare enum Method { HEAD = "HEAD", GET = "GET", PUT = "PUT", POST = "POST", PATCH = "PATCH", DELETE = "DELETE" } export declare type Endpoint = Readonly<{ method: Method; url: string | ((params: P) => string); headers?: Record; transformResponseData?: (data: any) => R; }>;