import { TargetId } from "./outfitter-gsjbcta2.js"; import { Result } from "@outfitter/contracts"; /** Subset of target IDs that are valid presets for `outfitter init`. */ type InitPresetId = Extract; /** * Parses a comma-separated `--with` flag value into an array of block names. * @returns The parsed block names, or `undefined` if the flag is empty/absent. */ declare function parseBlocks(withFlag: string | undefined): readonly string[] | undefined; /** Returns `true` if the preset produces a project with a binary entry point. */ declare function isBinaryPreset(preset: InitPresetId): boolean; /** Type guard that narrows a string to {@link InitPresetId}. */ declare function isValidInitPreset(value: string): value is InitPresetId; /** * Validates and resolves a `--preset` flag value against the available preset list. * @returns The validated preset ID, `undefined` if no flag was provided, or an error for unknown presets. */ declare function resolvePresetFromFlags(presetFromFlag: string | undefined, availablePresetIds: readonly string[]): Result; export { InitPresetId, parseBlocks, isBinaryPreset, isValidInitPreset, resolvePresetFromFlags };