import { ReplaceFunction } from './Replacement'; interface Options { flag?: string; find: string; replace: string | ReplaceFunction; } interface Recover { (): void; } export default function findAndReplace(target: Element | string, options: Options): Recover | string | null; export { findAndReplace, Recover };