import type { DocsProvider } from './provider.js'; import type { DocsIndex, DocMeta, SdkVersions } from '../types.js'; /** 실제로 붙는 문서 백엔드 주소. 시작 로그가 "어디를 보고 있는지"를 정확히 말하기 위해 노출한다. */ export declare function getDocsBaseUrl(): string; /** 원격 문서 백엔드 상태 — 도구가 "결과 없음"과 "서버가 죽음"을 구분해서 말하기 위해 쓴다. */ export interface BackendStatus { down: boolean; detail?: string; } /** HTTP proxy 기반 DocsProvider — stdio 모드에서 문서 API 호출 */ export declare class HttpDocsProvider implements DocsProvider { private baseUrl; /** * 백엔드 건강 신호. **개별 문서 404 는 여기 반영하지 않는다** — 그건 "그 문서가 없다"이지 * "백엔드가 죽었다"가 아니다. 인덱스·검색·버전처럼 항상 있어야 하는 경로의 결과만 본다. * 성공을 sticky 로 두면 세션 도중 백엔드가 죽어도 영영 정상으로 보고하므로, 최근 결과를 쓴다. */ private lastHealthFailure; constructor(baseUrl?: string); backendStatus(): BackendStatus; /** trackHealth=false 로 부르면 결과가 건강 신호에 반영되지 않는다 (개별 문서 조회용). */ private fetchRaw; private fetchJson; private fetchText; getIndex(): Promise; getDoc(path: string): Promise; getSdkVersions(): Promise; getCsGuide(): Promise; searchDocs(query: string, category?: string, limit?: number): Promise; searchCsGuide(section?: string): Promise; } //# sourceMappingURL=http-provider.d.ts.map