import { SchemaBase } from './dsl.js'; import type { ActionSchema } from './action.js'; /** One business journey: a goal-directed line of actions. */ export interface JourneySchema extends SchemaBase { /** Chinese title of the journey. */ title: string; /** The business goal the journey achieves (what it is for). */ goal: string; /** The running list of actions, in business order. */ actions: ActionSchema[]; } /** * Defines a business journey. `name` is kebab-case (e.g. 'merchant-onboarding'); * the export symbol is the kebab-camel of the name (merchantOnboarding). * File name is the name plus '.journey.ts' (journey_schema/merchant-onboarding.journey.ts). */ export declare function defineJourney(options: { name: string; title: string; goal: string; actions: ActionSchema[]; description?: string; }): JourneySchema;