import type { _NSArray } from "../Foundation/NSArray.js";
import type { _NSControlTextEditingDelegate } from "./NSControlTextEditingDelegate.js";
import type { _NSTextField } from "./NSTextField.js";
import type { _NSTextView } from "./NSTextView.js";
import type { NSRange } from "../structs/NSRange.js";
export interface _NSTextFieldDelegate extends _NSControlTextEditingDelegate {
    /**
     * Provides a customized list of candidates to the text view’s `candidateListTouchBarItem`. Invoked from `-updateCandidates`. `NSTextView` uses the candidates returned from this method and suppress its built-in candidate generation. Returning `nil` from this delegate method allows `NSTextView` to query candidates from `NSSpellChecker`. - Returns: An array of objects that represent the elements of a selection.
     */
    textField$textView$candidatesForSelectedRange$?(textField: _NSTextField, textView: _NSTextView, selectedRange: NSRange): _NSArray | null;
    /**
     * Allows customizing the candidate list queried from `NSSpellChecker`. - Returns: An array of text objects to include in a text selection.
     */
    textField$textView$candidates$forSelectedRange$?(textField: _NSTextField, textView: _NSTextView, candidates: _NSArray, selectedRange: NSRange): _NSArray;
    /**
     * Notifies the delegate that the user selected the candidate at index in `-[NSCandidateListTouchBarItem candidates]` for the text view’s `candidateListTouchBarItem`. Returns a Boolean value that indicates whether to select the text object at the index. - Parameters: - textField: The text field that sent the message. - textView: The text view that sent the message. - index: The index that represents the start of the candidate text to evaluate, or `NSNotFound` if no candidate is to be selected. - Returns: `YES` if the framework selects the text. `YES` allows `textView` to insert the candidate into the text storage if it’s `NSString`, `NSAttributedString`, or `NSTextCheckingResult`.
     */
    textField$textView$shouldSelectCandidateAtIndex$?(textField: _NSTextField, textView: _NSTextView, index: number): boolean;
}
