This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-02 02:24:13 +03:00

23 lines
830 B
TypeScript

export declare type XMLValue = boolean | number | string | null | XMLArray | XMLObject;
export interface XMLArray extends Array<XMLValue> {
}
export interface XMLObject {
[key: string]: XMLValue | undefined;
}
export declare function logXMLString(doc: XMLObject): void;
export declare function writeXMLAsync(options: {
path: string;
xml: any;
}): Promise<void>;
export declare function writeXMLOrRemoveFileUponNoResourcesAsync(filePath: string, xml: XMLObject, { disregardComments }?: {
disregardComments?: boolean;
}): Promise<void>;
export declare function readXMLAsync(options: {
path: string;
fallback?: string | null;
}): Promise<XMLObject>;
export declare function format(manifest: any, { indentLevel, newline }?: {
indentLevel?: number | undefined;
newline?: string | undefined;
}): string;