/** * Shared types and helpers for host subcommand group leaf specs. */ import { type CommandScopeRequirement, type CommandSpec, type ProjectContext } from '@opensip-cli/core'; import type { HostRuntimeCommandSpec } from './host-runtime-access.js'; import type { CliCommandsContext } from './shared.js'; /** A host command spec — handler receives the {@link CliCommandsContext}. */ export type HostSpec = HostRuntimeCommandSpec; /** Every grouped leaf needs the entered project scope (datastore / project context). */ export declare const PROJECT_SCOPE: CommandScopeRequirement; /** The `command-result` output mode, named once (the leaves all share it). */ export declare const COMMAND_RESULT: CommandSpec['output']; export declare const RAW_STREAM: CommandSpec['output']; /** Prefer the discovered project root; fall back to literal cwd; finally process.cwd(). */ export declare function effectiveCwd(opts: { cwd?: string; projectContext?: ProjectContext; }): string; /** Re-export the host-only decorator under the established local helper name. */ export { defineHostCommand as defineCommand } from './host-runtime-access.js'; export type { HostCommandRuntimePolicy } from './host-runtime-access.js'; //# sourceMappingURL=host-subcommand-shared.d.ts.map