import type { Argument0, Argument1, Argument2, Argument3 } from '@akala/core'; import { Metadata, type ICommandProcessor, Container } from "@akala/commands"; declare namespace cli { interface container { /** * Adds scripts generate (and generate-metadata if `typescriptFile` is provided) to the package.json in cwd. * if `name` is provided, generated scripts names are suffixed with the provided name * @typedef args0 - name of the container to be used * @typedef args1 - path to the folder containing the commands * @typedef args2 - path to the metadata file to get generated * @param {[args0, args1, args2]} args */ dispatch(cmd: 'add-script', ...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; dispatch(cmd: 'generate', ...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; dispatch(cmd: 'generate-declaration', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'generate-metadata', ...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; dispatch(cmd: 'generate-openapi', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'generate-schema', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'generate-ts-from-schema', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'implement', ...args: [Argument0, Argument1]): ReturnType; dispatch(cmd: 'merge-coverage', ...args: [Argument0, Argument1]): ReturnType; /** * create a new command with the given `name` and `destination` (if present, cwd otherwise) */ dispatch(cmd: 'new.command', ...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; /** * create a new command configuration (json file) with the given name and destination (if present, cwd otherwise) */ dispatch(cmd: 'new.command-config', ...args: [Argument0, Argument1, Argument2]): ReturnType; /** * create a new module with the given name and destination (if present, cwd otherwise) */ dispatch(cmd: 'new.module', ...args: [Argument0, Argument1]): ReturnType; /** * create a new akala plugin at the given `source` (if present, `target` otherwise) */ dispatch(cmd: 'new.plugin', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'openapi', ...args: [Argument0, Argument1]): ReturnType; dispatch(cmd: 'register', ...args: [Argument0, Argument1, Argument2]): ReturnType; dispatch(cmd: 'serve', ...args: [Argument0, Argument1, Argument2]): ReturnType; } interface proxy { /** * Adds scripts generate (and generate-metadata if `typescriptFile` is provided) to the package.json in cwd. * if `name` is provided, generated scripts names are suffixed with the provided name * @typedef args0 - name of the container to be used * @typedef args1 - path to the folder containing the commands * @typedef args2 - path to the metadata file to get generated * @param {[args0, args1, args2]} args */ 'add-script'(...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; 'generate'(...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; 'generate-declaration'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'generate-metadata'(...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; 'generate-openapi'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'generate-schema'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'generate-ts-from-schema'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'implement'(...args: [Argument0, Argument1]): ReturnType; 'merge-coverage'(...args: [Argument0, Argument1]): ReturnType; /** * create a new command with the given `name` and `destination` (if present, cwd otherwise) */ 'new.command'(...args: [Argument0, Argument1, Argument2, Argument3]): ReturnType; /** * create a new command configuration (json file) with the given name and destination (if present, cwd otherwise) */ 'new.command-config'(...args: [Argument0, Argument1, Argument2]): ReturnType; /** * create a new module with the given name and destination (if present, cwd otherwise) */ 'new.module'(...args: [Argument0, Argument1]): ReturnType; /** * create a new akala plugin at the given `source` (if present, `target` otherwise) */ 'new.plugin'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'openapi'(...args: [Argument0, Argument1]): ReturnType; 'register'(...args: [Argument0, Argument1, Argument2]): ReturnType; 'serve'(...args: [Argument0, Argument1, Argument2]): ReturnType; } const meta: Metadata.Container; function connect(processor?: ICommandProcessor): container & Container; } export { cli as default };