previewService.d.ts 679 B

1234567891011121314151617181920
  1. /**
  2. * 启动实时预览。等待 Vite dev server 就绪后才返回。
  3. */
  4. export declare function startPreview(creativeId: string, theme: Record<string, string>, storageDir: string): Promise<{
  5. url: string;
  6. }>;
  7. /**
  8. * 更新预览配置(主题变更时调用)。Vite HMR 会自动检测并刷新页面。
  9. */
  10. export declare function updatePreviewConfig(creativeId: string, theme: Record<string, string>, storageDir: string): void;
  11. /**
  12. * 停止预览
  13. */
  14. export declare function stopPreview(): void;
  15. export declare function getPreviewStatus(): {
  16. active: boolean;
  17. creativeId: string | null;
  18. url: string | null;
  19. };
  20. //# sourceMappingURL=previewService.d.ts.map