/** * Common types and utilities for the fragment system */ import { PdaDocData } from '../types'; export interface FragmentOptions { format?: 'json' | 'markdown'; includeDescriptions?: boolean; includeDiscriminators?: boolean; includeLinks?: boolean; sectionLevel?: number; pdas?: PdaDocData[]; } export interface Fragment { content: string; dependencies?: string[]; } export type FragmentRenderer = (data: T, options: FragmentOptions) => Fragment; /** * Utility to create a simple fragment */ export declare function createFragment(content: string, dependencies?: string[]): Fragment; /** * Utility to create header fragments with proper markdown levels */ export declare function createHeader(text: string, level?: number): string; /** * Utility to create markdown table */ export declare function createTable(headers: string[], rows: string[][]): string; /** * Utility to escape markdown special characters */ export declare function escapeMarkdown(text: string): string; /** * Default fragment options */ export declare const DEFAULT_FRAGMENT_OPTIONS: FragmentOptions; //# sourceMappingURL=common.d.ts.map