export type SectionMap = {
    [sectionName: string]: string;
};
/**
 * Per-property rendering hints. Currently empty — source-declaration order is
 * recovered from the `.ts` AST so consumers don't need to maintain a manual
 * `sortOrder` array. Examples come from TSDoc `@example` blocks on the source.
 */
export type PropertyHints = Record<string, never>;
/** Per-interface rendering hints. */
export type InterfaceHints = Record<string, PropertyHints>;
/**
 * Cross-page link context. `typeToSlug` maps a type name to the docs slug where its anchor lives;
 * `currentSlug` is the slug of the section being rendered (omitted ⇒ all links are page-absolute).
 */
export type LinkCtx = {
    typeToSlug: Map<string, string>;
    currentSlug?: string;
};
/**
 * Load an .api.json file and extract the specified interfaces/type aliases as markdown sections.
 * Returns a map of section name → rendered markdown string. Pass `sectionToSlug` to mark each
 * top-level section's home page so emitted hrefs can stay same-page or jump cross-page.
 */
export declare const apiJsonToMd: (apiJsonPath: string, sectionNames: string[], hints?: InterfaceHints, typeToSlug?: Map<string, string>, sectionToSlug?: Map<string, string>) => SectionMap;
/**
 * Recursively collect all types referenced via `extends` chains and property types
 * that exist in the api model.
 * Returns rendered markdown for each discovered type, with headings, ready to append to the page.
 */
export declare const collectReferencedTypesMd: (apiJsonPath: string, rootNames: string[], typeToSlug?: Map<string, string>, ownerSlug?: string | undefined) => {
    md: string;
    collectedNames: string[];
};
//# sourceMappingURL=api-json-to-md.d.ts.map