/** * Hot reload state helpers. * * Runtime state is shared with `eden-build watch` through files in the * consumer project, not inside the installed SDK package. */ import type { EdenConfig } from "@edenapp/types"; export interface HotReloadEnabledState { apps: string[]; } export interface HotReloadServerState { apps: Record; } export interface HotReloadAppsState { protocolVersion: number; apps: Array<{ id: string; sourcePath: string; launchOnStart: boolean; }>; } export interface HotReloadAppServerState { appId: string; sourcePath: string; port: number; url: string; status: "starting" | "ready" | "error"; updatedAt: number; revision?: number; error?: string; } export declare const HOT_RELOAD_PROTOCOL_VERSION = 1; export declare function isHotReloadConfigured(config: EdenConfig): boolean; export declare function getHotReloadStateDirectory(config?: EdenConfig): string; export declare function getHotReloadEnabledPath(config?: EdenConfig): string; export declare function getHotReloadServersPath(config?: EdenConfig): string; export declare function getHotReloadAppsPath(config?: EdenConfig): string; export declare function loadHotReloadAppsState(config?: EdenConfig): Promise; export declare function loadHotReloadEnabledState(config?: EdenConfig): Promise; export declare function saveHotReloadEnabledState(state: HotReloadEnabledState, config?: EdenConfig): Promise; export declare function loadHotReloadServerState(config?: EdenConfig): Promise; export declare function getHotReloadDevUrl(appId: string, config?: EdenConfig): Promise; export declare function isHotReloadEnabled(appId: string, config?: EdenConfig): Promise; export declare function toggleHotReload(appId: string, config?: EdenConfig): Promise; export declare function getHotReloadApps(config?: EdenConfig): Promise; //# sourceMappingURL=hotreload-config.d.ts.map