@signatu/policy
Version:
signatu policy components
15 lines (14 loc) • 648 B
TypeScript
import { Language } from "@signatu/common-lib";
import { PolicyContent, PolicyContentJSON } from "./policyContent";
import { TextContent } from "./text";
export declare type MarkdownContentJSON = PolicyContentJSON;
export declare class MarkdownContent extends TextContent implements PolicyContent {
readonly value: string;
/** Rudimentary cleanups for markdown errors. */
static clean(markdown?: string): string;
static fromJSON(json: MarkdownContentJSON): MarkdownContent;
private converter;
constructor(value: string, language: Language);
equals(other: MarkdownContent): boolean;
toJSON(): MarkdownContentJSON;
}