import { BautaJSInstance, Context, GenericError, Pipeline } from '../types'; export type StepFunctionCallback = (prev: TIn, ctx: Context, bautajs: BautaJSInstance, callback: (err: GenericError, val: TOut) => void) => void; /** * Allow you to use a callback style async operation * @export * @template TIn * @template TOut * @param {StepFunctionCallback} fn * @returns {Pipeline.StepFunction} * @example * const { asPromise } = require('@batuajs/core'); * * operations.v1.op1.setup(asPromise((_, ctx, batuajs, done) => { * done(null, 'hey') * })) */ export declare function asPromise(fn: StepFunctionCallback): Pipeline.StepFunction>; export default asPromise; //# sourceMappingURL=as-promise.d.ts.map