import { FullPosition } from '../base/Position'; /** * Deep copy a string to avoid sharing the original text reference from TypeScript AST nodes. * This ensures that model objects do not implicitly depend on AST node lifecycles. */ export declare function cloneText(text: string): string; /** * Extracts source text from the given source code using the specified full position. * @param sourceText - The source code text, or undefined if not available. * @param position - The full position (start/end line/col) specifying the range to extract. * @returns The extracted source text, or undefined if: * - sourceText is undefined or empty * - position is undefined or FullPosition.DEFAULT * - position has invalid line/col values (<=0) * - position exceeds the source text boundaries */ export declare function extractSourceTextByFullPosition(sourceText: string | undefined, position: FullPosition | undefined): string | undefined; //# sourceMappingURL=StringUtils.d.ts.map