import { CommandHelp, Help } from '@oclif/core'; import type { Command } from '@oclif/core'; type HelpSectionBody = Parameters[1]; /** * Custom command-help renderer that relocates the `[env: ...]` metadata to the * end of a flag's description instead of the front. * * Since oclif 4.8, flag help renders the backing environment variable inline * *before* the description, e.g.: * * -j, --json [env: SHOPIFY_FLAG_JSON] Output the result as JSON. * * Because Shopify CLI's `SHOPIFY_FLAG_*` names are long, that pushes the actual * description far to the right and hurts readability. We keep the information * (it's useful for scripting and agents) but move it to the end: * * -j, --json * Output the result as JSON. * [env: SHOPIFY_FLAG_JSON] * * We do this by cloning each flag, clearing its `env`, and appending the env * label as a trailing summary line before delegating to oclif's own `flags()` * renderer. Flag sections then use oclif's multiline list layout so long env * labels get the full terminal width instead of being split inside the name. */ export declare class ShopifyCommandHelp extends CommandHelp { section(header: string, body: HelpSectionBody): string; protected description(): string | undefined; protected flags(flags: Command.Flag.Any[]): [string, string | undefined][] | undefined; } /** * Custom help class, wired up via `oclif.helpClass` in this package's * `package.json`. Uses {@link ShopifyCommandHelp} for text and the help result * contract when oclif handles `--help` in JSON mode before command execution. */ export default class ShopifyHelp extends Help { protected CommandHelpClass: typeof ShopifyCommandHelp; showCommandHelp(command: Command.Loadable): Promise; showHelp(argv: string[]): Promise; } export {};