UNPKG

alacritty-theme-switch

Version:
21 lines 872 B
import { ResultAsync } from "neverthrow"; import { NoThemesFoundError } from "../theme-manager/errors.js"; import { type FilePath } from "../utils/fs-utils.js"; /** * Options for the clear-themes command. */ export type ClearThemesOptions = { /** Local directory where themes are stored */ themesPath: FilePath; }; /** * Execute the clear-themes command. * * Deletes all .toml theme files from the themes directory. * Returns the original paths of all deleted files. * * @param options - Command options * @returns A ResultAsync containing the count of deleted files or an error */ export declare function clearThemesCommand(options: ClearThemesOptions): ResultAsync<string[], import("../utils/fs-errors.js").FileDeletionError | import("../utils/fs-errors.js").DirectoryNotAccessibleError | NoThemesFoundError>; //# sourceMappingURL=clear-themes.d.ts.map