import { Segment } from "./types"; export * from './types'; export * from './track'; export declare function getLength(segments: Segment[]): number; export declare function toString>(segments: T[]): string; export declare function create(source: string): Segment[]; export declare function replace>(segments: T[], pattern: string | RegExp, ...replacers: (T | ((match: string) => T))[]): void; export declare function replaceAll>(segments: T[], pattern: RegExp, ...replacers: (T | ((match: string) => T))[]): void; export declare function replaceSourceRange>(segments: T[], source: string | undefined, startOffset: number, endOffset: number, ...newSegments: T[]): boolean; export declare function replaceRange>(segments: T[], startOffset: number, endOffset: number, ...newSegments: T[]): void;