import type { _WebDataSource } from "./WebDataSource.js";
import type { _NSData } from "../Foundation/NSData.js";
import type { _NSError } from "../Foundation/NSError.js";
import type { _NSString } from "../Foundation/NSString.js";
export interface _WebDocumentRepresentation {
    /**
     * Called soon after the document representation is created. The data source that is set.
     */
    setDataSource$?(dataSource: _WebDataSource): void;
    /**
     * Called when the data source has received data. The data that the data source has received. The data source that has received data.
     */
    receivedData$withDataSource$?(data: _NSData, dataSource: _WebDataSource): void;
    /**
     * Called when the data source has received an error. The error that the data source has received. The data source that has received the error.
     */
    receivedError$withDataSource$?(error: _NSError, dataSource: _WebDataSource): void;
    /**
     * Called when the data source has finished loading. The datasource that has finished loading.
     */
    finishedLoadingWithDataSource$?(dataSource: _WebDataSource): void;
    /** Returns true if the representation can provide document source. */
    canProvideDocumentSource?(): boolean;
    /**
     * Returns the textual source representation of the document. For HTML documents this is the original HTML source.
     */
    documentSource?(): _NSString;
    /** Return the title for the document. */
    title?(): _NSString;
}
