@docusaurus/core
Version:
Easy to Maintain Open Source Documentation Websites
12 lines (11 loc) • 697 B
TypeScript
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { type ReactNode } from 'react';
import type { InterpolateProps, InterpolateValues } from '@docusaurus/Interpolate';
export declare function interpolate<Str extends string>(text: Str, values?: InterpolateValues<Str, string | number>): string;
export declare function interpolate<Str extends string, Value extends ReactNode>(text: Str, values?: InterpolateValues<Str, Value>): ReactNode;
export default function Interpolate<Str extends string>({ children, values, }: InterpolateProps<Str>): ReactNode;