astro-ghostcms/.pnpm-store/v3/files/75/3b13bab0d53b14d7357e203d0ac...

4 lines
334 B
Plaintext

import type { Segment } from './types';
export declare function replace<T extends Segment<any>>(segments: T[], pattern: string | RegExp, ...replacers: (T | ((match: string) => T))[]): void;
export declare function replaceAll<T extends Segment<any>>(segments: T[], pattern: RegExp, ...replacers: (T | ((match: string) => T))[]): void;