import { type ActionDefinition, type ComponentDefinition, type ComponentHooks, type ConfigVarResultCollection, type ConnectionDefinition, type ConnectionInput, type ConnectionTemplateInputField, type InputFieldDefinition, type Inputs, type OnPremConnectionInput, type TriggerDefinition, type TriggerPayload, type TriggerResult } from "../types"; import { type PollingTriggerDefinition } from "../types/PollingTriggerDefinition"; import type { Action as ServerAction, Component as ServerComponent, Connection as ServerConnection, Input as ServerInput, Trigger as ServerTrigger } from "."; import { type CleanFn } from "./perform"; /** Auto-generated cleaner for structuredObject/dynamicObject containers. * Recursively delegates to each child's clean function. Developers do not * declare a top-level clean on these containers — the conversion always * supplies one so nested clean functions are applied at runtime. */ export declare const cleanerFor: (input: InputFieldDefinition) => CleanFn | undefined; /** * Throws if `batchSize` isn't a positive integer; otherwise returns it. Shared by the * component-trigger (`TriggerDefinition.batch.batchSize`) and CNI flow (`flow.batch.batchSize`) * validation paths. */ export declare const validateBatchSize: (ownerLabel: string, fieldName: string, batchSize: unknown) => number; /** * Throws if `concurrentBatchLimit` is set but isn't a positive integer; returns it * unchanged (including `undefined`, which the platform treats as unlimited). Shared by the * component-trigger and CNI flow paths, both sourcing it from the single `batchConfig`. */ export declare const validateConcurrentBatchLimit: (ownerLabel: string, fieldName: string, concurrentBatchLimit: unknown) => number | undefined; export declare const convertInput: (key: string, definition: InputFieldDefinition | OnPremConnectionInput | ConnectionInput) => ServerInput; export declare const _isValidTemplateValue: (template: string, inputs: { [key: string]: ConnectionInput | ConnectionTemplateInputField; }) => { isValid: boolean; error?: string; }; export declare const convertTemplateInput: (key: string, { templateValue, label, ...rest }: ConnectionTemplateInputField, inputs: { [key: string]: ConnectionInput | ConnectionTemplateInputField; }) => ServerInput; export declare const convertAction: (actionKey: string, { inputs, perform, outputSchema, examplePerform, performSafety, ...action }: ActionDefinition, hooks?: ComponentHooks) => ServerAction; export declare const convertTrigger: = TriggerResult>(triggerKey: string, trigger: TriggerDefinition | PollingTriggerDefinition, hooks?: ComponentHooks) => ServerTrigger; export declare const convertConnection: ({ inputs, ...connection }: ConnectionDefinition) => ServerConnection; export declare const convertComponent: = TriggerResult>({ connections, actions, triggers, dataSources, hooks, ...definition }: ComponentDefinition) => ServerComponent;