/** * Creates a backup of VTEX CMS files for a specified site. * * This function performs the following steps: * 1. Validates that a site name is provided; exits the process if not. * 2. Logs the backup process and sets up the backup directory in the current working directory. * 3. Obtains the VTEX authentication token and account information. * 4. Retrieves the list of files from the VTEX CMS for the specified site. * 5. Filters the files to include only `.css` and `.js` files (excluding `.map` files). * 6. Downloads the filtered files into the backup directory. * * @param site - The name of the site to back up. If undefined, the process will exit with an error. * @returns A Promise that resolves when the backup process is complete. */ export declare const backup: (site: string | undefined) => Promise; /** * Retrieves a list of files from a specified directory URL using a VTEX authentication token. * * @param params - An object containing the following properties: * @param params.token - The VTEX authentication token used for authorization. * @param params.url - The URL of the directory to fetch files from. * @returns A promise that resolves to an array of file names (strings) if the request is successful, or an empty array otherwise. */ export declare const getDirectoryFiles: ({ token, url }: { token: string; url: string; }) => Promise;