/** * The first bar a call can produce a value for, and the first bar one of its * outputs can. * * This is the arithmetic of `stdlib.md`'s stated lengths at a call site: * `warmup.ts` composes warmups and this reads the lengths a call was actually * given. It is a file of its own because resolving a call and costing one in * bars are two jobs, and because a warmup that is wrong is invisible in a way * that a signature that is wrong is not: nothing fails, a line simply starts on * the wrong bar or a host is asked for the wrong amount of history. */ import type { Argument } from '../ast/index.js'; import type { Checker } from './checker.js'; import type { CheckedCall } from './checked.js'; import type { LibraryEntry } from './library.js'; import type { Warmup } from './warmup.js'; /** * The first bar this call can produce a value for. * * Every rule but `total` and `argument` composes with the arguments' own * warmups, which is what makes `sma(ema(close, 10), 10)` absent until bar 18 * rather than until bar 9. A length that is not written out as a number is a * length the checker does not have, so the answer becomes a floor. */ export declare function warmupOfCall(checker: Checker, entry: LibraryEntry, filled: readonly (Argument | undefined)[]): Warmup; /** * The first bar one output of a multi-output call can produce a value for. * * `stdlib.md` 2.3: the array itself is never absent and each element carries * its own warmup. An entry that states one length for the whole array is * stating the earliest of them, so reading an element through the array's * warmup promises a number for bars where that element is still absent, and a * read built on it fetches too little history. Where the specification states * the elements separately, the entry does too, and this is what picks one. */ export declare function warmupOfElement(checker: Checker, checked: CheckedCall, index: number): Warmup | undefined; //# sourceMappingURL=call-warmup.d.ts.map