import type { Span } from '../core/index.js'; import type { Parameter } from './manifest.js'; export interface SignatureHelp { /** The callee as written: `ema`, `draw.box`, or a name the file declared. */ readonly name: string; /** Whether the library holds it or the file declares it. */ readonly of: 'library' | 'declared'; /** The signature written out, the way the specification's tables write one. */ readonly signature: string; readonly parameters: readonly Parameter[]; /** * Which parameter the cursor is in, or -1 where it is in none. * * A label decides it where one is written, because `plot(close, color = ` is * in `color` whatever position it sits in; otherwise the count of commas * decides. It is -1 past the last parameter, which is a call with more * arguments than the signature takes and is OS3001 the moment it is compiled. */ readonly active: number; /** The line the specification gives the call, where it gives one. */ readonly summary: string | undefined; /** Named in the library and not implemented in this version: OS2020. */ readonly planned: boolean; readonly refusal: string | undefined; /** The callee's own name, for a host anchoring a tooltip to the call. */ readonly span: Span; } /** * The call the cursor is inside, or nothing where it is inside none. * * Nothing is the answer for a cursor outside every bracket, and for one inside a * bracket whose callee the language does not have: a name that resolves to * neither the library nor the file is OS2001, and `diagnose` is what says so. * A tooltip that invented a signature for it would be a second opinion about * what the file declares. */ export declare function signature(source: string, offset: number): SignatureHelp | undefined; //# sourceMappingURL=signature.d.ts.map