/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { ColumnFormatter, FormatterProps } from '@byline/core'; /** * Type guard: returns true when the formatter is a `{ component }` wrapper * rather than a plain function. */ export declare function isComponentFormatter(fmt: ColumnFormatter): fmt is { component: (props: FormatterProps) => any; }; /** * Render a cell value through its column formatter (if any). * Handles both plain-function and `{ component }` formatters. */ export declare function renderFormatted(value: any, document: any, formatter: ColumnFormatter): any;