import { ProcedureField } from '@makeflow/types'; import { Dict } from 'tslang'; export declare type ValidValue = string | number | boolean; export declare type CommandConfigParameter = CommandConfigParameterConfig | string; export declare type CommandConfigOptionsConfig = ValidValue | CommandConfigOptionsEnvConfig; export interface CommandConfigParameterConfig { name: string; displayName?: string; field?: ProcedureField.BuiltInProcedureFieldType; fieldData?: unknown; required: boolean; } export interface ICommandConfigOptionsConfig { type: string; key: string; required: boolean; } export interface CommandConfigOptionsEnvConfig extends ICommandConfigOptionsConfig { type: 'env'; } export declare type CommandConfigOptions = Dict; export declare type CommandConfigStdOutConfig = { type: 'mash'; } | { type: 'live'; }; export interface CommandConfig { displayName: string; name: string; type: string; source: string; manual: boolean; stdoutConfig?: CommandConfigStdOutConfig; parameters?: CommandConfigParameter[]; options?: CommandConfigOptions; } export declare type CommandParameters = Dict; export declare type CommandOptions = Dict; export interface CommandExecuteResult { output?: string; error?: string; } export interface Command { id: number; name: string; type: string; source: string; manual: boolean; parameters?: CommandParameters; deniedParameters?: CommandParameters; from?: string; createdAt: number; executedAt?: number; result?: CommandExecuteResult; }