import { Exchange } from '@urql/core'; interface RefocusOptions { /** The minimum time in milliseconds to wait before another refocus can trigger. * @defaultValue `0` */ minimumTime?: number; } /** Exchange factory that reexecutes operations after a user returns to the tab. * * @param opts - A {@link RefocusOptions} configuration object. * * @returns a new refocus {@link Exchange}. * * @remarks * The `refocusExchange` will reexecute `Operation`s with the `cache-and-network` * policy when a user switches back to your application's browser tab. This can * effectively update all on-screen data when a user has stayed inactive for a * long time. * * The `cache-and-network` policy will refetch data in the background, but will * only refetch queries that are currently active. */ declare const refocusExchange: (opts?: RefocusOptions) => Exchange; export { refocusExchange };