import { Corpus } from "../configs/types/Corpus"; export type PlatformTools = "EDICTOR" | "TRANSLATION" | "DESIGN" | "TRANSCRIBER" | "UD" | "SYNTREES"; export type OpenDocumentParams = { page: string; corpus: Corpus | undefined; hasParameter: (corpus: Corpus, param: string) => boolean; defaultTool?: PlatformTools; ctxPath?: string; }; export type RedirectPageParams = { corpus: Corpus; uid: string; hasParameter: (corpus: Corpus, param: string) => boolean; tool?: PlatformTools; ctxPath?: string; sameWindow?: boolean; }; type EditionToolsMenu = { parameter: string; name: PlatformTools; action: string; title: string; icon: string; image?: string; path: string; }; export declare const EDITION_TOOLS: EditionToolsMenu[]; declare const ToolsUtils: { redirectPage: ({ corpus, uid, hasParameter, tool, ctxPath, sameWindow, }: RedirectPageParams) => void; getIcon: (defaultTool?: PlatformTools) => string; getImage: (defaultTool?: PlatformTools) => string | undefined; openDocument: ({ page, corpus, hasParameter, defaultTool, ctxPath, }: OpenDocumentParams) => void; getDocumentUrl: ({ page, corpus, hasParameter, defaultTool, ctxPath, }: OpenDocumentParams) => string | undefined; getTitle: (defaultTool?: PlatformTools) => string; }; export default ToolsUtils;