TeaSpeak-Client/imports/shared-app/text/bbcode.d.ts

15 lines
556 B
TypeScript
Raw Normal View History

2021-02-07 14:01:37 -05:00
/// <reference types="react" />
import "./bbcode.scss";
export declare const escapeBBCode: (text: string) => string;
export declare const allowedBBCodes: string[];
export interface BBCodeRenderOptions {
convertSingleUrls: boolean;
}
export declare const BBCodeRenderer: (props: {
message: string;
settings: BBCodeRenderOptions;
handlerId?: string;
}) => JSX.Element;
export declare function renderBBCodeAsJQuery(message: string, settings: BBCodeRenderOptions): JQuery[];
export declare function renderBBCodeAsText(message: string): string;