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_TRANSFORMER_CONFIG: WhookTransformerConfig; export interface WhookBaseTransformerConfig { environments?: WhookEnvironmentsConfig; targetHandler?: string; wrappers?: string[]; } export interface WhookTransformerConfig extends WhookBaseTransformerConfig { } export interface WhookTransformerDefinition { name: string; summary?: string; inputSchema: ExpressiveJSONSchema; outputSchema: ExpressiveJSONSchema; config?: WhookTransformerConfig; } export type WhookTransformerHandler = (input: T, definition: D) => Promise; export type WhookTransformerHandlerInitializer> = ServiceInitializer> | ProviderInitializer>; export declare const TRANSFORMER_ASIDE_COMPONENTS_MAP: { readonly schemas: "Schema"; }; export interface WhookTransformerModule extends WhookSchemasDeclarationModule { default: WhookTransformerHandlerInitializer; definition: WhookTransformerDefinition; } export type WhookTransformerHandlerWrapper = WhookHandlerWrapper>;