/** * Minimal TOML utilities used by AXM renderers and package metadata readers. * * @experimental All exports from this module are unstable and may change without notice. * @packageDocumentation */ export interface TomlStringEntry { readonly key: string; readonly value: string; } /** * Return the raw body for a TOML section. */ export declare const readTomlSection: (content: string, sectionName: string) => string | undefined; /** * Extract key/value pairs whose value is a simple quoted TOML string. */ export declare const parseTomlStringEntries: (content: string, keyPattern?: string) => ReadonlyArray; /** * Extract quoted strings from a TOML array body. */ export declare const extractTomlQuotedStrings: (content: string) => ReadonlyArray; /** * Serialize a TOML key, quoting keys that are not bare TOML keys. */ export declare const stringifyTomlKey: (key: string) => string; /** * Serialize a TOML scalar or array value. */ export declare const stringifyTomlValue: (value: unknown) => string; /** * Serialize a record as TOML lines. Nested records become TOML tables. */ export declare const stringifyTomlLines: (object: Readonly>, path?: ReadonlyArray) => ReadonlyArray; /** * Serialize a record as a TOML document. */ export declare const stringifyToml: (object: Readonly>) => string; /** * Parse a TOML quoted string using JSON-compatible escapes. */ export declare const parseTomlInlineString: (value: string) => string | undefined; /** * Parse the inline array-of-tables subset used for AXM package metadata. */ export declare const parseTomlInlineTableArray: (rawValue: string) => unknown; /** * Parse the scalar and inline-table-array TOML subset used by package metadata readers. */ export declare const parseTomlValue: (rawValue: string) => unknown; //# sourceMappingURL=index.d.ts.map