import { type Plan, type Row } from './types'; /** The records behind the marks of a sheet, as a table a host can save. */ export interface ResultTable { columns: { key: string; label: string; }[]; rows: Row[]; } /** * One table per query whose records are drawn. Queries that only order members are left out. * Columns read like a table: the dimensions first, in the order of rows, columns and then * the rest; after them the fields drawn as an axis without aggregation, such as a date or * the values of a box plot; last the aggregated measures. Rows are what the query * returned, in its order and after any limit. */ export declare function resultTables(plan: Plan, results: Map): ResultTable[]; /** Comma-separated text with a header line. Values are written as stored; a bin is written as its two bounds. */ export declare function tableToCSV(table: ResultTable): string;