export type Framework = 'react' | 'vue' | 'svelte' | 'angular'; export type Integration = Framework | 'vanilla'; export type NameContext = 'name' | 'prop' | 'state' | 'event'; export type NameSpot = { context: NameContext; owner?: string }; export const FRAMEWORKS: readonly Framework[]; export const FRAMEWORK_LABELS: Record; export const INTEGRATIONS: readonly Integration[]; export const INTEGRATION_LABELS: Record; export const FRAMEWORK_WORDS: Record< 'hook' | 'hooks' | 'rerenders' | 'props' | 'renderFunction', Record >; export function frameworkName( text: string, framework: Framework, context?: NameContext, owner?: string, ): string; export function frameworkFromPath(pathname: string): Framework; export function integrationFromPath(pathname: string): Integration; export function frameworkHref(href: string, framework: Integration): string; export function inlineCodeContexts(tree: unknown): Map; export function remarkFrameworkNames(): (tree: unknown, file?: unknown) => void; export function stateIntroParts( hook: string, framework: Framework, ): Array<{ text: string; code?: boolean }>; export function frameworkCode(code: string, framework: Framework): string;