/** * Tiny shared shape helpers for the interpretation layer. They exist so the * unsafe cast to Record and the shell-word splitter each have exactly one * owner - quoting rules live in tokenize, not at call sites. */ export declare const asRecord: (value: unknown) => Record | null; export declare const readPath: (record: Record, path: string) => unknown; /** * Split a command line into shell words: whitespace separates, single or * double quotes group (so a flag inside quoted prompt text stays part of * that one word and can never be mistaken for a real flag - the D-011 * resume-anchoring rule depends on this). */ export declare const tokenize: (command: string) => string[]; /** The final path segment of a command word, without importing node:path - * argv[0] arrives as `claude`, `/usr/local/bin/claude`, or similar. */ export declare const basenameOf: (word: string) => string; //# sourceMappingURL=shape.d.ts.map