import type { Jack } from 'jackspeak'; import type { Commands, LoadedConfig } from './config/index.ts'; import type { Views } from './view.ts'; export type CommandUsage = () => Jack; /** * A command function that may return a result of `T`. * If the result is `undefined`, no final output will be displayed by default. */ export type CommandFn = (conf: LoadedConfig) => Promise; export type Command = { command: CommandFn; usage: CommandUsage; views: Views; }; export declare const loadCommand: (command: Commands[keyof Commands] | undefined) => Promise>;