/**
 * Segmenter — splits a list of CommandTokens into discrete CommandSegments
 * at compound command boundaries (&&, ||, ;, |).
 *
 * Each segment carries its own token list, resolved command name, positional
 * args, flags, and the operator that connects it to the next segment.
 */
import type { CommandSegment, CommandToken } from './types.js';
/**
 * Splits an ordered list of CommandTokens into CommandSegments, splitting
 * at operator and pipe tokens (&&, ||, ;, |).
 *
 * @param tokens - The full token list from the tokenizer.
 * @returns Ordered array of CommandSegment objects.
 */
export declare function segment(tokens: CommandToken[]): CommandSegment[];
//# sourceMappingURL=segmenter.d.ts.map