import type { _NSAttributedString } from "../Foundation/NSAttributedString.js";
import type { _NSObject } from "../Foundation/NSObject.js";
import type { _NSUUID } from "../Foundation/NSUUID.js";
import type { NSRange } from "../structs/NSRange.js";
export declare class _NSWritingToolsCoordinatorContext extends _NSObject {
    static alloc(): _NSWritingToolsCoordinatorContext;
    static new(): _NSWritingToolsCoordinatorContext;
    init(): _NSWritingToolsCoordinatorContext;
    /**
     * Creates a context object with the specified attributed string and range information. - Parameters: - attributedString: A string that contains some or all of the content from your view’s text storage. This initializer makes a copy of the string you provide, so you can discard the original when you’re done. - range: The portion of `attributedString` you want Writing Tools to evaluate. If you want Writing Tools to evaluate the entire string you provided, specify a range with a location of `0` and a length equal to your string’s length. If you want Writing Tools to evaluate only part of the string, provide the appropriate range in this parameter. Writing Tools suggests changes only to the range of text you specify, but it can consider text outside that range during the evaluation process. When Writing Tools asks for your view’s current selection, it’s best to create a string that includes text before and after that selection. During the evaluation process, Writing Tools can use the additional text you provided to improve the results it delivers. If you do provide additional text, set the `range` parameter to the portion of `attributedString` with the current selection. Don’t use the `range` parameter to specify the location of the text in your view’s text storage.
     */
    initWithAttributedString$range$(attributedString: _NSAttributedString, range: NSRange): _NSWritingToolsCoordinatorContext;
    /**
     * The portion of your view’s text to evaluate. The ``NSWritingToolsCoordinator/Context`` object initializes the value of this property at creation time and doesn’t change it during the course of an operation. Instead, it suggests changes to the text in the indicated range and reports those changes to your ``NSWritingToolsCoordinator/Delegate`` object. Use the methods of your delegate object to integrate those changes back into your view’s text storage. It’s your responsibility to track the location of this text in your view’s text storage object. When Writing Tools reports changes, it provides range values relative to this string. If you initialize this property with a subset of your view’s content, you must adjust any ranges that Writing Tools provides to get the correct location in your text storage.
     */
    attributedString(): _NSAttributedString;
    /** The range it was initialized with */
    range(): NSRange;
    /**
     * The unique identifier of the context object. The ``NSWritingToolsCoordinator/Context`` object initializes the value of this property at creation time. Use this value to identify the context object within your app.
     */
    identifier(): _NSUUID;
    /** The range that Writing Tools ends up using (sometimes larger than range) */
    resolvedRange(): NSRange;
}
