UNPKG

n8n

Version:

n8n Workflow Automation Tool

18 lines (17 loc) 744 B
import { GlobalConfig } from '@n8n/config'; import type { Request } from 'express'; import { CredentialTypes } from '../credential-types'; export declare const CREDENTIAL_TRANSLATIONS_DIR = "n8n-nodes-base/dist/credentials/translations"; export declare const NODE_HEADERS_PATH: string; export declare namespace TranslationRequest { type Credential = Request<{}, {}, {}, { credentialType: string; }>; } export declare class TranslationController { private readonly credentialTypes; private readonly globalConfig; constructor(credentialTypes: CredentialTypes, globalConfig: GlobalConfig); getCredentialTranslation(req: TranslationRequest.Credential): Promise<any>; getNodeTranslationHeaders(): Promise<any>; }