/** * Photon CLI Runner * * Allows direct invocation of Photon methods from the command line * Example: photon cli lg-remote discover */ import { OutputFormat } from './cli-formatter.js'; import { type PhotonIntentMeta } from './auto-ui/types.js'; export interface MethodInfo { name: string; params: { name: string; type: string; optional: boolean; description?: string; label?: string; example?: string; enum?: string[]; }[]; description?: string; format?: OutputFormat; intent?: PhotonIntentMeta; readOnlyHint?: boolean; destructiveHint?: boolean; idempotentHint?: boolean; openWorldHint?: boolean; buttonLabel?: string; scheduled?: string; webhook?: boolean; } /** * Parse CLI arguments into method parameters */ export declare function parseCliArgs(args: string[], params: MethodInfo['params']): Record; export declare function methodRequiresInput(method: MethodInfo): boolean; export declare function isDestructiveMethod(method: MethodInfo): boolean; export declare function getMethodFormatHint(method: MethodInfo): OutputFormat | undefined; export declare function createCliInvocationSessionId(photonName: string): string; /** * List all methods in a photon (standard CLI help format) */ export declare function listMethods(photonName: string): Promise; /** * Run a photon method from CLI */ export declare function runMethod(photonName: string, methodName: string, args: string[], workingDir?: string): Promise; //# sourceMappingURL=photon-cli-runner.d.ts.map