c1fb367265af57cfd45d3d1b5e55e903e395d2ee327edd7ea7132d25aa144b8616ea4a20fbac462362f491dede7445cfcfe5e14041cf79c126b8c2066365b3 617 B

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