import type { Conditions } from './Conditions'; import type { SurfaceRenderer } from './SurfaceRenderer'; import type { Block } from '../blocks/Block'; import type { RenderableLayoutBlock } from '../blocks/RenderableLayoutBlock'; export const createSurfaceRenderer = () => (surfaceRenderer: SurfaceRenderer, conditions?: Conditions) => (blocks: readonly { type: string }[]): TOutputObject[] => surfaceRenderer.render(blocks as Block[], conditions);