import { CallEffect, TakeEffect } from 'redux-saga/effects'; /** * Get request action type prefix * * @param {{type: string; requestId: string}} requestAction - Request action * @param {string} requestAction.type - Request action type * @param {string} requestAction.requestId - Request action request ID * @returns {string} Request action type prefix */ export declare function getRequestActionTypePrefix(requestAction: { type: string; requestId: string; }): string; /** * Checks if success or fail action's type prefix and request ID match request * action * * @param {{type: string; requestId: string}} requestAction - Request action * @param {string} requestAction.type - Request action type * @param {string} requestAction.requestId - Request action request ID * @param {{type: string; requestId: string}} action - Action * @param {string} action.type - Action type * @param {string} action.requestId - Action request ID * @returns {boolean} Whether or not action matches request action */ export declare function doesActionMatchRequest(requestAction: { type: string; requestId: string; }, action: { type: string; requestId: string; }): boolean; /** * Waits for success or fail action to be dispatched, corresponding to a * request action, and returns whether or not the request was successful * * @param {{type: string; requestId: string}} requestAction - Request action * @param {string} requestAction.type - Request action type * @param {string} requestAction.requestId - Request action request ID * @returns {boolean} Whether or not request action was successful */ export declare function wasRequestSuccessful(requestAction: { type: string; requestId: string; }): Generator; /** * Test function * * @param {{type: string}} myAction - Test action * @param {string} myAction.type - Test action type * @returns {boolean} My saga result */ export declare function mySaga(myAction: { type: string; }): Generator;