/** * Encode a header value per the transport's value-encoding rules: plain when * header-safe ASCII, otherwise the base64 sentinel form. Plain values that * would themselves look like the sentinel are encoded to avoid ambiguity. */ export declare function encodeHeaderValue(value: string): string; /** Build Mcp-Method and (when applicable) Mcp-Name for a request. */ export declare function buildStandardRequestHeaders(method: string, params: unknown): Record; interface HeaderAnnotation { readonly headerName: string; readonly path: readonly string[]; } /** * Collect `x-mcp-header` annotations that are statically reachable from the * schema root through `properties` keys only. Returns null when any * annotation in the schema violates the constraints (which makes the whole * tool definition invalid per the specification). */ export declare function collectHeaderAnnotations(inputSchema: unknown): HeaderAnnotation[] | null; /** True when the tool definition's x-mcp-header annotations are all valid. */ export declare function hasValidHeaderAnnotations(inputSchema: unknown): boolean; /** * Build `Mcp-Param-{Name}` headers for a tools/call from the most recently * obtained inputSchema. Absent or null argument values omit the header. */ export declare function buildParamHeaders(inputSchema: unknown, args: Record): Record; export {}; //# sourceMappingURL=http-headers.d.ts.map