import type { LibraryEntry } from '../core/index.js'; /** One parameter of a call, with everything a writer is shown about it. */ export interface Parameter { readonly name: string; /** The type as the checker spells it: `series number`, `array`. */ readonly type: string; /** Whether the call is refused without it, which is OS3012. */ readonly required: boolean; /** * What an omitted argument resolves to, as the specification prints it. * * Nothing where the specification states no value: `spec/default-exceptions.json` * records those and why each one has none, and a number invented to fill the * gap would be the defect that file exists to keep out. */ readonly defaultText: string | undefined; /** The closed set of strings it accepts, where the library fixes one: OS3008. */ readonly values: readonly string[]; } /** Every parameter of one signature, with the defaults from both homes. */ export declare function parametersOf(entry: LibraryEntry): readonly Parameter[]; /** * One signature, written out the way the specification's tables write one. * * `ema(src: series number, len: number) -> series number`. The parameter names, * the types and the defaults are the manifest's; nothing about the spelling is * decided here except the punctuation between them. */ export declare function signatureTextOf(entry: LibraryEntry): string; /** * The signature a half written call means, chosen by the rule that can be * applied to a half written call. * * `stdlib.md` 2.2 resolves an overload by arity first and by argument type * second, and the checker does exactly that. The second rule needs a type for * every argument, which needs a tree, which a call that is still being typed has * not got: `clear(` is two signatures until the argument arrives. So only the * first rule is applied here, and where it leaves more than one candidate the * first is taken, which is the order `stdlib.md` states them in. * * That is a narrowing of the checker's answer rather than a second opinion about * it: the tooltip may show the array signature of `clear` while the writer meant * the grid one, and the moment the argument is written the checker settles it * and `diagnose` is what says so. It is recorded in `spec/editor-narrowings.json`. */ export declare function entryAt(name: string, given: number): LibraryEntry | undefined; //# sourceMappingURL=manifest.d.ts.map