import { TaggedChildren } from "../types.js"; import { RenderPreparedTParams } from "../rendering/renderPreparedT.shared.js"; import { ReactNode } from "react"; import { JsxTranslationOptions } from "gt-i18n/types"; import { JsxChildren } from "generaltranslation/types"; //#region src/utils/translation/prepareT.shared.d.ts type StripDollarPrefix = { [K in keyof T as K extends `$${infer Rest}` ? Rest : K]: T[K] }; type JsxTranslationOptions$1 = StripDollarPrefix & JsxTranslationOptions; type PreparedT = { taggedSourceChildren: TaggedChildren; sourceJsxChildren: JsxChildren; targetOptions: JsxTranslationOptions & { $format: 'JSX'; $locale: string; }; }; type RenderPreparedT = (params: RenderPreparedTParams) => ReactNode; type TProps = { children: ReactNode; _locale?: string; _enableI18n?: boolean; _renderPreparedT?: RenderPreparedT; } & JsxTranslationOptions$1; type ResolvedTProps = TProps & { _locale: string; _enableI18n: boolean; }; declare function prepareT({ sourceChildren, params, locale }: { sourceChildren: ReactNode; params: JsxTranslationOptions$1; locale: string; }): PreparedT; //#endregion export { type JsxTranslationOptions$1 as JsxTranslationOptions, type PreparedT, type RenderPreparedT, type ResolvedTProps, type TProps, prepareT }; //# sourceMappingURL=prepareT.shared.d.ts.map