aboutsummaryrefslogtreecommitdiff
path: root/_mint/node_modules/editorconfig/src/lib/ini.d.ts
blob: fa185688553957a894d4a9e3be66a4d43be33384 (plain)
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;