export interface Redirect { type: ">" | ">>"; target: string; } export interface ParsedCommand { command: string; args: string[]; redirect: Redirect | null; } export interface OperatorSegment { op: string | null; cmd: string; } /** * Extracts redirect operators from the raw input string, respecting quotes. * Returns the main command string (without redirect) and the redirect info. */ export declare function extractRedirect(input: string): { main: string; redirect: Redirect | null; }; export declare function parseCommand(input: string): ParsedCommand | null; /** * Tokenize input into tokens, handling single quotes, double quotes, * and backslash escaping. In double quotes, only \", \\, \$, \` are * special escapes; other \X sequences are kept literally. */ export declare function tokenize(input: string): string[]; export declare function splitPipe(input: string): string[]; export declare function splitOperators(input: string): OperatorSegment[]; //# sourceMappingURL=parsing.d.ts.map