@kimsungwhee/apple-docs-mcp
Version:
MCP server for Apple Developer Documentation - Search iOS/macOS/SwiftUI/UIKit docs, WWDC videos, Swift/Objective-C APIs & code examples in Claude, Cursor & AI assistants
52 lines • 1.48 kB
TypeScript
/**
* Search result parsing utilities
*/
import type * as cheerio from 'cheerio';
export interface SearchResult {
title: string;
url: string;
type: string;
description: string;
framework?: string;
beta?: boolean;
}
/**
* Type mapping for search filters
*/
export declare const typeMapping: Record<string, string[]>;
/**
* Extract search result type from element classes
*/
export declare function extractResultType(element: cheerio.Cheerio<any>): string;
/**
* Check if result type is supported
*/
export declare function isResultTypeSupported(resultType: string, filterType: string): boolean;
/**
* Extract result title and URL
*/
export declare function extractTitleAndUrl(resultItem: cheerio.Cheerio<any>): {
title: string;
url: string;
};
/**
* Check if URL is supported
*/
export declare function isUrlSupported(url: string): boolean;
/**
* Extract result description
*/
export declare function extractDescription(resultItem: cheerio.Cheerio<any>): string;
/**
* Extract framework information
*/
export declare function extractFramework(resultItem: cheerio.Cheerio<any>, url: string): string | undefined;
/**
* Extract beta status
*/
export declare function extractBetaStatus(resultItem: cheerio.Cheerio<any>): boolean;
/**
* Parse a single search result
*/
export declare function parseSearchResult(element: cheerio.Cheerio<any>, filterType: string): SearchResult | null;
//# sourceMappingURL=search-result-parser.d.ts.map