import type { LibraryProse } from './library-prose.generated.js'; import type { LibraryEntry } from './library.js'; export { BAR_SERIES, COLOUR_NAMES } from './library-bars.js'; export { ORDER_NAMES } from './library-orders.js'; export { REQUEST_NAMES, TOP_LEVEL_NAMES } from './library-output.js'; /** * The closed list of namespaces, `language.md` 15.2. * * A dotted name whose first part is not one of these is not a namespace read at * all: it is a member of a value, and version 1 has no such thing, so the * checker can say so instead of guessing which of the two the writer meant. */ export declare const NAMESPACES: readonly string[]; /** The namespaces that exist only in a `strategy()` file, `language.md` 15.2. */ export declare const STRATEGY_NAMESPACES: readonly string[]; /** Every signature of one name, or nothing when the library has no such name. */ export declare function libraryEntries(name: string): readonly LibraryEntry[]; export declare function isLibraryName(name: string): boolean; /** Every name in the global scope, for the "did you mean" of OS2001 and OS2010. */ export declare function libraryNames(): readonly string[]; /** * Every name the library lets a script call, for OS2010's suggestion. * * OS2010 is a call to something that is not a function, so the name it offers * has to be one that is: offering `blue` for `volume(20)` would hand the reader * a second OS2010. A planned name is left out too, because calling it is OS2020, * and so is an order function outside a strategy, because calling it is OS7001. */ export declare function libraryFunctionNames(inStrategy: boolean): readonly string[]; /** The members of one namespace, spelled bare, for OS2009's suggestion. */ export declare function membersOf(namespace: string): readonly string[]; export declare function isNamespace(name: string): boolean; export declare function isColourName(name: string): boolean; /** Whether every entry of a name is only available in a `strategy()` file. */ export declare function isStrategyOnly(name: string): boolean; /** Whether the name is a bare order function, which `close` is one spelling of. */ export declare function isOrderName(name: string): boolean; /** Whether the call is one of the two higher timeframe reads of stdlib.md 15.1. */ export declare function isRequestName(name: string): boolean; /** * Whether the call declares part of the file's fixed shape. * * `input` is deliberately not in this list. Its refusal is OS3007 rather than * OS3006 because the fix is different: a plot has to move out of the branch, * and an input has to move out and be read from inside it. */ export declare function isTopLevelOnly(name: string): boolean; export type { LibraryProse } from './library-prose.generated.js'; /** * What the specification says about a name, or nothing where it says nothing. * * Two cells of the name's own row in the specification: the line on what it is * for, and the first bar it can produce a value for. Read from `stdlib.md`'s own * tables at build time, by `scripts/generate-library-prose.mjs`, and never * written down here. A description typed into this repository twice is a * description that disagrees with itself the first time either copy is edited, * and the copy an editor shows a writer is the one nobody proofreads. * * **What comes back is one line per name, not one per signature.** A name with * several signatures is described by the first row the specification states for * it, because the map is keyed by name; `close` is the case to have in mind, * where the row is the bar series rather than the order function. * * Nothing comes back for the nineteen named colours. `stdlib.md` 11.1 lists * them in a block rather than in a table and says their channel values are the * description, which `namedColour` answers. */ export declare function proseFor(name: string): LibraryProse | undefined; /** Every name the specification describes, for the check that the two agree. */ export declare function describedNames(): readonly string[]; //# sourceMappingURL=surface.d.ts.map