import type { Readable, Writable } from "node:stream"; import type { Option } from "@clack/prompts"; import { type SkillsRootInput } from "./core/paths.js"; export type SkillflagOptions = { skillsRoot: SkillsRootInput | readonly SkillsRootInput[]; stdin?: NodeJS.ReadableStream; stdout?: NodeJS.WritableStream; stderr?: NodeJS.WritableStream; cwd?: string; includeBundledSkill?: boolean; promptApi?: SkillflagPromptApi; }; export type SkillflagDispatchOptions = SkillflagOptions & { exit?: ((code: number) => void) | false; }; export type SkillflagPromptApi = { multiselect: (opts: { message: string; options: Option[]; required?: boolean; input?: Readable; output?: Writable; }) => Promise; isCancel: (value: unknown) => value is symbol; }; export declare const SKILLFLAG_HELP_TEXT: string; export declare function handleSkillflag(argv: string[], opts: SkillflagOptions): Promise; export declare function maybeHandleSkillflag(argv: string[], opts: SkillflagDispatchOptions): Promise; //# sourceMappingURL=skillflag.d.ts.map