import type { FormatterType } from "../formatters/types.js"; import type { SideCarOptions } from "./utils.js"; export type CLIHandlerOptions = { cmd?: string; cmdArgs: string[]; port: SideCarOptions["port"]; help?: boolean; debug?: boolean; format?: FormatterType; basePath?: SideCarOptions["basePath"]; filesToServe?: SideCarOptions["filesToServe"]; }; export type CLIHandlerReturnType = Promise | any; export type CLIHandler = ((options: CLIHandlerOptions) => CLIHandlerReturnType) | (() => CLIHandlerReturnType);