@gulujs/toml
Version:
TOML parser and serializer
14 lines (13 loc) • 830 B
TypeScript
import { ParserOptions } from './parser/index.js';
import { Schema, SchemaModeSerializerOptions, SimpleModeSerializerOptions } from './serializer/index.js';
export declare const version = "1.0.0";
export { ParserOptions } from './parser/index.js';
export { InvalidValueError, TableObjectError } from './errors/index.js';
export { TableComment } from './table-object/index.js';
export * from './date.js';
export * from './converter/index.js';
export * from './serializer/schema.js';
export type SerializerOptions = SimpleModeSerializerOptions | SchemaModeSerializerOptions;
export declare function parse<T = Record<string, unknown>>(source: string, options?: ParserOptions): T;
export declare function stringify(obj: object, options?: SerializerOptions): string;
export declare function isValidSchema(schemata: Schema[]): boolean;