import { z } from 'zod'; export type WorkflowType = 'web' | 'print' | 'video' | 'unknown'; export type CoordinateSystem = 'artboard-web' | 'document'; export declare function getSessionCoordinateSystem(): CoordinateSystem | null; export declare function getSessionWorkflow(): WorkflowType | null; export declare function setSession(workflow: WorkflowType, coordinateSystem: CoordinateSystem): void; export declare function clearSession(): void; /** ドキュメント切替時(create/close/open)に自動検出キャッシュのみ無効化 */ export declare function invalidateAutoDetectCache(): void; /** * Resolve coordinate_system: * 1. explicit param (per-tool call) * 2. session default (set via set_workflow) * 3. auto-detect from document signals (cached, invalidated on document switch) * 4. fallback: 'artboard-web' */ export declare function resolveCoordinateSystem(explicit?: CoordinateSystem): Promise; export declare const coordinateSystemSchema: z.ZodOptional>; interface DocumentSignals { colorMode: string; rulerUnits: string; rasterEffectResolution: number; colorProfile: string; } export interface WorkflowHint { detectedWorkflow: WorkflowType; recommendedCoordinateSystem: CoordinateSystem; reasoning: string; signals: DocumentSignals; } export declare function detectWorkflow(signals: DocumentSignals): WorkflowHint; export {}; //# sourceMappingURL=session.d.ts.map