import type { DataSourceResultFn } from '../data-source.types'; import type { DataSourceFnBuilder } from './data-source-fn-builder.types'; import type { WithMapInput } from './with-map-input.types'; /** * Adds a mapInputFn and corresponding types to a DataSourceFnBuilder. * When built, the input type of the built function will correspond to the * Ok type of this function. * * @param mapInputFn - Called when mapping to the input of the builder's `fn` * @return A Result where the Ok type is whatever type we are mapping the input from */ export declare const withMapInput: (mapInputFn: DataSourceResultFn) => (builder: BuilderType) => BuilderType & import("./data-source-fn-builder.types").WithInputType & import("./with-map-input.types").WithMapInputFn & import("./with-map-input.types").WithMapInputFromType; /** * A type guard to determine if a builder has a mapInputFn. * * @param builder - Any DataSourceFnBuilder * @return boolean */ export declare const hasMapInputFn: (builder?: BuilderType | undefined) => builder is BuilderType & import("./data-source-fn-builder.types").WithInputType & import("./with-map-input.types").WithMapInputFn & import("./with-map-input.types").WithMapInputFromType;