import { DEFAULT_DELIMITER, DEFAULT_QUOTATION } from '../../core/constants'; import { CSVBinary, ParseBinaryOptions, ParseOptions } from '../../core/types'; import { InternalEngineConfig } from '../config/InternalEngineConfig'; import { WorkerStrategy } from './WorkerStrategy'; import { WorkerSession } from '../../worker/helpers/WorkerSession'; /** * TransferableStream-based strategy. * * Streams are transferred directly to the worker using zero-copy transfer. * This is more efficient than message-streaming but only supported in * Chrome, Firefox, and Edge (not Safari). * * @internal */ export declare class TransferableStreamStrategy implements WorkerStrategy { readonly name = "stream-transfer"; execute = readonly string[], Delimiter extends string = DEFAULT_DELIMITER, Quotation extends string = DEFAULT_QUOTATION>(input: string | CSVBinary | ReadableStream, options: ParseOptions | ParseBinaryOptions | undefined, session: WorkerSession | null, engineConfig: InternalEngineConfig): AsyncIterableIterator; /** * Receive parsed records from the worker via MessageChannel. * * @param port - MessagePort to receive results from * @param signal - Optional AbortSignal for cancellation */ private receiveResults; }