1export interface CodeBlock {
2    start: number;
3    end: number;
4    code: string;
5}
6/**
7 * Insert contents at given offset
8 * @param srcContents source contents
9 * @param insertion content to insert
10 * @param offset `srcContents` offset to insert `insertion`
11 * @returns updated contents
12 */
13export declare function insertContentsAtOffset(srcContents: string, insertion: string, offset: number): string;
14/**
15 * Replace contents at given start and end offset
16 *
17 * @param contents source contents
18 * @param replacement new contents to place in [startOffset:endOffset]
19 * @param startOffset `contents` start offset for replacement
20 * @param endOffset `contents` end offset for replacement
21 * @returns updated contents
22 */
23export declare function replaceContentsWithOffset(contents: string, replacement: string, startOffset: number, endOffset: number): string;
24/**
25 * String.prototype.search() with offset support
26 *
27 * @param source source string to search
28 * @param regexp RegExp pattern to search
29 * @param offset start offset of `source` to search `regexp` pattern
30 * @returns The index of the first match between the regular expression and the given string, or -1 if no match was found.
31 */
32export declare function searchFromOffset(source: string, regexp: RegExp, offset: number): number;
33