import { NextFunction, Request, Response } from "express"; import i18next from "i18next"; export * from "./lib"; interface I18nData { language: string; store: { data: { [key: string]: unknown; }; }; } interface ExpressRequest extends Request { i18n: I18nData; } interface ExpressResponse extends Response { locals: { translations: unknown; basePath?: string; }; } interface PlainRequest { i18n: I18nData; } interface PlainResponse { locals: { translations: unknown; basePath?: string; }; } export declare function frontendUiMiddleware(req: ExpressRequest, res: ExpressResponse, next: NextFunction): void; export declare function frontendUiMiddleware(req: PlainRequest, res: PlainResponse, next: NextFunction): void; export declare const setFrontendUiTranslations: (instanceI18n: typeof i18next) => void; export declare const frontendUiMiddlewareIdentityBypass: (req: ExpressRequest, res: ExpressResponse, next: NextFunction) => void; export declare function validateTranslations(en: Record, cy: Record, path?: string): void; export declare function warnCharacterLimit(text: string, limit: number): void; export declare function addFrontendUiGlobals(nunjucksEnv: { addGlobal: (name: string, value: unknown) => void; }): void; export declare function addLanguageParam(language: string, url?: URL): string; export declare function contactUsUrl(baseUrl: string, urlToAppend: string): string | null; export declare const setBaseTranslations: (instanceI18n: typeof i18next, filePath?: string) => void; export declare const getTranslationObject: (locale: string, filepath?: string) => Record; export { default as frontendUiTranslationEn } from "../locales/en/translation.json"; export { default as frontendUiTranslationCy } from "../locales/cy/translation.json"; //# sourceMappingURL=index.d.ts.map