oasis-editor 0.0.376 → 0.0.378

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Lossless lexical view of Word field instructions. Raw text and UTF-16
3
+ * offsets are authoritative; this is not an evaluator or a complete switch
4
+ * grammar. Unknown commands and switches are retained, never executed.
5
+ */
6
+ export interface FieldInstructionToken {
7
+ kind: "word" | "quoted" | "switch";
8
+ raw: string;
9
+ value: string;
10
+ start: number;
11
+ end: number;
12
+ }
13
+ export interface ParsedFieldInstruction {
14
+ raw: string;
15
+ command: string | null;
16
+ tokens: readonly FieldInstructionToken[];
17
+ error?: "length-limit" | "token-limit" | "missing-command" | "unterminated-quote" | "invalid-switch" | "adjacent-quote";
18
+ }
19
+ export declare const MAX_FIELD_INSTRUCTION_LENGTH = 65536;
20
+ export declare function parseFieldInstruction(raw: string): ParsedFieldInstruction;