import { FileSystem, Logger } from '@servicenow/sdk-project'; import type { SessionOrToken, UserSession } from '../auth'; export declare const NOW_DIR = ".now"; export declare function getSysAppXML(directory: string, fs: FileSystem): string | undefined; export declare function monitorUninstallWorkerCompletion(auth: UserSession, progress_id: string, logger: Logger): Promise; export declare function parseXml(xmlString: any): any; export declare function updateSysAppWithPackageJsonPath(fs: FileSystem, sysAppXmlPath: string, sysAppContent: string, packageJsonPath: string, sysAppVersion?: string): Promise; export declare const ignoredMetadata: string[]; export declare function logDownloadSummary(files: string[], logger: Logger, transformedMetadata?: string[], debug?: boolean): Promise; export declare function getAllFiles(dir: string, fs: FileSystem): string[]; export declare function createDownloadDir(fs: FileSystem, directory?: string): Promise; export declare function updateAppMetadata(fetchedFilesDir: string, metadataDir: string, fs: FileSystem, options: { ignoreFiles?: string[]; }): Promise; type VerifyInstallResponse = { appID: string | undefined; upgrade_finished: string | undefined; upgrade_summary: JSON; sys_class_name: string | undefined; }; export type ScopeMetadata = { sys_id: string; sys_class_name: string; active: string; }; export declare function getScopeMetadataFromInstance(scopeId: string, auth: SessionOrToken): Promise; export declare function getNowTableRequest(auth: SessionOrToken, table: string, options: { sysparm_fields?: string; sysparm_query?: string; sysparm_limit?: `${number}`; sysparm_offset?: `${number}`; sysparm_display_value?: 'true' | 'false' | 'all'; sysparm_no_count?: 'true' | 'false'; sysparm_exclude_reference_link?: 'true' | 'false'; }, logger: Logger): Promise; export declare function getInstallSummary(scope: string, auth: SessionOrToken): Promise; export declare function getAppAndSummary(scopeId: string, scope: string, auth: SessionOrToken): Promise; export declare function isSNScope(scope: string): boolean; export declare function getSummaryURL(host: string, sysId?: string): string; export declare function safeWriteFileToPath(fs: FileSystem, dirPath: string, fileName: string, content: string, encoding?: FileSystem.Encoding): void; export declare function createDirIfNotExists(dirPath: string, fs: FileSystem): void; export declare function findRoot(start: any, fs: FileSystem): any; export {};