/** * The three lines that describe the file rather than compute anything: the * version line, the `study()` or `strategy()` declaration, and `limits()`. * * Every option of both declarations is written out here once, from * `language.md` 13.2 and 13.3, which are the only place either is defined. They * are written as ordinary library signatures so that the same argument checking * runs over them as over any other call: the option that does not exist, the * one given twice, the one given a bar-dependent value. A second, private way * of checking arguments would be a second set of behaviours to keep in step. */ import type { LimitsLine, Script, ScriptDeclaration } from '../ast/index.js'; import type { Checker } from './checker.js'; /** * Finds the file's declaration and reads the two options every later rule needs. * * This runs before anything else is checked, because OS7001 has to know whether * the file is a strategy and OS8002 has to know whether it runs on a bar that * is still moving, and both questions are asked of lines above the declaration * as readily as of lines below it. */ export declare function readHeader(checker: Checker, script: Script): void; /** The declaration's own arguments, checked where the declaration is written. */ export declare function checkDeclaration(checker: Checker, node: ScriptDeclaration): void; /** * `limits()`, which appears at most once and immediately after the declaration. * * Its values are literal numbers rather than compile-time constants, because * the host is asked whether it will run them before the program is loaded and * an `input()` is not resolved that early. */ export declare function checkLimits(checker: Checker, node: LimitsLine, script: Script, seen: boolean): void; //# sourceMappingURL=declaration.d.ts.map