import { Position } from './types.editor.js'; export declare const ORDER_INCREMENT = 5; export interface BsArrayItem { /** The element's content */ element?: unknown; /** The order in which this element appears in the array */ order?: number; } export type BsArray = { [k: string]: BsArrayItem; }; /** Get an array, in proper sort order, from a BschemaArray object */ export declare function bsArrayToArray(bsArray: T): { [K in keyof T]: { id: K; order: number; element: T[K]['element']; }; }[keyof T][]; /** * Create a four-character, consonumeric key for a BschemaArray item. */ export declare function createBsArrayKey(length?: number): string; export declare function changedPosition(start: Position, change: { characters: number; }): { line: number; character: number; index: number; }; export declare function updateBsArrayOrder(sorted: BsArrayItem[]): BsArrayItem[]; /** * Given a moteId (or a mote), return `@${moteId}`. */ export declare function toMoteTag(item: string | { id: string; } | undefined): string; /** * Given a BschemaArray element ID (or an element), return `#${elementId}`. */ export declare function toArrayTag(item: string | { id: string; }): string; //# sourceMappingURL=helpers.d.ts.map