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