export type Newtype = { readonly _URI: URI; readonly _A: A; }; export type WithDefaults = Required; export type ColumnHeader = string | { key: string; displayLabel: string; }; export declare enum MediaType { csv = "text/csv", tsv = "text/tab-separated-values", plain = "text/plain" } export type ConfigOptions = { filename?: string; fieldSeparator?: string; quoteStrings?: boolean; quoteCharacter?: string; decimalSeparator?: string; showColumnHeaders?: boolean; showTitle?: boolean; title?: string; /** * Use `fileExtension` instead. * * Will be removed in the next major version (`2.x.x`) * * @deprecated */ useTextFile?: boolean; fileExtension?: string; mediaType?: MediaType; useBom?: boolean; columnHeaders?: Array; useKeysAsHeaders?: boolean; boolDisplay?: { true: string; false: string; }; replaceUndefinedWith?: string | boolean | null; }; export type HeaderKey = Newtype<{ readonly HeaderKey: unique symbol; }, string>; export type HeaderDisplayLabel = Newtype<{ readonly HeaderDisplayLabel: unique symbol; }, string>; export type AcceptedData = number | string | boolean | null | undefined; export type FormattedData = Newtype<{ readonly FormattedData: unique symbol; }, string>; export type CsvOutput = Newtype<{ readonly CsvOutput: unique symbol; }, string>; export type CsvRow = Newtype<{ readonly CsvRow: unique symbol; }, string>; export type IO = void; export declare const pack: >(value: T["_A"]) => T; export declare const unpack: >(newtype: T) => T["_A"]; export declare const mkFormattedData: (value: string) => FormattedData; export declare const mkCsvOutput: (value: string) => CsvOutput; export declare const mkCsvRow: (value: string) => CsvRow; export declare const mkHeaderKey: (value: string) => HeaderKey; export declare const mkHeaderDisplayLabel: (value: string) => HeaderDisplayLabel;