export interface DocTopic {
    slug: string;
    name: string;
    description: string;
    keywords: string[];
}
export interface DocContent {
    slug: string;
    name: string;
    description: string;
    keywords: string[];
    content: string;
}
export interface DocSection {
    heading: string;
    level: number;
    content: string;
    codeBlocks: string[];
}
export interface DocStructured {
    slug: string;
    name: string;
    description: string;
    keywords: string[];
    sections: DocSection[];
}
export interface SearchResult {
    topic: string;
    slug: string;
    section: string;
    heading: string;
    excerpt: string;
    relevance: number;
}
/**
 * List all available documentation topics, including pack-contributed ones.
 */
export declare function listTopics(): DocTopic[];
/**
 * Read a single documentation topic.
 * Checks core docs first, then falls back to pack-contributed topics.
 * @param slug - Topic slug (filename without .md)
 * @param compact - If true, return a compact LLM-friendly version
 */
export declare function readTopic(slug: string, compact?: boolean): DocContent | null;
/**
 * Read a topic and return structured sections (for JSON output).
 */
export declare function readTopicStructured(slug: string): DocStructured | null;
/**
 * Search across all documentation topics.
 * Returns matching sections with context.
 */
export declare function searchDocs(query: string): SearchResult[];
/** Registered pack doc topics. Populated by registerPackDocTopics(). */
declare const packDocTopics: Array<{
    slug: string;
    name: string;
    description: string;
    keywords: string[];
    presets: string[];
    filePath: string;
}>;
/**
 * Register doc topics from installed pack manifests.
 * These appear alongside core topics in listTopics() and readTopic().
 */
export declare function registerPackDocTopics(topics: Array<{
    slug: string;
    name: string;
    description?: string;
    keywords?: string[];
    presets?: string[];
    absoluteFile: string;
}>): void;
/**
 * List pack-contributed doc topics. Used internally by listTopics() and readTopic().
 */
export declare function getPackDocTopics(): typeof packDocTopics;
export {};
//# sourceMappingURL=index.d.ts.map