import { ObjectPath } from '@gulujs/object-path'; import { AnySchema, Key, KeyValueSchema, Schema, SimpleSchemaType, SplitFn } from '../schema.js'; import { Converter } from '../../converter/index.js'; export type GlobalSplitFn = (value: string, path: Array) => string[]; export interface StringifyValueOptions { simpleMode?: boolean; topLevel: boolean; objectPath: ObjectPath; newline: '\n' | '\r\n'; treatFunctionAsObject?: boolean; preferQuote: "'" | '"'; preferOneLineString?: boolean; escapeTabChar?: boolean; globalStringSplitter?: GlobalSplitFn; schemaStringSplitters?: Record; integerConverter: Converter; floatConverter: Converter; datetimeConverter: Converter; strict?: boolean; } type AssertorFn = (value: any, options: StringifyValueOptions, path: Array) => void; type SerializerFn = (value: any, schema: any, options: StringifyValueOptions, path: Array) => string; export declare const valueAssertors: { [key in SimpleSchemaType]: AssertorFn; }; export declare const valueSerializers: { [key in SimpleSchemaType]: SerializerFn; }; export declare function serializeSimpleTypeValue(value: unknown, schema: Exclude, options: StringifyValueOptions, path: Array): string; export declare function tryStringifyKeyValue(value: unknown, schema: Schema, options: StringifyValueOptions, path: Array, lines: string[]): boolean; export {};