import type { Buffer } from 'node:buffer'; export type SectionName = string | null; export interface SectionBody { [key: string]: string; } export type ParseStringResult = [SectionName, SectionBody][]; /** * Parses a string. If possible, you should always use ParseBuffer instead, * since this function does a UTF16-to-UTF8 conversion first. * * @param data String to parse. * @returns Parsed contents. Will be truncated if there was a parse error. */ export declare function parseString(data: string): ParseStringResult; /** * Parse a buffer using the faster one-ini WASM approach into something * relatively easy to deal with in JS. * * @param data UTF8-encoded bytes. * @returns Parsed contents. Will be truncated if there was a parse error. */ export declare function parseBuffer(data: Buffer): ParseStringResult;