@crowdin/app-project-module
Version:
Module that generates for you all common endpoints for serving standalone Crowdin App
15 lines (14 loc) • 616 B
TypeScript
import { Request, Response, NextFunction } from 'express';
import { Config, UnauthorizedConfig } from '../types';
export declare function getAboutPageHead({ name, storeLink }: {
name: string;
storeLink?: string;
}): string;
export declare function getAboutPageOptions(config: Config | UnauthorizedConfig): Promise<{
name: string;
logo: string;
manifest: string;
storeLink: string;
showDebugLink: boolean;
}>;
export default function handle(config: Config | UnauthorizedConfig): (req: Request, res: Response, next: NextFunction) => Promise<Response<any, Record<string, any>> | undefined>;