import { AnyQAppMessageDef, ExtractQAppMessage } from './message'; import { AnyQAppModuleDef } from './module'; export declare type IQAppSagaResult = Generator; export declare type QAppExtractResult = T extends (...args: any) => infer R ? R extends IQAppSagaResult ? X : R extends Promise ? X : never : never; export declare type IQAppMsgSaga = (payload: ExtractQAppMessage['payload'], msg: ExtractQAppMessage) => IQAppSagaResult; export declare type IQAppModuleSaga = () => IQAppSagaResult; export declare function createMsgSaga(moduleDef: TModuleDef, msgDef: TMsg, worker: IQAppMsgSaga): IQAppMsgSaga; export declare function createMsgSaga(moduleDef: TModuleDef, msgDefs: TMsgs, worker: IQAppMsgSaga): IQAppMsgSaga; export declare function createModuleSaga(moduleDef: TModuleDef, worker: IQAppModuleSaga): IQAppModuleSaga; export declare function getCreateMsgSagaTool(moduleDef: TModuleDef): { (msgDef: TMsg, worker: IQAppMsgSaga): IQAppMsgSaga; (msgDefs: TMsgs, worker: IQAppMsgSaga): IQAppMsgSaga; }; export declare function getCreateModuleSagaTool(moduleDef: TModuleDef): (worker: IQAppModuleSaga) => IQAppModuleSaga;