TeaSpeak-Client/imports/shared-app/text/bbcode.d.ts
2021-02-07 20:01:37 +01:00

15 lines
556 B
TypeScript

/// <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;