import { type RuntimeExecutor, type WorkflowRun, type WorkflowRuntime } from '../engine/runtime.js'; import type { LoadedWorkflowApplication } from '../workflow-application/index.js'; import { readSdkChangeOwner, type ChangeRuntimeOwner } from '../workflow-contract/change-runtime-owner.js'; import type { NativePortableState } from './native-portable-types.js'; import type { NativeProjectPaths } from './native-types.js'; /** 在已绑定的 SDK 入口登记请求文件;只读 inspect 不调用此写入口。 */ export declare function registerNativeSdkRequestInput(options: { projectRoot: string; artifactRootRef: string; file: string; runId: string; validateContent: (content: string) => void; }): Promise; export { inspectPristineNativeSdkChange } from './native-sdk-create.js'; export declare function resolveNativeChangeRuntimeOwner(paths: NativeProjectPaths, name: string): Promise; /** Read-only guard for entry probes that must not register Runtime ownership. */ export declare function assertNativePortableChangeNotOrphaned(paths: NativeProjectPaths, name: string): Promise; export declare function listNativeSdkChangeNames(projectRoot: string, options?: { readOnly?: boolean; partition?: 'all' | 'active' | 'history'; }): Promise; export declare function createNativeSdkRuntime(projectRoot: string): WorkflowRuntime; /** 诊断沿用自动数据升级入口,不装配旧执行定义。 */ export declare function inspectNativeSdkDefinitionUpgrade(projectRoot: string, name: string, repair: boolean): Promise<{ ready: boolean; required: boolean; repaired: boolean; fromHash: string; toHash: string; unresolvedActions: never[]; repairCommand: string; } | null>; /** 每个公开 Native 入口都恢复 owner 绑定的同一固定应用。 */ export declare function loadOwnedNativeSdkRuntime(projectRoot: string, name: string, options?: { readOnly?: boolean; owner?: Awaited>; }): Promise<{ runtime: WorkflowRuntime; executors: readonly RuntimeExecutor[]; application: LoadedWorkflowApplication | null; }>; export declare function inspectNativeSdkRun(projectRoot: string, name: string, options?: { readOnly?: boolean; }): Promise<{ run: WorkflowRun; state: NativePortableState; artifactRootRef: string; application: LoadedWorkflowApplication | null; }>; export declare function findNativeSdkWorkspace(projectRoot: string, name: string, options?: { readOnly?: boolean; }): Promise<({ projectRoot: string; } & Awaited>) | null>; export declare function resolveNativeSdkCommandRoot(projectRoot: string, name: string, options?: { readOnly?: boolean; }): Promise; //# sourceMappingURL=native-runtime-ownership.d.ts.map