import type { _NSData } from "../Foundation/NSData.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _NSURL } from "../Foundation/NSURL.js";
export declare class _BEWebContentFilter extends _NSObject {
    static alloc(): _BEWebContentFilter;
    static new(): _BEWebContentFilter;
    init(): _BEWebContentFilter;
    /**
     * @abstract Determines whether the built-in web content filter is active. @returns YES if the built-in web content filter is active, and NO if it isn't.
     */
    static shouldEvaluateURLs(): boolean;
    /**
     * @abstract Evaluates whether a URL should be blocked and if so, provides a UTF-8 encoded HTML representation of a blocking page. @param url The URL to be evaluated. @param completionHandler The completion block to be invoked with result when evaluation is complete. Result is YES if the url should be blocked, and NO if it isn't. @discussion This method performs a lazy initialization of some objects, so the first call could take longer than subsequent calls.
     */
    evaluateURL$completionHandler$(url: _NSURL, completionHandler: ((shouldBlock: boolean, blockPageRepresentation: _NSData) => void) | null): void;
    /**
     * @abstract Adds blocked URL to built-in web content filter's allowlist. @param url The URL to be added. @param completionHandler The completion block to be called when the add operation is complete, with result of the operation. Result is YES if the url is added successfully, and NO if it isn't.
     */
    allowURL$completionHandler$(url: _NSURL, completionHandler: ((didAllow: boolean, error: _NSError) => void) | null): void;
}
