import type { CloudflareApi } from "./api.js"; export interface WorkflowProps { /** * Name of the workflow * * @maxLength 64 * @minLength 1 * @default - className if provided, otherwise id */ workflowName?: string; /** * Name of the class that implements the workflow * * @maxLength 255 * @minLength 1 * @default - workflowName if provided, otherwise id */ className?: string; } export declare class Workflow { readonly id: string; readonly type: "workflow"; /** * Phantom property to preserve workflow params at the type level. * * No value exists. */ readonly _PARAMS: PARAMS; readonly workflowName: string; readonly className: string; constructor(id: string, props?: WorkflowProps); } export interface WorkflowMetadata { id: string; class_name: string; created_on: string; modified_on: string; name: string; script_name: string; triggered_on: string; version_id: string; } export declare function upsertWorkflow(api: CloudflareApi, props: WorkflowProps & { workflowName: string; scriptName: string; }): Promise; //# sourceMappingURL=workflow.d.ts.map