type RequestHandlerOptions = Omit & { body?: Record; queryParams?: Record; }; export declare abstract class ApiClient { private apiUrl; constructor(opts: { apiUrl: string; removeVersioning?: boolean; }); /** * The request handler for the Passport API. It accepts an API endpoint and * request options. * @dev Generic type `D` is a type of returned object from the function * @dev WARNING: This function hardcodes `credentials: "include"`, meaning * cookies and authentication headers will be sent with every request. Ensure * this is safe if you plan to use it in other contexts than auth api worker. * @param endpoint - The API endpoint to request. Should start with * forward slash ("/") * @param options - The request options, the `RequestInit` type with * additional type-safe properties * @returns The promise of the API response */ protected handleRequest(endpoint: `/${string}`, options?: RequestHandlerOptions): Promise; } export {}; //# sourceMappingURL=client.d.ts.map