import type { Service } from '../core/Service/Service.impl.js'; import type { CommandBeforeGuardHook } from '../core/types/commandType/CommandBeforeGuardHook.js'; import type { CommandFunction } from '../core/types/commandType/CommandFunction.js'; import type { CommandFunctionContext } from '../core/types/commandType/CommandFunctionContext.js'; import type { ServiceClassMetrics } from '../core/types/ServiceClassMetrics.js'; import { type Schema } from '../schema/index.js'; /** * Wraps a command handler with schema validation and guard execution. * Input payload/parameter is validated before execution and output can be validated after execution. */ export declare const getCommandFunctionWithValidation: (fn: CommandFunction, inputPayloadSchema: Schema | undefined, inputParameterSchema: Schema | undefined, outputPayloadSchema: Schema | undefined, beforeGuards: Record>) => (this: S, context: CommandFunctionContext>, payload: unknown, parameter: unknown) => Promise; //# sourceMappingURL=getCommandFunctionWithValidation.impl.d.ts.map