import { SimpleSkeletosAction } from "./SimpleSkeletosAction"; import Promise = require("bluebird"); /** * This is simply a wrapper for the SimpleSkeletosAction that allows to to wrap * the .execute() function in a promise. This is useful when we want to interpret any callback * errors, while still using a new transaction. * */ export declare abstract class SimpleSkeletosPromiseAction extends SimpleSkeletosAction { protected returnValue: ReturnType; protected _resolve: (value?: ReturnType) => void; protected _reject: (error?: any) => void; /** * Returns the action as a promise using the ReturnType as specified by the subclass. * * @returns {Promise|Promise} */ asPromise(): Promise; /** * We override the doAfterExecute(..) function in order to reject or resolve the promise * * @param err */ protected doAfterExecute(err?: Error): void; }