histoire
Version:
A fast story book powered by Vite
14 lines • 893 B
TypeScript
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';
/** Group streamed items (receipts, planned IDs) into as few events as channel budget allows. */
export declare function visualEventChunks<T>(items: readonly T[]): T[][];
/** Bound pages by bytes as well as rows; oversized exact records fail explicitly. */
export declare function visualPage<T>(items: readonly T[], start: number): {
items: T[];
nextOffset?: number;
};
/** Attach one generation-owned visual adapter to existing UI socket and image routes. */
export declare function registerVisualChannel(ctx: Context, server: ViteDevServer, channel: UiChannelServer, execution: ExecutionService, isActive: () => boolean): void;
//# sourceMappingURL=visual.d.ts.map