import { Plugin } from 'vite'; interface ProxyRetryOptions { /** * how often to try the request (including the initial one) * @default 60 */ maxTries?: number; /** * initial delay (in milliseconds) before next attempt * @default 1000 */ delay?: number; /** * maximum delay (in milliseconds) before next attempt * @default 30000 */ maxDelay?: number; /** * whether to use exponential backoff after failed attempts * @default false */ backoff?: boolean; } interface ProxyRetryPluginOptions { defaultRetryOptions?: boolean | ProxyRetryOptions; } declare module 'vite' { interface ProxyOptions { retry?: boolean | ProxyRetryOptions; } } declare function viteProxyRetryPlugin(pluginOptions?: ProxyRetryPluginOptions): Plugin; export { ProxyRetryOptions, ProxyRetryPluginOptions, viteProxyRetryPlugin as default };