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_CRON_CONFIG: WhookCronConfig; export interface WhookBaseCronConfig { environments?: WhookEnvironmentsConfig; targetHandler?: string; wrappers?: string[]; } export interface WhookCronConfig extends WhookBaseCronConfig { } export interface WhookCronDefinition { name: string; summary?: string; schedules: { rule: string; body: T; environments?: WhookEnvironmentsConfig; }[]; schema: ExpressiveJSONSchema; config?: WhookCronConfig; } export interface WhookCronHandlerParameters { date: string; body: T; } export type WhookCronHandler = WhookCronDefinition> = (input: WhookCronHandlerParameters, definition?: D) => Promise; export type WhookCronHandlerInitializer> = ServiceInitializer> | ProviderInitializer>; export declare const CRON_ASIDE_COMPONENTS_MAP: { readonly schemas: "Schema"; }; export interface WhookCronModule extends WhookSchemasDeclarationModule { default: WhookCronHandlerInitializer; definition: WhookCronDefinition; } export type WhookCronHandlerWrapper = WhookHandlerWrapper>;