import { Command, Config } from '@oclif/core'; /** * Optional lazy command loader function. * If set, ShopifyConfig will use it to load individual commands on demand * instead of importing the entire COMMANDS module (which triggers loading all packages). */ export type LazyCommandLoader = (id: string) => Promise; /** * Subclass of oclif's Config that loads command classes on demand for faster CLI startup. */ export declare class ShopifyConfig extends Config { private lazyCommandLoader?; /** * Set a lazy command loader that will be used to load individual command classes on demand, * bypassing the default oclif behavior of importing the entire COMMANDS module. * * @param loader - The lazy command loader function. */ setLazyCommandLoader(loader: LazyCommandLoader): void; /** * Override runCommand to use lazy loading when available. * Instead of calling cmd.load() which triggers loading ALL commands via index.js, * we directly import only the needed command module. * * @param id - The command ID to run. * @param argv - The arguments to pass to the command. * @param cachedCommand - An optional cached command loadable. * @returns The command result. */ runCommand(id: string, argv?: string[], cachedCommand?: Command.Loadable | null): Promise; }