import type { Segment } from './types'; 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;