import { CsvReadOptions, Dataframe } from "./csv" import { ToDictionaryOptions } from "./text" interface Csv { read: (csvData: string, options: CsvReadOptions) => Dataframe; } interface DataFrameExport { addColumn: (df: Dataframe, label: string, map: (row: string[], object: Record) => any) => void; addRow: (df: Dataframe, data: string[] | ((head: string[]) => string[])) => void; } interface Text { createDictionary: (text: string, options?: ToDictionaryOptions) => Record; sanitize: (text: string, replacer?: string) => string; createText: (array: number[], dictionary: Record, seperator?: string) => string; codify: (dictionary: Record, data: string, onNotFound?: string, seperator?: string) => number[]; } import { read } from "./csv" import { addColumn, addRow } from "./dataframe" import { create as createDictionary, sanitize, textify as createText, codify } from "./text" const csv: Csv = { read } const dataframe: DataFrameExport = { addColumn, addRow } const text: Text = { createDictionary, createText, sanitize, codify } export { csv, dataframe, text }