import { Schema as S } from 'effect'; /** Browser → plugin: the runtime preserves its current Model under a stable id so it can be restored after a full reload. `isHmrReload` is set by the runtime when flushing on `vite:beforeFullReload` to mark the entry as eligible for restoration; absent or `false` for ordinary debounced preserves. */ export declare const PreserveModelMessage: S.Struct<{ readonly id: S.String; readonly model: S.Unknown; readonly isHmrReload: S.optional; }>; /** Browser → plugin: the runtime preserves its current Model under a stable id. */ export type PreserveModelMessage = typeof PreserveModelMessage.Type; /** Browser → plugin: the runtime requests its previously-preserved Model on startup, scoped by id. */ export declare const RequestModelMessage: S.Struct<{ readonly id: S.String; }>; /** Browser → plugin: the runtime requests its previously-preserved Model on startup. */ export type RequestModelMessage = typeof RequestModelMessage.Type; /** Plugin → browser: the plugin returns the preserved Model for a given runtime id. `model` is omitted when nothing is preserved (cold start, manual refresh). */ export declare const RestoreModelMessage: S.Struct<{ readonly id: S.String; readonly model: S.optional; }>; /** Plugin → browser: the plugin returns the preserved Model for a given runtime id. */ export type RestoreModelMessage = typeof RestoreModelMessage.Type; //# sourceMappingURL=hmrProtocol.d.ts.map