UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

11 lines (10 loc) 785 B
/// <reference types="qs" /> import { CrowdinClientRequest, UiModule } from '../types'; import { Request, Response } from 'express'; declare function maskKey(key: string): string; declare function getRequestCredentialsMasker({ moduleConfig, dataPath, }: { moduleConfig?: UiModule; dataPath?: string; }): (req: Request | CrowdinClientRequest, res: Response, next: Function) => any; declare function postRequestCredentialsMasker(moduleConfig?: UiModule, credentialsExtractor?: Function): (req: CrowdinClientRequest | Request<import("express-serve-static-core").ParamsDictionary, any, any, import("qs").ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: Function) => void; export { getRequestCredentialsMasker, postRequestCredentialsMasker, maskKey };