UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

19 lines (18 loc) 880 B
import { IAnnotatedValue } from "../core/AnnotatedValue"; import ContentIndex, { AnnotationCategory, IAnnotatedIndexData } from "../core/ContentIndex"; import IFolder from "./IFolder"; export default class DistributedContentIndex { #private; get items(): string[]; get isError(): boolean; get startLength(): number; constructor(rootFolder: IFolder); getValuesFromIndexArray(indices: (IAnnotatedIndexData | number)[]): IAnnotatedValue[]; ensureLoaded(): Promise<void>; getMatches(searchString: string, wholeTermSearch?: boolean, withAnyAnnotation?: AnnotationCategory[]): Promise<IAnnotatedValue[]>; getTermMatch(term: string): Promise<any>; getDescendentStrings(term: string): Promise<{ [fullKey: string]: IAnnotatedValue[]; }>; static saveContentIndexToFolder(contentIndex: ContentIndex, folder: IFolder): Promise<void>; }