import HttpError from "./HttpError"; import NetworkError from "./NetworkError"; export type Options = EndpointOptions | { getOptions: EndpointOptions; setOptions: EndpointOptions; }; export interface _EndpointOptions_headers { [$$Key$$: string]: string; } export interface EndpointOptions { endpoint: string; family?: 4 | 6; timeout?: number; key?: string | ReadonlyArray | Buffer | ReadonlyArray; cert?: string | ReadonlyArray | Buffer | ReadonlyArray; ca?: string | ReadonlyArray | Buffer | ReadonlyArray; params?: URLSearchParams; headers?: _EndpointOptions_headers; additionalSuccessStatuses?: ReadonlyArray; /** * Whether to include additional debug information in error messages. */ debug?: boolean; /** * Retry configuration */ maxAttempts?: number; retryNetworkErrors?: boolean; retryStatuses?: ReadonlySet; socketPath?: string; proxy?: string; } declare class HttpStore { static HttpError: typeof HttpError; static NetworkError: typeof NetworkError; constructor(options: Options); get(key: Buffer): Promise; set(key: Buffer, value: T): Promise; clear(): void; } export default HttpStore;