/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import type { Value } from '@datashaper/schema'; import { DataType } from '@datashaper/schema'; /** * Guess the type of a table value with more discernment than typeof * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof * @param value - * @returns */ export declare function determineType(value: Value): DataType; /** * Ensure an incoming value matches its datatype. * For example, if user input is from a textfield, parse it. * @param value - * @param dataType - */ export declare function coerce(value: Value, dataType: DataType): Value; /** * Returns a nice formatted string for a number * @param value - * @param options - */ export declare function format(value: number, options?: { minExp?: number; precision?: number; }): string; /** * Returns a formatted string for a number, otherwise returns the original value * @param value - */ export declare function formatIfNumber(value: Value): string | Value;