import type { CellSnapshot, LiteralInput } from '@bilig/protocol';
interface CsvCellInput {
    formula?: string;
    value?: LiteralInput;
}
export type CsvDelimiter = ',' | ';' | '\t';
export type CsvDecimalSeparator = '.' | ',';
export interface CsvParseOptions {
    delimiter?: CsvDelimiter;
    decimalSeparator?: CsvDecimalSeparator;
}
export interface ResolvedCsvParseOptions {
    delimiter: CsvDelimiter;
    decimalSeparator: CsvDecimalSeparator;
}
export declare function cellToCsvValue(cell: CellSnapshot): string;
export declare function serializeCsv(rows: string[][]): string;
export declare function resolveCsvParseOptions(csv: string, options?: CsvParseOptions): ResolvedCsvParseOptions;
export declare function parseCsv(csv: string, options?: CsvParseOptions): string[][];
export declare function parseCsvCellInput(raw: string, options?: CsvParseOptions): CsvCellInput | undefined;
export {};
