import { Transform } from 'stream'; export declare const BOM_SIGNATURES: { readonly 'utf-8': Buffer; readonly 'utf-16le': Buffer; readonly 'utf-16be': Buffer; readonly 'utf-32le': Buffer; readonly 'utf-32be': Buffer; }; export type Encoding = keyof typeof BOM_SIGNATURES; export interface BomDetectionResult { encoding: Encoding; bomLength: number; hasBom: boolean; } export interface ReadFileWithBomResult { data: Buffer | string; encoding: string; hadBom: boolean; bomInfo: BomDetectionResult | null; } export interface NormalizeCsvInputOptions { encoding?: string; normalizeLineEndings?: boolean; } export declare function detectBom(input: Buffer | string | null | undefined): BomDetectionResult | null; export declare function stripBom(input: Buffer | string | null | undefined): Buffer | string; export declare function stripBomFromString(str: string): string; export declare function createBomStripStream(): Transform; export declare function readFileWithBomHandling(filePath: string, options?: { encoding?: BufferEncoding; }): Promise; export declare function fileHasBomSync(filePath: string): BomDetectionResult | null; export declare function normalizeCsvInput(csvInput: string | Buffer, options?: NormalizeCsvInputOptions): string; export declare function normalizeCsvInputAsync(csvInput: string | Buffer | { filePath: string; }, options?: NormalizeCsvInputOptions): Promise; export declare function createBomStrippingIterator(stream: NodeJS.ReadableStream): AsyncIterableIterator; export declare function detectBomAsync(filePath: string): Promise; declare const _default: { detectBom: typeof detectBom; stripBom: typeof stripBom; stripBomFromString: typeof stripBomFromString; createBomStripStream: typeof createBomStripStream; readFileWithBomHandling: typeof readFileWithBomHandling; fileHasBomSync: typeof fileHasBomSync; normalizeCsvInput: typeof normalizeCsvInput; normalizeCsvInputAsync: typeof normalizeCsvInputAsync; createBomStrippingIterator: typeof createBomStrippingIterator; detectBomAsync: typeof detectBomAsync; BOM_SIGNATURES: { readonly 'utf-8': Buffer; readonly 'utf-16le': Buffer; readonly 'utf-16be': Buffer; readonly 'utf-32le': Buffer; readonly 'utf-32be': Buffer; }; }; export default _default;