import { ReactNode } from 'react'; export type AthenaTableFormatKind = "raw" | "string" | "json" | "unix_ms" | "unix_s" | "iso_datetime" | "date" | "time" | "boolean" | "relative_time"; export interface AthenaTableFormatOptions { dateStyle?: Intl.DateTimeFormatOptions["dateStyle"]; /** * For boolean format: label when true/false. */ falseLabel?: string; kind: AthenaTableFormatKind; locale?: string; timeStyle?: Intl.DateTimeFormatOptions["timeStyle"]; timeZone?: string; trueLabel?: string; } export type AthenaTableFormatConfig = AthenaTableFormatKind | AthenaTableFormatOptions; /** * Normalizes a string shorthand (`"unix_ms"`) or options object to options. * Prefer this when reading `.kind` / locale fields — string configs have no * properties, so `format.kind` is a TypeScript error on the union. */ export declare function normalizeTableFormat(format: AthenaTableFormatConfig): AthenaTableFormatOptions; /** Resolves the format kind from a string or options config. */ export declare function getTableFormatKind(format: AthenaTableFormatConfig | undefined): AthenaTableFormatKind | undefined; /** * Formats a cell value using a named preset (or returns the original for `raw`). */ export declare function formatTableValue(value: unknown, format: AthenaTableFormatConfig | undefined): ReactNode;