@vtex/payment-provider
Version:
VTEX Payment Provider SDK
29 lines (28 loc) • 1.27 kB
TypeScript
import type { InstanceOptions } from '@vtex/api';
export declare const withMiddlwares: (middlewares: Required<InstanceOptions>["middlewares"], options: InstanceOptions) => {
middlewares: import("koa-compose").Middleware<import("@vtex/api").MiddlewareContext>[];
authType?: import("@vtex/api").AuthType;
timeout?: number;
memoryCache?: import("@vtex/api").CacheLayer<string, import("@vtex/api").Cached>;
diskCache?: import("@vtex/api").CacheLayer<string, import("@vtex/api").Cached>;
asyncSetCache?: boolean;
memoizable?: boolean;
baseURL?: string;
retries?: number;
exponentialTimeoutCoefficient?: number;
initialBackoffDelay?: number;
exponentialBackoffCoefficient?: number;
metrics?: import("@vtex/api").MetricsAccumulator;
concurrency?: number;
headers?: Record<string, string>;
params?: Record<string, string>;
verbose?: boolean;
name?: string;
serverTimings?: Record<string, string>;
httpsAgent?: import("axios").AxiosRequestConfig["httpsAgent"];
cacheableType?: import("@vtex/api").CacheType;
};
export declare const useHTTP: (str: string) => string;
export declare const renameKeys: import("ramda").CurriedFunction2<{
[key: string]: string;
}, Record<string, unknown>, {}>;