import type { DataSourceFnBuilder } from './data-source-fn-builder.types'; import type { MapOutputFn, WithMapOutput } from './with-map-output.types'; /** * Adds a mapOutputFn and corresponding types to a DataSourceFnBuilder. * When built, the output type of the built function will correspond to the * Ok type of this function. * * @param mapOutputFn - Called when mapping the output of the builder's `fn`. * @return A Result where the Ok type is whatever type we are mapping the output to. */ export declare const withMapOutput: (mapOutputFn: MapOutputFn) => (builder: BuilderType) => BuilderType & import("./with-map-output.types").WithMapOutputFn & import("./with-map-output.types").WithMapOutputToType & import("./data-source-fn-builder.types").WithOutputType; /** * A type guard to determine if a builder has a mapOutputFn. * * @param builder - Any DataSourceFnBuilder * @return boolean */ export declare const hasMapOutputFn: (builder?: BuilderType | undefined) => builder is BuilderType & import("./with-map-output.types").WithMapOutputFn & import("./with-map-output.types").WithMapOutputToType & import("./data-source-fn-builder.types").WithOutputType;