import { type RetryPolicy, type SchemaInput, type SchemaOutput, type StandardSchemaV1, type WorkflowSpec } from "@sonamu-kit/tasks/internal"; import { type Executable } from "../types/types"; import { type WorkflowFunction } from "./workflow-manager"; export interface WorkflowMetadata { type: "workflow"; id: string; name: string; version: string | null; schema: StandardSchemaV1 | undefined; schedules: { name: string; expression: string; input: Executable | undefined>; }[]; fn: WorkflowFunction; retryPolicy?: RetryPolicy; } export type DefineWorkflowOptions = Omit, Output, SchemaInput>, "name"> & { name?: string; schedules?: { name?: string; expression: string; input?: Executable | undefined>; }[]; retryPolicy?: RetryPolicy; }; export declare function workflow(options: DefineWorkflowOptions): (fn: WorkflowFunction, Output>) => WorkflowMetadata; export declare function workflow(options: DefineWorkflowOptions, fn: WorkflowFunction, Output>): WorkflowMetadata; //# sourceMappingURL=decorator.d.ts.map