import type { ExecFileException } from 'child_process'; export type Transport = 'osascript' | 'powershell'; export declare function resolveTransport(platform?: string, envVar?: string | undefined): Transport; declare function getTransport(): Transport; /** * バージョン番号(例: "2025")からアプリのフルパスを解決する。 */ export declare function resolveVersionToPath(version: string, platform?: string): string; /** * セッションのアプリパスを設定する。 * version が指定された場合はパスに変換、undefined で解除。 */ export declare function setAppVersion(version: string | undefined, platform?: string): void; /** * セッションのアプリパスを取得する。 */ export declare function getAppPath(): string | undefined; /** * 現在設定されているバージョン情報を返す(ステータス表示用)。 */ export declare function getAppVersion(): string | undefined; /** * 実行中の JSX がすべて完了するまで待機する(シャットダウン用) */ export declare function waitForPendingExecutions(): Promise; export interface JsxResult { error?: boolean; message?: string; line?: number; [key: string]: unknown; } export declare function getExecFailureMessage(error: ExecFileException, stderr: string, timeout: number, transport?: Transport): string; /** * JSX を実行する(排他制御付き — 公開 API) * pendingCount は jsxLimit の外側で管理し、キュー待ちのタスクも追跡する */ export declare function executeJsx(jsxCode: string, params?: unknown, options?: { timeout?: number; activate?: boolean; }): Promise; /** * 重い処理用の JSX 実行(タイムアウト延長 + Illustrator をフォアグラウンドに) */ export declare function executeJsxHeavy(jsxCode: string, params?: unknown): Promise; export { getTransport as TRANSPORT }; //# sourceMappingURL=jsx-runner.d.ts.map