stack-element.d.ts 719 B

1234567891011121314
  1. import type { MarkdownNode } from '..';
  2. import type { JSONRecord } from '../utility';
  3. import { StackElement } from '../utility';
  4. export declare class SerializerStackElement extends StackElement<MarkdownNode> {
  5. type: string;
  6. children?: MarkdownNode[] | undefined;
  7. value?: string | undefined;
  8. props: JSONRecord;
  9. constructor(type: string, children?: MarkdownNode[] | undefined, value?: string | undefined, props?: JSONRecord);
  10. static create: (type: string, children?: MarkdownNode[], value?: string, props?: JSONRecord) => SerializerStackElement;
  11. push: (node: MarkdownNode, ...rest: MarkdownNode[]) => void;
  12. pop: () => MarkdownNode | undefined;
  13. }
  14. //# sourceMappingURL=stack-element.d.ts.map