import * as t from '@babel/types'; import { TransformState } from '../../state/types'; import { NodePath } from '@babel/traverse'; /** * Validate useGT_callback / getGT_callback / msg() / t() * - first argument must be a statically resolvable string expression * (string literal, template literal, binary '+' concatenation, or derive() call) * - second argument, if present, $id field + $context field must be a string literal */ export declare function validateTranslationFunction(callExprPath: NodePath, state: TransformState): { errors: string[]; content?: string; context?: string; hash?: string; id?: string; maxChars?: number; format?: string; requiresReview?: boolean; hasDeriveContext?: boolean; }; /** * Validate useTranslations_callback / getTranslations_callback * - always valid (arguments can be dynamic) */ export declare function validateUseTranslationsCallback(_callExpr: t.CallExpression): { errors: string[]; }; /** * Validate useMessages_callback / getMessages_callback * - always valid */ export declare function validateUseMessagesCallback(_callExpr: t.CallExpression): { errors: string[]; }; /** * Validates if an expression uses the derive() function correctly */ export declare function validateDerive(expr: t.Expression, state: TransformState, errors: string[]): { errors: string[]; }; //# sourceMappingURL=validateTranslationFunction.d.ts.map