import { SagaIterator } from 'redux-saga'; export declare function latest(action: string, saga: any, ...args: any[]): Generator, void, unknown>; export declare function leading(action: string, saga: any, ...args: any[]): Generator, void, unknown>; export declare function createThrottle(ms?: number): (action: string, saga: any, ...args: any[]) => Generator, void, unknown>; export declare function createDebounce(ms?: number): (action: string, saga: any, ...args: any[]) => Generator, void, unknown>; export declare function poll(parentTimer?: number, cancelType?: string): (actionType: string, saga: any, ...args: any[]) => SagaIterator; /** * timer() will create a cache timer for each `key` inside * of a saga-query api endpoint. `key` is a hash of the action type and payload. * * Why do we want this? If we have an api endpoint to fetch a single app: `fetchApp({ id: 1 })` * if we don't set a timer per key then all calls to `fetchApp` will be on a timer. * So if we call `fetchApp({ id: 1 })` and then `fetchApp({ id: 2 })` if we use a normal * cache timer then the second call will not send an http request. */ export declare function timer(timer?: number): (actionType: string, saga: any, ...args: any[]) => SagaIterator;