export interface RequestOptions { url?: string; baseUrl?: string; params?: Record; data?: Record; headers?: Record; useCache?: boolean; cache?: CacheOptions; retry?: number; retryInterval?: number; } export interface CacheOptions { isPersist?: boolean; duration?: number; key?(config: RequestOptions): string; isValid?(key: string, config: RequestOptions): boolean; } export type RequestOptionsType = (options: RequestOptions) => Promise; export declare const defaultRequestOptions: RequestOptions; export declare function getDefaultCacheOptions(): CacheOptions;