/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { NAMESPACE } from '../common/constants';
export { NAMESPACE };
export declare function tExpr(key: string, options?: Record<string, any>): string;
/**
 * The standard react-i18next hook, scoped to the workflow namespace with a
 * `client` fallback. Returns the full `{ t, i18n, ... }` object.
 *
 * Use this when you need react-i18next features beyond a plain string lookup:
 *  - the `<Trans>` component (composite/JSX keys like "Meet <1>…</1> conditions
 *    in the group"), which needs a react-i18next `t` via its `t=` prop;
 *  - the `i18n` instance itself (current language, `changeLanguage`, etc.);
 *  - parity with v1 code being ported, which used `useTranslation()`.
 *
 * Its `t` does a **plain key lookup** — it does NOT expand `{{t("…")}}` template
 * strings. For those, use {@link useT}.
 */
export declare function useWorkflowTranslation(): import("react-i18next").UseTranslationResponse<("workflow" | "client")[], undefined>;
/**
 * The FlowEngine translator (`flowEngine.context.t`), scoped to the workflow
 * namespace with a `client` fallback. Returns a bare `t(key, options?)` function
 * — the default choice for translating a single string in canvas / FlowModel UI.
 *
 * The key difference from {@link useWorkflowTranslation}'s `t`: this one also
 * **expands `{{t("…")}}` template strings**. Instruction/trigger metadata
 * (`title`, `description`, field labels) is authored as `{{t("Foo", { ns })}}`
 * templates, and `useT()('{{t("Foo")}}')` compiles them to the translation —
 * a plain react-i18next `t` would return the literal template unchanged. It of
 * course also handles plain keys (`useT()('Submit')`), so it covers both cases.
 *
 * Rule of thumb: reach for `useT` by default; switch to `useWorkflowTranslation`
 * only when you specifically need `<Trans>` or the `i18n` instance.
 */
export declare function useT(): (key: string, options?: Record<string, any>) => string;
