export type Step = { run(id: string, handler: () => T | Promise): Promise; }; export type MethodStepScope = { kind: 'method'; ref: string; owner: string; method: string; }; export type FunctionStepScope = { kind: 'function'; ref: string; slug: string; }; export type StepScope = MethodStepScope | FunctionStepScope; export type StepRun = { /** The author-provided id, normalized to the local id inside this scope. */ id: string; /** Backend-facing durable key, qualified by the method/function scope. */ key: string; /** Zero-based occurrence for repeated ids in one execution. */ occurrence: number; scope?: StepScope; }; export declare function requireStepId(id: string): string; export declare function buildStepRun(id: string, scope: StepScope | undefined, occurrence: number): StepRun; export declare function roundTripStepResult(id: string, value: T): T; //# sourceMappingURL=step.d.ts.map