import { type Type } from 'arktype'; import { type TransformAndValidateObjectFactoryDefaults, type TransformAndValidateObjectHandleValidate } from './transform'; /** * A TransformAndValidate function that returns only the result. */ export type TransformAndValidateResultFunction = (input: I, context?: C) => Promise; export type TransformAndValidateResultFactory = (schema: Type, fn: (parsed: T) => Promise, handleValidationError?: TransformAndValidateObjectHandleValidate) => TransformAndValidateResultFunction; /** * Creates a factory for transform-and-validate functions that return only the result (discarding the parsed object). * * Useful when you only need the processed output and don't need access to the validated input. * * @param defaults - Shared error handler defaults. * @returns A factory that produces functions returning only the handler's result. * * @__NO_SIDE_EFFECTS__ */ export declare function transformAndValidateResultFactory(defaults: TransformAndValidateObjectFactoryDefaults): TransformAndValidateResultFactory;