UNPKG

histoire

Version:

A fast story book powered by Vite

10 lines • 715 B
import type { ViteDevServer } from 'vite'; import type { Context } from '../../context.js'; import type { ExecutionService } from '../../runtime/execution-service.js'; import type { UiChannelServer } from './types.js'; /** Install dev-only handlers once on the generation's existing Vite socket. */ export declare function registerUiChannel(ctx: Context, server: ViteDevServer, execution: ExecutionService, isActive: () => boolean): UiChannelServer; /** Additional dev slices attach handlers to this exact generation's channel. */ export declare function getUiChannel(ctx: Context): UiChannelServer | undefined; export type { UiChannelClient, UiChannelServer } from './types.js'; //# sourceMappingURL=index.d.ts.map