/** * Completion inside a `look:` block: what the caret is in the middle of writing, * and what may be written there. * * D115 P4 R3d: the context scanner and the five answers it selects between are * one concern — a new Look completion position is a new arm here and a new case * in `lookCompletionContextAt`, and nothing else in the editor moves. */ import type { CompilerProjectEditorCompletionContext, CompilerProjectEditorCompletionResult } from "@velarscript/compiler/extension"; interface LookPropertyCompletionContext { readonly kind: "property"; readonly prefix: string; } interface LookValueCompletionContext { readonly kind: "value"; readonly property: string; readonly prefix: string; readonly quoted: boolean; } interface LookStructuralCompletionContext { readonly kind: "hook" | "media" | "target"; readonly prefix: string; } export type LookCompletionContext = LookPropertyCompletionContext | LookValueCompletionContext | LookStructuralCompletionContext; /** What may be written at a caret inside a `look:` block. */ export declare function completeLook(look: LookCompletionContext, context: CompilerProjectEditorCompletionContext): CompilerProjectEditorCompletionResult | undefined; export declare function lookCompletionContextAt(source: string, offset: number): LookCompletionContext | null; export {}; //# sourceMappingURL=look-completion.d.ts.map