/** * Comment-range scanning for SSJS/JS source text. * String literals are skipped so their content is never misidentified as a comment opener. */ /** * Returns [start, end) character ranges of every comment in the source. * @param source - Source text to scan. * @returns Array of [start, end) offset pairs for each comment range. */ export declare function buildCommentRanges(source: string): Array<[number, number]>; /** * Returns true when `index` falls within any of the given comment ranges. * @param index - Character offset to test. * @param ranges - Sorted comment ranges from `buildCommentRanges`. * @returns True if the offset is inside a comment. */ export declare function isInCommentRange(index: number, ranges: Array<[number, number]>): boolean; //# sourceMappingURL=comments.d.ts.map