import type { ParseError, Segment } from './types.js';
interface ScanResult {
    segments: Segment[];
    errors: ParseError[];
}
export declare const VALID_KEYWORDS: string[];
/**
 * Pass-1 scanner
 *   • head  = everything before the first un-escaped '@'
 *   • each keyword = '@' + IDENT
 *   • body = runs until the next un-escaped '@' or EOS
 *   • the only escape sequence recognised is '\@'  (=> literal '@')
 */
interface ScanResult {
    segments: Segment[];
    errors: ParseError[];
}
/**
 * Pass-1 scanner (handles only '\@' escapes).
 *
 * • head   : text before first un-escaped '@'
 * • keyword: '@' IDENT
 * • body   : up to next un-escaped '@' or EOS
 */
export declare function scan(input: string): ScanResult;
export {};
