UNPKG

@crowdin/app-project-module

Version:

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

14 lines (13 loc) 703 B
import { Request, Response } from 'express'; import { CrowdinClientRequest, UiModule } from '../types'; 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({ secret, moduleConfig, credentialsExtractor, }: { secret: string; moduleConfig: UiModule; credentialsExtractor?: Function; }): (req: Request | CrowdinClientRequest, res: Response, next: Function) => void; export { getRequestCredentialsMasker, maskKey, postRequestCredentialsMasker };