import type { DefaultFn } from '../../types'; /** * A generator function that receives any function as 1st parameter. The provided function will be launched on `AUTH_SESSION_START` action and cancelled on `AUTH_SESSION_END`. * Note that `withAuthSession` is a blocking task (if you need to make it non-blocking one, use it with `fork` effect). * * @category Redux Saga * * @example * ```ts * import { withAuthSession } from '@ackee/petrus'; * * function* myAuthSaga() {} * * export default function* () { * yield* withAuthSession(myAuthSaga); * // non-blocking version: yield fork(withAuthSession, myAuthSaga); * } * ``` */ export declare function withAuthSession(task: Fn): Generator;