import { type Dependencies, type ServiceInitializer, type ProviderInitializer } from 'knifecycle'; import { type JsonValue } from 'type-fest'; import { type ExpressiveJSONSchema } from 'ya-json-schema-types'; import { type WhookHandlerWrapper } from './wrappers.js'; import { type WhookEnvironmentsConfig } from '../libs/environments.js'; import { type WhookSchemasDeclarationModule } from '../index.js'; export declare const DEFAULT_CONSUMER_CONFIG: WhookConsumerConfig; export interface WhookBaseConsumerConfig { environments?: WhookEnvironmentsConfig; targetHandler?: string; wrappers?: string[]; } export interface WhookConsumerConfig extends WhookBaseConsumerConfig { } export interface WhookConsumerDefinition { name: string; summary?: string; schema: ExpressiveJSONSchema; config?: WhookConsumerConfig; } export type WhookConsumerHandler = (input: T, definition?: D) => Promise; export type WhookConsumerHandlerInitializer> = ServiceInitializer> | ProviderInitializer>; export interface WhookConsumerModule extends WhookSchemasDeclarationModule { default: WhookConsumerHandlerInitializer; definition: WhookConsumerDefinition; } export type WhookConsumerHandlerWrapper = WhookHandlerWrapper>;