UNPKG

@mdfriday/shortcode

Version:

A flexible component-based shortcode system for Markdown content with theme support

32 lines (31 loc) 974 B
export * from './types'; export * from './base-builder'; export * from './bootstrap-builder'; export * from './tailwind-builder'; import { StyleBuilderFactory } from './types'; import { Theme } from '../types'; /** * Style builder factory registry */ export declare class StyleBuilderRegistry { private static factories; /** * Register a new style builder factory * @param name Factory name * @param factory Factory function */ static registerFactory(name: string, factory: (theme: Theme) => StyleBuilderFactory): void; /** * Get a style builder factory by name * @param name Factory name * @param theme Theme to use * @returns Style builder factory */ static getFactory(name: string, theme: Theme): StyleBuilderFactory; /** * Check if a style builder factory exists * @param name Factory name * @returns True if the factory exists */ static hasFactory(name: string): boolean; }