import { CacheError, CancelError, TimeoutError, RequestError, ReadError, ParseError, UploadError, HTTPError, MaxRedirectsError, UnsupportedProtocolError, RequiredRetryOptions } from 'got'; import { RateLimiterConfig } from '../utils/limiter'; export declare type GotError = CacheError | CancelError | TimeoutError | RequestError | ReadError | ParseError | UploadError | HTTPError | MaxRedirectsError | UnsupportedProtocolError; declare type OptionCombination1 = { projectId: string; customBackend?: string; }; declare type OptionCombination2 = { projectId?: string; customBackend: string; }; declare type AdditionalOptions = { isTestnet?: boolean; version?: number; rateLimiter?: boolean | RateLimiterConfig; http2?: boolean; debug?: boolean; userAgent?: string; requestTimeout?: number; retrySettings?: RequiredRetryOptions; }; export declare type Options = (OptionCombination1 | OptionCombination2) & AdditionalOptions; export interface ValidatedOptions { customBackend?: string; version: number; requestTimeout: number; rateLimiter?: false | RateLimiterConfig; http2?: boolean; debug: boolean; projectId?: string; isTestnet?: boolean; retrySettings?: RequiredRetryOptions; } export declare type HashOrNumber = string | number; export declare type ErrorType = // Server error { status_code: number; message: string; error: string; url: string; } | { message: string; code: string; url: string | undefined; }; export declare type PaginationOptions = { count?: number; page?: number; order?: 'asc' | 'desc'; }; export declare type AdditionalEndpointOptions = { from?: string | undefined; to?: string | undefined; }; export declare type AllMethodOptions = { batchSize?: number | undefined; order?: 'asc' | 'desc'; }; export {};