/** * @description this module is for better performance by reducing the need to invoke string.substring() and array.slice() * */ export interface ArrayString { s: string; offset: number; length: number; } export declare const wrapString: (s: string) => ArrayString; export interface ArrayData { s: string | A[]; offset: number; length: number; } export declare const wrapArray: (s: string | A[]) => ArrayData; export declare const pop: (x: ArrayData) => ArrayData; export declare const wrappedLast: (x: ArrayData) => A;