import { type CreateRuntimeOptions, type DefineWorkflowOptions, type RuntimeCommandValidator, type RuntimeExecutor, type RuntimeStateValidator, type RuntimeValidator, type WorkflowRun, type WorkflowTransitionHandler } from '../engine/runtime.js'; import { type NativeChildrenContract } from './native-children-contract.js'; import type { NativePortableAcceptanceInput } from './native-portable-acceptance.js'; import type { NativePortableAcceptanceState, NativePortableSpecChange, NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; /** 数据升级在加载边界完成;这里只选择当前平台执行协议。 */ export declare function nativeSdkApplicationForRun(run: Pick | null, application?: NativeWorkflowApplication): NativeWorkflowApplication; interface NativeShapeProposal { specChanges: NativePortableSpecChange[]; acceptance: Array>; children: { contract: NativeChildrenContract; } | null; } export interface NativeWorkflowApplication { workflow: DefineWorkflowOptions; transitionHandler: WorkflowTransitionHandler; validators: readonly RuntimeValidator[]; stateValidators: readonly RuntimeStateValidator[]; executors: readonly RuntimeExecutor[]; commandValidators: readonly RuntimeCommandValidator[]; validateRecovery?: CreateRuntimeOptions['validateRecovery']; } export declare function assertNativeSdkStartAvailable(options: { projectRoot: string; name: string; artifactRootRef: string; }): Promise; export declare function registerNativeSdkStartOwner(options: { projectRoot: string; name: string; artifactRootRef: string; }): Promise; /** Reads formal Shape artifacts; only an explicit preparation may generate derived targets. */ export declare function collectNativeSdkShapeProposal(options: { paths: NativeProjectPaths; state: NativePortableState; materializeTargets?: boolean; acceptance?: readonly NativePortableAcceptanceInput[]; }): Promise; export declare function defineNativeWorkflowApplication(version?: '1' | '2' | '3' | '4'): NativeWorkflowApplication; export {}; //# sourceMappingURL=native-sdk-application.d.ts.map