/** * The read side: turn durable projection state into the bounded value the * Client receives. Every limit in the configuration is applied here, and a * state whose visible result did not change reuses the previous view reference * so the projection drive publishes nothing. * * @module dsh-context-snapshot-bar/projection/view */ import type { BarState, BarView } from '../shared/types.ts'; import type { Config } from '../shared/config.ts'; /** * Reduce the durable state to the bounded Client view. * * The result reference is stable while the state is: the projection drive * compares consecutive view results with `Object.is`, so a fresh object per * call would publish on every event. * * @param state - the current fold state. * @param config - the resolved plugin configuration. * @returns the bounded view for this state. */ export declare function toView(state: BarState, config: Config): BarView; //# sourceMappingURL=view.d.ts.map