intlayer-editor
Version:
Integrate the Intlayer visual editor into your Intlayer projects, enabling CMS-like content management with multilingual support.
23 lines • 1.04 kB
TypeScript
import { type DictionaryStatus } from '@intlayer/chokidar';
import { type Dictionary } from '@intlayer/core';
import { type ResponseData } from '../utils/responseData';
import type { NextFunction, Request, Response } from 'express';
type GetDictionariesResult = ResponseData<Record<string, Dictionary>>;
/**
* Get the Intlayer configuration
*/
export declare const getDictionaries: (_req: Request, res: Response<GetDictionariesResult>, _next: NextFunction) => Promise<void>;
export type WriteContentDeclarationBody = {
dictionary: Dictionary;
};
type WriteContentDeclarationResultData = {
status: DictionaryStatus;
path: string;
};
export type WriteContentDeclarationResult = ResponseData<WriteContentDeclarationResultData>;
/**
* Adds a new dictionary to the database.
*/
export declare const writeContentDeclaration: (req: Request<any, any, WriteContentDeclarationBody>, res: Response<WriteContentDeclarationResult>, _next: NextFunction) => Promise<void>;
export {};
//# sourceMappingURL=dictionary.controller.d.ts.map