/* eslint-disable camelcase, no-underscore-dangle */ interface JQuery { size(): number, } interface JQueryStatic { _data(element: HTMLElement, prop: string): { click: { handler(event: JQuery.Event): boolean }[] } } declare const bootbox: { confirm(question: string, callback: (okay: boolean) => void): void; }; declare module 'utils' { export const decodeHTMLEntities: (encoded: string) => string; } declare module 'translator' { interface NodebbTranslatorInstance { translateInPlace(element: HTMLElement): Promise; } } declare module 'benchpress' { export const render: (template: string, data: unknown) => Promise; } declare module 'composer' { export const active: string; export const posts: { [key: string]: { pid?: number, tid?: number, cid?: number, isMain?: boolean, } }; } declare module 'composer/formatting' { export const addButtonDispatch: ( button: string, callback: (textarea: HTMLTextAreaElement) => void ) => void; } declare let __webpack_public_path__: string; declare const config: { relative_path: string, userLang: string, defaultLang: string, }; declare const ajaxify: { data: { template: { [key: string]: boolean, }, posts?: { pid: number }[], calendarViews: string, }, updateHistory(path: string): void, }; declare const calendarEventData: import('./lib/event').Event | null; declare const app: { user: { uid: number } }; declare module 'alerts' { export const error: (err?: Error | string) => void; export const success: (message?: string) => void; } interface Socket { emit( namespace: K, data: import('./lib/sockets').SocketReqRes[K]['Request'], ack: (err: Error, response: import('./lib/sockets').SocketReqRes[K]['Response']) => void ): Socket; } declare const socket: Socket;