mcp-searxng
Version:
MCP server for SearXNG integration
9 lines (8 loc) • 586 B
TypeScript
export declare const URL_SECURITY_POLICY_DNS_ERROR = "URLSecurityPolicyDnsError";
export declare function isPrivateHostname(hostname: string): boolean;
export declare function isPrivateIpv4(hostname: string): boolean;
export declare function isPrivateIPv6(hostname: string): boolean;
export declare function isPrivateAddress(address: string): boolean;
export declare function assertUrlAllowed(url: URL): void;
export declare function createUrlSecurityPolicyDnsError(hostname: string): NodeJS.ErrnoException;
export declare function isUrlSecurityPolicyDnsError(error: unknown): boolean;