export declare type HTTPMethodType = 'get' | 'put' | 'post' | 'delete' | 'patch' | 'options' | 'head'; export interface OAPIRequestResult { response: Response; status: number; headers: Headers; size: number; url: string; responseType?: string; isNetworkError?: never; } export declare type NetworkErrorType = 'initial-rejection' | 'header-get' | 'convert-response' | 'convert-response-reject' | 'convert-response-reject-no-content-type' | 'convert-response-exception' | 'no-status' | 'proxy-error' | 'akamai-error' | 'headers-get-failure' | 'json-parse-failed'; export interface NetworkError { message?: string | Error; isNetworkError: true; status?: never; networkErrorType: NetworkErrorType; url?: string; } export declare type StringTemplateArgs = Record | null; export declare type QueryParams = Record>; export declare type HTTPMethod = (servicePath: string, urlTemplate: string, templateArgs?: StringTemplateArgs, options?: RequestOptions) => Promise>; export interface RequestOptions { readonly headers?: Record; readonly queryParams?: QueryParams | null; readonly body?: any; readonly cache?: boolean; readonly requestId?: string; readonly signal?: AbortSignal | null; }