feige
2024-11-17 0dab8829a661e27ee8b61ffe44fc9d82570741b8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// <reference types="node" />
import { URL } from 'url';
/**
 * Parses an .ini file
 * @param file The location of the .ini file
 */
export declare function parse(file: string | number | Buffer | URL): Promise<[string | null, SectionBody][]>;
export declare function parseSync(file: string | number | Buffer | URL): [string | null, SectionBody][];
export declare type SectionName = string | null;
export interface SectionBody {
    [key: string]: string;
}
export declare type ParseStringResult = Array<[SectionName, SectionBody]>;
export declare function parseString(data: string): ParseStringResult;