import type { TransformTyped } from '../stream.model.js';
export interface TransformToNDJsonOptions {
    /**
     * If true - will throw an error on JSON.parse / stringify error
     *
     * @default true
     */
    strict?: boolean;
    /**
     * If true - will run `sortObjectDeep()` on each object to achieve deterministic sort
     *
     * @default false
     */
    sortObjects?: boolean;
    /**
     * @default `\n`
     */
    separator?: string;
}
/**
 * Transforms objects (objectMode=true) into chunks \n-terminated JSON strings (readableObjectMode=false).
 */
export declare function transformToNDJson<IN = any>(opt?: TransformToNDJsonOptions): TransformTyped<IN, string>;
