Current section

Files

Jump to
spellweaver priv bun node_modules cspell-lib dist lib util TextMap.d.ts
Raw

priv/bun/node_modules/cspell-lib/dist/lib/util/TextMap.d.ts

import type { MappedText } from '@cspell/cspell-types';
import type { Range } from '@cspell/cspell-types/Parser';
/**
* Extract a substring from a TextMap.
* @param textMap - A text range with an optional map
* @param extractRange - The range in the original document to extract
* @returns The TextMap covering extractRange
*/
export declare function extractTextMapRangeOrigin(textMap: MappedText, extractRange: Range): MappedText;
interface WithRange {
readonly range: Range;
}
export declare function doesIntersect(textMap: WithRange, rangeOrigin: Range): boolean;
export {};
//# sourceMappingURL=TextMap.d.ts.map