/** * Copyright (c) Microsoft. All rights reserved. */ import { LabelerConfigStore } from '../stores/LabelerConfigStore'; import { LineStore } from '../stores/LineStore'; import { ITokenStore } from '../types/labelerTypes'; /** * This hook calculates line infos of the labeler text, this includes line indices, token ranges and token texts * also calculates the mapping needed to update annotation ranges when passing to/from the labeler. * * @param text the labeler text * @param maxCharactersPerLine the max chars per line * @param configStore the labeler configuration store * @param tokenStoreFactory the factory to create token store from token text and index * @returns line stores of the text, index-to-token map and token-to-char map */ export declare const useCalculateLineInfos: (text: string, maxCharactersPerLine: number, configStore: LabelerConfigStore, tokenStoreFactory: (token: string, index: number) => T) => { charToTokenMap: import("../types/labelerTypes").CharToTokenMapType; tokenToCharMap: import("../types/labelerTypes").TokenToCharMapType; lineStores: LineStore[]; };