# The PEP 484 type hints stub file for the _gui module.
#
# Generated by SIP 6.9.1


import collections, re, typing, enum

try:
    from warnings import deprecated
except ImportError:
    pass

import PyQt6.sip

from PyQt6 import QtCore
from PyQt6 import QtXml
from PyQt6 import QtNetwork
from PyQt6 import QtGui
from PyQt6 import QtWidgets
from PyQt6 import QtSql
from PyQt6 import QtPrintSupport
from PyQt6 import QtPositioning
from PyQt6 import QtSerialPort
from qgis import _core
from PyQt6 import QtMultimedia
from PyQt6 import Qsci

# Support for QDate, QDateTime and QTime.
import datetime

# Convenient type aliases.
PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]


class QgisInterface(QtCore.QObject):

    def __init__(self) -> None: ...

    layerSavedAs: typing.ClassVar[QtCore.pyqtSignal]
    newProjectCreated: typing.ClassVar[QtCore.pyqtSignal]
    projectRead: typing.ClassVar[QtCore.pyqtSignal]
    initializationCompleted: typing.ClassVar[QtCore.pyqtSignal]
    layoutDesignerClosed: typing.ClassVar[QtCore.pyqtSignal]
    layoutDesignerWillBeClosed: typing.ClassVar[QtCore.pyqtSignal]
    layoutDesignerOpened: typing.ClassVar[QtCore.pyqtSignal]
    currentThemeChanged: typing.ClassVar[QtCore.pyqtSignal]
    currentLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    def blockActiveLayerChanges(self, blocked: bool) -> None: ...
    @deprecated("""""")
    def setGpsPanelConnection(self, connection: typing.Optional[_core.QgsGpsConnection]) -> None: ...
    def browserModel(self) -> typing.Optional['QgsBrowserGuiModel']: ...
    def askForDatumTransform(self, sourceCrs: _core.QgsCoordinateReferenceSystem, destinationCrs: _core.QgsCoordinateReferenceSystem) -> bool: ...
    def invalidateLocatorResults(self) -> None: ...
    def deregisterLocatorFilter(self, filter: typing.Optional[_core.QgsLocatorFilter]) -> None: ...
    def registerLocatorFilter(self, filter: typing.Optional[_core.QgsLocatorFilter]) -> None: ...
    def locatorSearch(self, searchText: typing.Optional[str]) -> None: ...
    def preloadForm(self, uifile: typing.Optional[str]) -> None: ...
    def getFeatureForm(self, l: typing.Optional[_core.QgsVectorLayer], f: _core.QgsFeature) -> typing.Optional['QgsAttributeDialog']: ...
    def openFeatureForm(self, l: typing.Optional[_core.QgsVectorLayer], f: _core.QgsFeature, updateFeatureOnly: bool = ..., showModal: bool = ...) -> bool: ...
    @deprecated("""""")
    def openURL(self, url: typing.Optional[str], useQgisDocDirectory: bool = ...) -> None: ...
    def unregisterCustomLayoutDropHandler(self, handler: typing.Optional['QgsLayoutCustomDropHandler']) -> None: ...
    def registerCustomLayoutDropHandler(self, handler: typing.Optional['QgsLayoutCustomDropHandler']) -> None: ...
    def unregisterCustomProjectOpenHandler(self, handler: typing.Optional['QgsCustomProjectOpenHandler']) -> None: ...
    def registerCustomProjectOpenHandler(self, handler: typing.Optional['QgsCustomProjectOpenHandler']) -> None: ...
    def unregisterCustomDropHandler(self, handler: typing.Optional['QgsCustomDropHandler']) -> None: ...
    def registerCustomDropHandler(self, handler: typing.Optional['QgsCustomDropHandler']) -> None: ...
    def unregisterMapToolHandler(self, handler: typing.Optional['QgsAbstractMapToolHandler']) -> None: ...
    def registerMapToolHandler(self, handler: typing.Optional['QgsAbstractMapToolHandler']) -> None: ...
    def unregisterApplicationExitBlocker(self, blocker: typing.Optional['QgsApplicationExitBlockerInterface']) -> None: ...
    def registerApplicationExitBlocker(self, blocker: typing.Optional['QgsApplicationExitBlockerInterface']) -> None: ...
    def showApiDocumentation(self, api: _core.Qgis.DocumentationApi = ..., browser: _core.Qgis.DocumentationBrowser = ..., object: typing.Optional[str] = ..., module: typing.Optional[str] = ...) -> None: ...
    def unregisterDevToolWidgetFactory(self, factory: typing.Optional['QgsDevToolWidgetFactory']) -> None: ...
    def registerDevToolWidgetFactory(self, factory: typing.Optional['QgsDevToolWidgetFactory']) -> None: ...
    def unregisterProjectPropertiesWidgetFactory(self, factory: typing.Optional['QgsOptionsWidgetFactory']) -> None: ...
    def registerProjectPropertiesWidgetFactory(self, factory: typing.Optional['QgsOptionsWidgetFactory']) -> None: ...
    def unregisterOptionsWidgetFactory(self, factory: typing.Optional['QgsOptionsWidgetFactory']) -> None: ...
    def registerOptionsWidgetFactory(self, factory: typing.Optional['QgsOptionsWidgetFactory']) -> None: ...
    def unregisterMapLayerConfigWidgetFactory(self, factory: typing.Optional['QgsMapLayerConfigWidgetFactory']) -> None: ...
    def registerMapLayerConfigWidgetFactory(self, factory: typing.Optional['QgsMapLayerConfigWidgetFactory']) -> None: ...
    def unregisterMainWindowAction(self, action: typing.Optional[QtGui.QAction]) -> bool: ...
    def registerMainWindowAction(self, action: typing.Optional[QtGui.QAction], defaultShortcut: typing.Optional[str]) -> bool: ...
    def removeWindow(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def addWindow(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def showAttributeTable(self, l: typing.Optional[_core.QgsVectorLayer], filterExpression: typing.Optional[str] = ...) -> typing.Optional[QtWidgets.QDialog]: ...
    def showLayerProperties(self, l: typing.Optional[_core.QgsMapLayer], page: typing.Optional[str] = ...) -> None: ...
    def removeDockWidget(self, dockwidget: typing.Optional[QtWidgets.QDockWidget]) -> None: ...
    def addTabifiedDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: typing.Optional[QtWidgets.QDockWidget], tabifyWith: collections.abc.Iterable[typing.Optional[str]] = ..., raiseTab: bool = ...) -> None: ...
    def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dockwidget: typing.Optional[QtWidgets.QDockWidget]) -> None: ...
    def removePluginMeshMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToMeshMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def removePluginWebMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToWebMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def removePluginVectorMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToVectorMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def removePluginRasterMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToRasterMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def removePluginDatabaseMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToDatabaseMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def removeAddLayerAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def insertAddLayerAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def removePluginMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def addPluginToMenu(self, name: typing.Optional[str], action: typing.Optional[QtGui.QAction]) -> None: ...
    def saveStyleSheetOptions(self, opts: dict[typing.Optional[str], typing.Any]) -> None: ...
    def buildStyleSheet(self, opts: dict[typing.Optional[str], typing.Any]) -> None: ...
    def showProjectPropertiesDialog(self, currentPage: typing.Optional[str] = ...) -> None: ...
    def showOptionsDialog(self, parent: typing.Optional[QtWidgets.QWidget] = ..., currentPage: typing.Optional[str] = ...) -> None: ...
    def openLayoutDesigner(self, layout: typing.Optional[_core.QgsMasterLayoutInterface]) -> typing.Optional['QgsLayoutDesignerInterface']: ...
    def showLayoutManager(self) -> None: ...
    def addUserInputWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def openMessageLog(self, tabName: typing.Optional[str] = ...) -> None: ...
    @typing.overload
    def addToolBar(self, name: typing.Optional[str]) -> typing.Optional[QtWidgets.QToolBar]: ...
    @typing.overload
    def addToolBar(self, toolbar: typing.Optional[QtWidgets.QToolBar], area: QtCore.Qt.ToolBarArea = ...) -> None: ...
    def removeWebToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> None: ...
    def addWebToolBarWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtGui.QAction]: ...
    def addWebToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> int: ...
    def removeDatabaseToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> None: ...
    def addDatabaseToolBarWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtGui.QAction]: ...
    def addDatabaseToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> int: ...
    def removeVectorToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> None: ...
    def addVectorToolBarWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtGui.QAction]: ...
    def addVectorToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> int: ...
    def removeRasterToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> None: ...
    def addRasterToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> int: ...
    def addRasterToolBarWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtGui.QAction]: ...
    def removeToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> None: ...
    def addToolBarWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtGui.QAction]: ...
    def addToolBarIcon(self, qAction: typing.Optional[QtGui.QAction]) -> int: ...
    def pasteFromClipboard(self, a0: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def copySelectionToClipboard(self, a0: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setActiveLayer(self, a0: typing.Optional[_core.QgsMapLayer]) -> bool: ...
    def reloadConnections(self) -> None: ...
    def newProject(self, promptToSaveFlag: bool = ...) -> bool: ...
    def addProject(self, project: typing.Optional[str]) -> bool: ...
    def addTiledSceneLayer(self, url: typing.Optional[str], baseName: typing.Optional[str], providerKey: typing.Optional[str]) -> typing.Optional[_core.QgsTiledSceneLayer]: ...
    def addPointCloudLayer(self, url: typing.Optional[str], baseName: typing.Optional[str], providerKey: typing.Optional[str]) -> typing.Optional[_core.QgsPointCloudLayer]: ...
    def addVectorTileLayer(self, url: typing.Optional[str], baseName: typing.Optional[str]) -> typing.Optional[_core.QgsVectorTileLayer]: ...
    def addMeshLayer(self, url: typing.Optional[str], baseName: typing.Optional[str], providerKey: typing.Optional[str]) -> typing.Optional[_core.QgsMeshLayer]: ...
    @typing.overload
    def addRasterLayer(self, rasterLayerPath: typing.Optional[str], baseName: typing.Optional[str] = ...) -> typing.Optional[_core.QgsRasterLayer]: ...
    @typing.overload
    def addRasterLayer(self, url: typing.Optional[str], layerName: typing.Optional[str], providerKey: typing.Optional[str]) -> typing.Optional[_core.QgsRasterLayer]: ...
    def addVectorLayer(self, vectorLayerPath: typing.Optional[str], baseName: typing.Optional[str], providerKey: typing.Optional[str]) -> typing.Optional[_core.QgsVectorLayer]: ...
    def zoomToActiveLayer(self) -> None: ...
    def zoomToNext(self) -> None: ...
    def zoomToPrevious(self) -> None: ...
    def zoomFull(self) -> None: ...
    def userProfileManager(self) -> typing.Optional[_core.QgsUserProfileManager]: ...
    def layerTreeInsertionPoint(self) -> _core.QgsLayerTreeRegistryBridge.InsertionPoint: ...
    def takeAppScreenShots(self, saveDirectory: typing.Optional[str], categories: int = ...) -> None: ...
    def statusBarIface(self) -> typing.Optional['QgsStatusBar']: ...
    def messageTimeout(self) -> int: ...
    def vectorLayerTools(self) -> typing.Optional[_core.QgsVectorLayerTools]: ...
    @deprecated("""""")
    def actionRegularPolygonCenterCorner(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRegularPolygonCenterPoint(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRegularPolygon2Points(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRectangle3PointsProjected(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRectangle3PointsDistance(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRectangleExtent(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionRectangleCenterPoint(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionEllipseFoci(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionEllipseExtent(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionEllipseCenterPoint(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionEllipseCenter2Points(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionCircleCenterPoint(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionCircle2TangentsPoint(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionCircle3Tangents(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionCircle3Points(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionCircle2Points(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAbout(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCheckQgisVersion(self) -> typing.Optional[QtGui.QAction]: ...
    def actionQgisHomePage(self) -> typing.Optional[QtGui.QAction]: ...
    def actionHelpContents(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCustomProjection(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOptions(self) -> typing.Optional[QtGui.QAction]: ...
    def actionToggleFullScreen(self) -> typing.Optional[QtGui.QAction]: ...
    def actionShowPythonDialog(self) -> typing.Optional[QtGui.QAction]: ...
    def actionPluginListSeparator(self) -> typing.Optional[QtGui.QAction]: ...
    def actionManagePlugins(self) -> typing.Optional[QtGui.QAction]: ...
    def actionShowSelectedLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionHideDeselectedLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionToggleSelectedLayersIndependently(self) -> typing.Optional[QtGui.QAction]: ...
    def actionToggleSelectedLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionHideSelectedLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionShowAllLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionHideAllLayers(self) -> typing.Optional[QtGui.QAction]: ...
    def actionRemoveAllFromOverview(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddAllToOverview(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddToOverview(self) -> typing.Optional[QtGui.QAction]: ...
    def actionLayerProperties(self) -> typing.Optional[QtGui.QAction]: ...
    def actionDuplicateLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionLayerSaveAs(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCancelAllEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCancelEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionRollbackAllEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionRollbackEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveAllEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAllEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveActiveLayerEdits(self) -> typing.Optional[QtGui.QAction]: ...
    def actionToggleEditing(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOpenStatisticalSummary(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOpenFieldCalculator(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOpenTable(self) -> typing.Optional[QtGui.QAction]: ...
    def actionPasteLayerStyle(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCopyLayerStyle(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddAmsLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddAfsLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddPointCloudLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddVectorTileLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddXyzLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddWmsLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddPgLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddRasterLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddOgrLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionNewVectorLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionDraw(self) -> typing.Optional[QtGui.QAction]: ...
    def actionShowBookmarks(self) -> typing.Optional[QtGui.QAction]: ...
    def actionNewBookmark(self) -> typing.Optional[QtGui.QAction]: ...
    def actionMapTips(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomActualSize(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomNext(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomLast(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomToSelected(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomToLayers(self) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionZoomToLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomFullExtent(self) -> typing.Optional[QtGui.QAction]: ...
    def actionMeasureArea(self) -> typing.Optional[QtGui.QAction]: ...
    def actionMeasure(self) -> typing.Optional[QtGui.QAction]: ...
    def actionFeatureAction(self) -> typing.Optional[QtGui.QAction]: ...
    def actionIdentify(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSelectRadius(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSelectFreehand(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSelectPolygon(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSelectRectangle(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSelect(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomOut(self) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomIn(self) -> typing.Optional[QtGui.QAction]: ...
    def actionPanToSelected(self) -> typing.Optional[QtGui.QAction]: ...
    def actionPan(self) -> typing.Optional[QtGui.QAction]: ...
    def mapToolActionGroup(self) -> typing.Optional[QtGui.QActionGroup]: ...
    def actionVertexToolActiveLayer(self) -> typing.Optional[QtGui.QAction]: ...
    def actionVertexTool(self) -> typing.Optional[QtGui.QAction]: ...
    def actionDeletePart(self) -> typing.Optional[QtGui.QAction]: ...
    def actionDeleteRing(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSimplifyFeature(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddPart(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddRing(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSplitParts(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSplitFeatures(self) -> typing.Optional[QtGui.QAction]: ...
    def actionMoveFeature(self) -> typing.Optional[QtGui.QAction]: ...
    def actionDeleteSelected(self) -> typing.Optional[QtGui.QAction]: ...
    def actionAddFeature(self) -> typing.Optional[QtGui.QAction]: ...
    def actionPasteFeatures(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCopyFeatures(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCutFeatures(self) -> typing.Optional[QtGui.QAction]: ...
    def actionExit(self) -> typing.Optional[QtGui.QAction]: ...
    def actionShowLayoutManager(self) -> typing.Optional[QtGui.QAction]: ...
    def actionCreatePrintLayout(self) -> typing.Optional[QtGui.QAction]: ...
    def actionProjectProperties(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveMapAsImage(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveProjectAs(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveProject(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOpenProject(self) -> typing.Optional[QtGui.QAction]: ...
    def actionNewProject(self) -> typing.Optional[QtGui.QAction]: ...
    def webToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def databaseToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def vectorToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def rasterToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def helpToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def pluginToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def selectionToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def attributesToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def shapeDigitizeToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def advancedDigitizeToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def digitizeToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def mapNavToolToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def openDataSourceManagerPage(self, pageName: typing.Optional[str]) -> None: ...
    def dataSourceManagerToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def layerToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def fileToolBar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def helpMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def windowMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def firstRightStandardMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def meshMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def webMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def vectorMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def databaseMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def rasterMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def pluginHelpMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def pluginMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def settingsMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def addLayerMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def newLayerMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def layerMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def viewMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def editMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def createProjectModelSubMenu(self, title: typing.Optional[str]) -> typing.Optional[QtWidgets.QMenu]: ...
    def projectModelsMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def removeProjectExportAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def addProjectExportAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def removeProjectImportAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def addProjectImportAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def projectImportExportMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def projectMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def cadDockWidget(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget']: ...
    def defaultStyleSheetFont(self) -> QtGui.QFont: ...
    def defaultStyleSheetOptions(self) -> dict[str, typing.Any]: ...
    def openLayoutDesigners(self) -> list['QgsLayoutDesignerInterface']: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def mainWindow(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def layerTreeCanvasBridge(self) -> typing.Optional['QgsLayerTreeMapCanvasBridge']: ...
    def activeDecorations(self) -> list[_core.QgsMapDecoration]: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def activeLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def editableLayers(self, modified: bool = ...) -> list[_core.QgsMapLayer]: ...
    def iconSize(self, dockedToolbar: bool = ...) -> QtCore.QSize: ...
    def closeMapCanvas3D(self, name: typing.Optional[str]) -> None: ...
    def createNewMapCanvas3D(self, name: typing.Optional[str], sceneMode: _core.Qgis.SceneMode = ...) -> typing.Optional[Qgs3DMapCanvas]: ...
    def mapCanvases3D(self) -> list[Qgs3DMapCanvas]: ...
    def closeMapCanvas(self, name: typing.Optional[str]) -> None: ...
    def createNewMapCanvas(self, name: typing.Optional[str]) -> typing.Optional['QgsMapCanvas']: ...
    def mapCanvases(self) -> list['QgsMapCanvas']: ...
    def removeCustomActionForLayerType(self, action: typing.Optional[QtGui.QAction]) -> bool: ...
    def addCustomActionForLayer(self, action: typing.Optional[QtGui.QAction], layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def addCustomActionForLayerType(self, action: typing.Optional[QtGui.QAction], menu: typing.Optional[str], type: _core.Qgis.LayerType, allLayers: bool) -> None: ...
    def gpsTools(self) -> typing.Optional['QgsGpsToolsInterface']: ...
    def layerTreeView(self) -> typing.Optional['QgsLayerTreeView']: ...
    def pluginManagerInterface(self) -> typing.Optional['QgsPluginManagerInterface']: ...


class Qgs3DSymbolWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def symbolType(self) -> str: ...
    def symbol(self) -> typing.Optional[_core.QgsAbstract3DSymbol]: ...
    def setSymbol(self, symbol: typing.Optional[_core.QgsAbstract3DSymbol], layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class Qgs3DSymbolDialog(QtWidgets.QDialog):

    def __init__(self, symbol: typing.Optional[_core.QgsAbstract3DSymbol], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def symbol(self) -> typing.Optional[_core.QgsAbstract3DSymbol]: ...


class QgsAbstractDataSourceWidget(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., widgetMode: _core.QgsProviderRegistry.WidgetMode = ...) -> None: ...

    def addButton(self) -> typing.Optional[QtWidgets.QPushButton]: ...
    def setupButtons(self, buttonBox: typing.Optional[QtWidgets.QDialogButtonBox]) -> None: ...
    def browserModel(self) -> typing.Optional[_core.QgsBrowserModel]: ...
    def widgetMode(self) -> _core.QgsProviderRegistry.WidgetMode: ...
    pushMessage: typing.ClassVar[QtCore.pyqtSignal]
    enableButtons: typing.ClassVar[QtCore.pyqtSignal]
    progressMessage: typing.ClassVar[QtCore.pyqtSignal]
    progress: typing.ClassVar[QtCore.pyqtSignal]
    replaceVectorLayer: typing.ClassVar[QtCore.pyqtSignal]
    addVectorLayers: typing.ClassVar[QtCore.pyqtSignal]
    addLayer: typing.ClassVar[QtCore.pyqtSignal]
    addPointCloudLayer: typing.ClassVar[QtCore.pyqtSignal]
    addVectorTileLayer: typing.ClassVar[QtCore.pyqtSignal]
    addMeshLayer: typing.ClassVar[QtCore.pyqtSignal]
    addVectorLayer: typing.ClassVar[QtCore.pyqtSignal]
    addRasterLayers: typing.ClassVar[QtCore.pyqtSignal]
    addRasterLayer: typing.ClassVar[QtCore.pyqtSignal]
    addDatabaseLayers: typing.ClassVar[QtCore.pyqtSignal]
    connectionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def configureFromUri(self, uri: typing.Optional[str]) -> bool: ...
    def reset(self) -> None: ...
    def addButtonClicked(self) -> None: ...
    def refresh(self) -> None: ...
    def setMapCanvas(self, mapCanvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def setBrowserModel(self, model: typing.Optional[_core.QgsBrowserModel]) -> None: ...


class QgsAbstractMapToolHandler(PyQt6.sip.wrapper):

    class Context(PyQt6.sip.wrapper):

        dummy = ... # type: bool

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsAbstractMapToolHandler.Context') -> None: ...

    @typing.overload
    def __init__(self, tool: typing.Optional['QgsMapTool'], action: typing.Optional[QtGui.QAction]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAbstractMapToolHandler') -> None: ...

    def setLayerForTool(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def isCompatibleWithLayer(self, layer: typing.Optional[_core.QgsMapLayer], context: 'QgsAbstractMapToolHandler.Context') -> bool: ...
    def action(self) -> typing.Optional[QtGui.QAction]: ...
    def mapTool(self) -> typing.Optional['QgsMapTool']: ...


class QgsMapCanvasItem(QtWidgets.QGraphicsItem):

    def __init__(self, mapCanvas: typing.Optional['QgsMapCanvas']) -> None: ...

    def toCanvasCoordinates(self, point: _core.QgsPointXY) -> QtCore.QPointF: ...
    def toMapCoordinates(self, point: QtCore.QPoint) -> _core.QgsPointXY: ...
    def setRect(self, r: _core.QgsRectangle, resetRotation: bool = ...) -> None: ...
    def rect(self) -> _core.QgsRectangle: ...
    def boundingRect(self) -> QtCore.QRectF: ...
    def updatePosition(self) -> None: ...
    def setRenderContextVariables(self, p: typing.Optional[QtGui.QPainter], context: _core.QgsRenderContext) -> bool: ...
    def updateCanvas(self) -> None: ...
    @typing.overload
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    @typing.overload
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsAdvancedDigitizingCanvasItem(QgsMapCanvasItem):

    def __init__(self, canvas: typing.Optional['QgsMapCanvas'], cadDockWidget: typing.Optional['QgsAdvancedDigitizingDockWidget']) -> None: ...

    def updatePosition(self) -> None: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...


class QgsDockWidget(QtWidgets.QDockWidget):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    openedStateChanged: typing.ClassVar[QtCore.pyqtSignal]
    opened: typing.ClassVar[QtCore.pyqtSignal]
    closedStateChanged: typing.ClassVar[QtCore.pyqtSignal]
    closed: typing.ClassVar[QtCore.pyqtSignal]
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def closeEvent(self, a0: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def toggleUserVisible(self) -> None: ...
    def setUserVisible(self, visible: bool) -> None: ...
    def toggleVisibilityAction(self) -> typing.Optional[QtGui.QAction]: ...
    def setToggleVisibilityAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def isUserVisible(self) -> bool: ...


class QgsAdvancedDigitizingDockWidget(QgsDockWidget):

    class WidgetSetMode(enum.IntEnum):
        ReturnPressed = ... # type: QgsAdvancedDigitizingDockWidget.WidgetSetMode
        FocusOut = ... # type: QgsAdvancedDigitizingDockWidget.WidgetSetMode
        TextEdited = ... # type: QgsAdvancedDigitizingDockWidget.WidgetSetMode

    class CadCapacity(enum.IntEnum):
        AbsoluteAngle = ... # type: QgsAdvancedDigitizingDockWidget.CadCapacity
        RelativeAngle = ... # type: QgsAdvancedDigitizingDockWidget.CadCapacity
        RelativeCoordinates = ... # type: QgsAdvancedDigitizingDockWidget.CadCapacity
        Distance = ... # type: QgsAdvancedDigitizingDockWidget.CadCapacity

    class CadConstraint(PyQt6.sip.wrapper):

        class LockMode(enum.IntEnum):
            NoLock = ... # type: QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode
            SoftLock = ... # type: QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode
            HardLock = ... # type: QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode

        @typing.overload
        def __init__(self, lineEdit: typing.Optional[QtWidgets.QLineEdit], lockerButton: typing.Optional[QtWidgets.QToolButton], relativeButton: typing.Optional[QtWidgets.QToolButton] = ..., repeatingLockButton: typing.Optional[QtWidgets.QToolButton] = ...) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsAdvancedDigitizingDockWidget.CadConstraint') -> None: ...

        @staticmethod
        def removeSuffix(text: typing.Optional[str], constraintType: _core.Qgis.CadConstraintType) -> str: ...
        def setMapCanvas(self, mapCanvas: typing.Optional['QgsMapCanvas']) -> None: ...
        def setCadConstraintType(self, constraintType: _core.Qgis.CadConstraintType) -> None: ...
        def cadConstraintType(self) -> _core.Qgis.CadConstraintType: ...
        def setPrecision(self, precision: int) -> None: ...
        def precision(self) -> int: ...
        def toggleRelative(self) -> None: ...
        def toggleLocked(self) -> None: ...
        def displayValue(self) -> str: ...
        def setValue(self, value: float, updateWidget: bool = ...) -> None: ...
        def setRelative(self, relative: bool) -> None: ...
        def setRepeatingLock(self, repeating: bool) -> None: ...
        def setLockMode(self, mode: 'QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode') -> None: ...
        def lineEdit(self) -> typing.Optional[QtWidgets.QLineEdit]: ...
        def value(self) -> float: ...
        def relative(self) -> bool: ...
        def isRepeatingLock(self) -> bool: ...
        def isLocked(self) -> bool: ...
        def lockMode(self) -> 'QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode': ...

    def __init__(self, canvas: typing.Optional['QgsMapCanvas'], parent: typing.Optional[QtWidgets.QWidget] = ..., userInputWidget: typing.Optional['QgsUserInputWidget'] = ...) -> None: ...

    valueCommonAngleSnappingChanged: typing.ClassVar[QtCore.pyqtSignal]
    focusOnDistanceRequested: typing.ClassVar[QtCore.pyqtSignal]
    focusOnAngleRequested: typing.ClassVar[QtCore.pyqtSignal]
    focusOnMRequested: typing.ClassVar[QtCore.pyqtSignal]
    focusOnZRequested: typing.ClassVar[QtCore.pyqtSignal]
    focusOnYRequested: typing.ClassVar[QtCore.pyqtSignal]
    focusOnXRequested: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedDistance: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedAngle: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedM: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedZ: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedY: typing.ClassVar[QtCore.pyqtSignal]
    enabledChangedX: typing.ClassVar[QtCore.pyqtSignal]
    softLockXyChanged: typing.ClassVar[QtCore.pyqtSignal]
    softLockLineExtensionChanged: typing.ClassVar[QtCore.pyqtSignal]
    relativeAngleChanged: typing.ClassVar[QtCore.pyqtSignal]
    relativeMChanged: typing.ClassVar[QtCore.pyqtSignal]
    relativeZChanged: typing.ClassVar[QtCore.pyqtSignal]
    relativeYChanged: typing.ClassVar[QtCore.pyqtSignal]
    relativeXChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockDistanceChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockAngleChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockMChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockZChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockYChanged: typing.ClassVar[QtCore.pyqtSignal]
    lockXChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueBearingChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueDistanceChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueAngleChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueMChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueZChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueYChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueXChanged: typing.ClassVar[QtCore.pyqtSignal]
    cadEnabledChanged: typing.ClassVar[QtCore.pyqtSignal]
    pointChanged: typing.ClassVar[QtCore.pyqtSignal]
    pointChangedV2: typing.ClassVar[QtCore.pyqtSignal]
    popWarning: typing.ClassVar[QtCore.pyqtSignal]
    pushWarning: typing.ClassVar[QtCore.pyqtSignal]
    def formatCommonAngleSnapping(self, angle: float) -> str: ...
    def capacities(self) -> 'QgsAdvancedDigitizingDockWidget.CadCapacity': ...
    def getLineM(self) -> float: ...
    def getLineZ(self) -> float: ...
    def setDistance(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def setAngle(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def setM(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def setZ(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def setY(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def setX(self, value: typing.Optional[str], mode: 'QgsAdvancedDigitizingDockWidget.WidgetSetMode') -> None: ...
    def updateCadPaintItem(self) -> None: ...
    def disable(self) -> None: ...
    def enable(self) -> None: ...
    def enableAction(self) -> typing.Optional[QtGui.QAction]: ...
    def snappedSegment(self) -> list[_core.QgsPointXY]: ...
    def snappedToVertex(self) -> bool: ...
    def pointsCount(self) -> int: ...
    @deprecated("""""")
    def penultimatePoint(self) -> typing.Tuple[_core.QgsPointXY, typing.Optional[bool]]: ...
    def penultimatePointV2(self) -> typing.Tuple[_core.QgsPoint, typing.Optional[bool]]: ...
    @deprecated("""""")
    def previousPoint(self) -> typing.Tuple[_core.QgsPointXY, typing.Optional[bool]]: ...
    def previousPointV2(self) -> typing.Tuple[_core.QgsPoint, typing.Optional[bool]]: ...
    @deprecated("""""")
    def currentPoint(self) -> typing.Tuple[_core.QgsPointXY, typing.Optional[bool]]: ...
    def currentPointLayerCoordinates(self, layer: typing.Optional[_core.QgsMapLayer]) -> _core.QgsPoint: ...
    def currentPointV2(self) -> typing.Tuple[_core.QgsPoint, typing.Optional[bool]]: ...
    def setPoints(self, points: collections.abc.Iterable[_core.QgsPointXY]) -> None: ...
    def updateCurrentPoint(self, point: _core.QgsPoint) -> None: ...
    def removePreviousPoint(self) -> None: ...
    def addPoint(self, point: _core.QgsPointXY) -> None: ...
    def clearPoints(self) -> None: ...
    def clearLockedSnapVertices(self, force: bool = ...) -> None: ...
    def lockedSnapVertices(self) -> list[_core.QgsPointLocator.Match]: ...
    def mapPointMatch(self) -> _core.QgsPointLocator.Match: ...
    def toggleConstraintDistance(self) -> None: ...
    def softLockY(self) -> float: ...
    def softLockX(self) -> float: ...
    def constraintXyVertex(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def lineExtensionSide(self) -> _core.Qgis.LineExtensionSide: ...
    def constraintLineExtension(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def commonAngleConstraint(self) -> bool: ...
    def constraintM(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def constraintZ(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def constraintY(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def constraintX(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def constraintDistance(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def constraintAngle(self) -> typing.Optional['QgsAdvancedDigitizingDockWidget.CadConstraint']: ...
    def betweenLineConstraint(self) -> _core.Qgis.BetweenLineConstraint: ...
    def recordConstructionGuides(self) -> bool: ...
    def snapToConstructionGuides(self) -> bool: ...
    def showConstructionGuides(self) -> bool: ...
    def constructionGuidesLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def constructionMode(self) -> bool: ...
    def setEnabledM(self, enable: bool) -> None: ...
    def setEnabledZ(self, enable: bool) -> None: ...
    def switchZM(self) -> None: ...
    def cadEnabled(self) -> bool: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def clear(self) -> None: ...
    def releaseLocks(self, releaseRepeatingLocks: bool = ...) -> None: ...
    def tool(self) -> typing.Optional['QgsAdvancedDigitizingTool']: ...
    def setTool(self, tool: typing.Optional['QgsAdvancedDigitizingTool']) -> None: ...
    def processCanvasReleaseEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def processCanvasMoveEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def processCanvasPressEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def alignToSegment(self, e: typing.Optional['QgsMapMouseEvent'], lockMode: 'QgsAdvancedDigitizingDockWidget.CadConstraint.LockMode' = ...) -> bool: ...
    def applyConstraints(self, e: typing.Optional['QgsMapMouseEvent']) -> bool: ...
    def canvasKeyPressEventFilter(self, e: typing.Optional[QtGui.QKeyEvent]) -> bool: ...


class QgsAdvancedDigitizingFloater(QtWidgets.QWidget):

    class FloaterItem(enum.IntFlag):
        XCoordinate = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        YCoordinate = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        MCoordinate = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        ZCoordinate = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        Angle = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        CommonAngleSnapping = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        Distance = ... # type: QgsAdvancedDigitizingFloater.FloaterItem
        Bearing = ... # type: QgsAdvancedDigitizingFloater.FloaterItem

    def __init__(self, canvas: typing.Optional['QgsMapCanvas'], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> None: ...

    def setItemVisibility(self, item: 'QgsAdvancedDigitizingFloater.FloaterItem', visible: bool) -> None: ...
    def setActive(self, active: bool) -> None: ...
    def itemVisibility(self, item: 'QgsAdvancedDigitizingFloater.FloaterItem') -> bool: ...
    def active(self) -> bool: ...


class QgsAdvancedDigitizingTool(QtCore.QObject):

    def __init__(self, canvas: typing.Optional['QgsMapCanvas'], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> None: ...

    paintRequested: typing.ClassVar[QtCore.pyqtSignal]
    def canvasReleaseEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def canvasMoveEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def canvasPressEvent(self, event: typing.Optional['QgsMapMouseEvent']) -> None: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    def createWidget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def cadDockWidget(self) -> typing.Optional[QgsAdvancedDigitizingDockWidget]: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...


class QgsAdvancedDigitizingToolAbstractMetadata(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, name: typing.Optional[str], visibleName: typing.Optional[str], icon: QtGui.QIcon = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAdvancedDigitizingToolAbstractMetadata') -> None: ...

    def createTool(self, canvas: typing.Optional['QgsMapCanvas'], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> typing.Optional[QgsAdvancedDigitizingTool]: ...
    def icon(self) -> QtGui.QIcon: ...
    def visibleName(self) -> str: ...
    def name(self) -> str: ...


class QgsAdvancedDigitizingToolsRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def toolMetadataNames(self) -> list[str]: ...
    def toolMetadata(self, name: typing.Optional[str]) -> typing.Optional[QgsAdvancedDigitizingToolAbstractMetadata]: ...
    def removeTool(self, name: typing.Optional[str]) -> bool: ...
    def addTool(self, toolMetaData: typing.Optional[QgsAdvancedDigitizingToolAbstractMetadata]) -> bool: ...
    def addDefaultTools(self) -> None: ...


class QgsAggregateToolButton(QtWidgets.QToolButton):

    def __init__(self) -> None: ...

    activeChanged: typing.ClassVar[QtCore.pyqtSignal]
    aggregateChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setAggregate(self, aggregate: typing.Optional[str]) -> None: ...
    def aggregate(self) -> str: ...
    def active(self) -> bool: ...
    def setActive(self, active: bool) -> None: ...
    def type(self) -> QtCore.QMetaType.Type: ...
    @typing.overload
    def setType(self, type: QtCore.QMetaType.Type) -> None: ...
    @typing.overload
    @deprecated("""""")
    def setType(self, type: typing.Any) -> None: ...


class QgsAlignmentComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def customizeAlignmentDisplay(self, alignment: QtCore.Qt.AlignmentFlag, text: typing.Optional[str] = ..., icon: QtGui.QIcon = ...) -> None: ...
    def setCurrentAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
    def currentAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
    def setAvailableAlignments(self, alignments: QtCore.Qt.AlignmentFlag) -> None: ...


class QgsApplicationExitBlockerInterface(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsApplicationExitBlockerInterface') -> None: ...

    def allowExit(self) -> bool: ...


class QgsMapLayerActionContextGenerator(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapLayerActionContextGenerator') -> None: ...

    def createActionContext(self) -> 'QgsMapLayerActionContext': ...


class QgsAttributeDialog(QtWidgets.QDialog, QgsMapLayerActionContextGenerator):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], thepFeature: typing.Optional[_core.QgsFeature], featureOwner: bool, parent: typing.Optional[QtWidgets.QWidget] = ..., showDialogButtons: bool = ..., context: 'QgsAttributeEditorContext' = ...) -> None: ...

    def show(self) -> None: ...
    def reject(self) -> None: ...
    def accept(self) -> None: ...
    def createActionContext(self) -> 'QgsMapLayerActionContext': ...
    def setExtraContextScope(self, extraScope: typing.Optional[_core.QgsExpressionContextScope]) -> None: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setEditCommandMessage(self, message: typing.Optional[str]) -> None: ...
    def setMode(self, mode: 'QgsAttributeEditorContext.Mode') -> None: ...
    def editable(self) -> bool: ...
    def feature(self) -> typing.Optional[_core.QgsFeature]: ...
    def attributeForm(self) -> typing.Optional['QgsAttributeForm']: ...
    def setHighlight(self, h: typing.Optional['QgsHighlight']) -> None: ...


class QgsAttributeEditorContext(PyQt6.sip.wrapper):

    class FormMode(enum.IntEnum):
        Embed = ... # type: QgsAttributeEditorContext.FormMode
        StandaloneDialog = ... # type: QgsAttributeEditorContext.FormMode
        Popup = ... # type: QgsAttributeEditorContext.FormMode

    class RelationMode(enum.IntEnum):
        Undefined = ... # type: QgsAttributeEditorContext.RelationMode
        Multiple = ... # type: QgsAttributeEditorContext.RelationMode
        Single = ... # type: QgsAttributeEditorContext.RelationMode

    class Mode(enum.IntEnum):
        SingleEditMode = ... # type: QgsAttributeEditorContext.Mode
        AddFeatureMode = ... # type: QgsAttributeEditorContext.Mode
        FixAttributeMode = ... # type: QgsAttributeEditorContext.Mode
        MultiEditMode = ... # type: QgsAttributeEditorContext.Mode
        SearchMode = ... # type: QgsAttributeEditorContext.Mode
        AggregateSearchMode = ... # type: QgsAttributeEditorContext.Mode
        IdentifyMode = ... # type: QgsAttributeEditorContext.Mode

    staticMetaObject = ... # type: QtCore.QMetaObject

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, parentContext: 'QgsAttributeEditorContext', formMode: 'QgsAttributeEditorContext.FormMode') -> None: ...
    @typing.overload
    def __init__(self, parentContext: 'QgsAttributeEditorContext', relation: _core.QgsRelation, relationMode: 'QgsAttributeEditorContext.RelationMode', widgetMode: 'QgsAttributeEditorContext.FormMode') -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAttributeEditorContext') -> None: ...

    def mainMessageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMainMessageBar(self, messageBar: typing.Optional['QgsMessageBar']) -> None: ...
    def attributeFormModeString(self) -> str: ...
    def setAttributeFormMode(self, attributeFormMode: 'QgsAttributeEditorContext.Mode') -> None: ...
    def attributeFormMode(self) -> 'QgsAttributeEditorContext.Mode': ...
    def setParentFormFeature(self, feature: _core.QgsFeature) -> None: ...
    def parentFormFeature(self) -> _core.QgsFeature: ...
    def setFormFeature(self, feature: _core.QgsFeature) -> None: ...
    def formFeature(self) -> _core.QgsFeature: ...
    def parentContext(self) -> typing.Optional['QgsAttributeEditorContext']: ...
    def setAllowCustomUi(self, allow: bool) -> None: ...
    def allowCustomUi(self) -> bool: ...
    def setFormMode(self, mode: 'QgsAttributeEditorContext.FormMode') -> None: ...
    def formMode(self) -> 'QgsAttributeEditorContext.FormMode': ...
    def relationMode(self) -> 'QgsAttributeEditorContext.RelationMode': ...
    def relation(self) -> _core.QgsRelation: ...
    def setRelation(self, relation: _core.QgsRelation, mode: 'QgsAttributeEditorContext.RelationMode') -> None: ...
    def vectorLayerTools(self) -> typing.Optional[_core.QgsVectorLayerTools]: ...
    def setVectorLayerTools(self, vlTools: typing.Optional[_core.QgsVectorLayerTools]) -> None: ...
    def cadDockWidget(self) -> typing.Optional[QgsAdvancedDigitizingDockWidget]: ...
    def setCadDockWidget(self, cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> None: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def setMapCanvas(self, mapCanvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def distanceArea(self) -> _core.QgsDistanceArea: ...
    def setDistanceArea(self, distanceArea: _core.QgsDistanceArea) -> None: ...


class QgsAttributeForm(QtWidgets.QWidget):

    class FilterType(enum.IntEnum):
        ReplaceFilter = ... # type: QgsAttributeForm.FilterType
        FilterAnd = ... # type: QgsAttributeForm.FilterType
        FilterOr = ... # type: QgsAttributeForm.FilterType

    class Mode(enum.IntEnum):
        SingleEditMode = ... # type: QgsAttributeForm.Mode
        AddFeatureMode = ... # type: QgsAttributeForm.Mode
        MultiEditMode = ... # type: QgsAttributeForm.Mode
        SearchMode = ... # type: QgsAttributeForm.Mode
        AggregateSearchMode = ... # type: QgsAttributeForm.Mode
        IdentifyMode = ... # type: QgsAttributeForm.Mode

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], feature: _core.QgsFeature = ..., context: QgsAttributeEditorContext = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def parentFormValueChanged(self, attribute: typing.Optional[str], newValue: typing.Any) -> None: ...
    def refreshFeature(self) -> None: ...
    def resetSearch(self) -> None: ...
    def resetValues(self) -> None: ...
    def saveWithDetails(self) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def save(self) -> bool: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def changeGeometry(self, geometry: _core.QgsGeometry) -> None: ...
    def changeAttribute(self, field: typing.Optional[str], value: typing.Any, hintText: typing.Optional[str] = ...) -> None: ...
    openFilteredFeaturesAttributeTable: typing.ClassVar[QtCore.pyqtSignal]
    flashFeatures: typing.ClassVar[QtCore.pyqtSignal]
    zoomToFeatures: typing.ClassVar[QtCore.pyqtSignal]
    closed: typing.ClassVar[QtCore.pyqtSignal]
    modeChanged: typing.ClassVar[QtCore.pyqtSignal]
    filterExpressionSet: typing.ClassVar[QtCore.pyqtSignal]
    featureSaved: typing.ClassVar[QtCore.pyqtSignal]
    widgetValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    attributeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def needsGeometry(self) -> bool: ...
    def setExtraContextScope(self, extraScope: typing.Optional[_core.QgsExpressionContextScope]) -> None: ...
    def aggregateFilter(self) -> str: ...
    def setMessageBar(self, messageBar: typing.Optional['QgsMessageBar']) -> None: ...
    def setMultiEditFeatureIds(self, fids: typing.Any) -> None: ...
    def eventFilter(self, object: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setEditCommandMessage(self, message: typing.Optional[str]) -> None: ...
    def setMode(self, mode: QgsAttributeEditorContext.Mode) -> None: ...
    def mode(self) -> QgsAttributeEditorContext.Mode: ...
    def editable(self) -> bool: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def addInterface(self, iface: typing.Optional['QgsAttributeFormInterface']) -> None: ...
    def disconnectButtonBox(self) -> None: ...
    def showButtonBox(self) -> None: ...
    def hideButtonBox(self) -> None: ...
    def displayWarning(self, message: typing.Optional[str]) -> None: ...
    def currentFormFeature(self) -> _core.QgsFeature: ...
    def feature(self) -> _core.QgsFeature: ...


class QgsAttributeFormWidget(QtWidgets.QWidget):

    class Mode(enum.IntEnum):
        DefaultMode = ... # type: QgsAttributeFormWidget.Mode
        MultiEditMode = ... # type: QgsAttributeFormWidget.Mode
        SearchMode = ... # type: QgsAttributeFormWidget.Mode
        AggregateSearchMode = ... # type: QgsAttributeFormWidget.Mode

    def __init__(self, widget: typing.Optional['QgsWidgetWrapper'], form: typing.Optional[QgsAttributeForm]) -> None: ...

    def setVisiblePageForMode(self, mode: 'QgsAttributeFormWidget.Mode') -> None: ...
    def setSearchWidgetToolButtonVisible(self, searchWidgetToolButtonVisible: bool) -> None: ...
    def searchWidgetToolButtonVisible(self) -> bool: ...
    def resetSearch(self) -> None: ...
    def searchWidgetWrappers(self) -> list['QgsSearchWidgetWrapper']: ...
    def addAdditionalSearchWidgetWrapper(self, wrapper: typing.Optional['QgsSearchWidgetWrapper']) -> None: ...
    def setSearchWidgetWrapper(self, wrapper: typing.Optional['QgsSearchWidgetWrapper']) -> None: ...
    def form(self) -> typing.Optional[QgsAttributeForm]: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def mode(self) -> 'QgsAttributeFormWidget.Mode': ...
    def setMode(self, mode: 'QgsAttributeFormWidget.Mode') -> None: ...
    def currentFilterExpression(self) -> str: ...
    def createSearchWidgetWrappers(self) -> None: ...


class QgsAttributeFormEditorWidget(QgsAttributeFormWidget):

    def __init__(self, editorWidget: typing.Optional['QgsEditorWidgetWrapper'], widgetType: typing.Optional[str], form: typing.Optional[QgsAttributeForm]) -> None: ...

    valuesChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def changesCommitted(self) -> None: ...
    def setIsMixed(self, mixed: bool) -> None: ...
    def editorWidget(self) -> typing.Optional['QgsEditorWidgetWrapper']: ...
    def setConstraintResultVisible(self, editable: bool) -> None: ...
    def setConstraintStatus(self, constraint: typing.Optional[str], description: typing.Optional[str], err: typing.Optional[str], result: 'QgsEditorWidgetWrapper.ConstraintResult') -> None: ...
    def currentValue(self) -> typing.Any: ...
    def hasChanged(self) -> bool: ...
    def initialize(self, initialValue: typing.Any, mixedValues: bool = ..., additionalFieldValues: collections.abc.Iterable[typing.Any] = ...) -> None: ...
    def createSearchWidgetWrappers(self, context: QgsAttributeEditorContext = ...) -> None: ...


class QgsAttributeFormInterface(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, form: typing.Optional[QgsAttributeForm]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAttributeFormInterface') -> None: ...

    def feature(self) -> _core.QgsFeature: ...
    def form(self) -> typing.Optional[QgsAttributeForm]: ...
    def featureChanged(self) -> None: ...
    def initForm(self) -> None: ...
    def acceptChanges(self, feature: _core.QgsFeature) -> bool: ...


class QgsAttributeFormRelationEditorWidget(QgsAttributeFormWidget):

    def __init__(self, wrapper: typing.Optional['QgsRelationWidgetWrapper'], form: typing.Optional[QgsAttributeForm]) -> None: ...

    def setMultiEditFeatureIds(self, fids: typing.Any) -> None: ...
    def currentFilterExpression(self) -> str: ...
    def createSearchWidgetWrappers(self, context: QgsAttributeEditorContext = ...) -> None: ...


class QgsAttributeTypeLoadDialog(QtWidgets.QDialog):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer]) -> None: ...

    def insertNull(self) -> bool: ...
    def valueMap(self) -> dict[str, typing.Any]: ...
    def setVectorLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def accept(self) -> None: ...


class QgsBlendModeComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def updateModes(self) -> None: ...
    def showClippingModes(self) -> bool: ...
    def setShowClippingModes(self, show: bool) -> None: ...
    def setBlendMode(self, blendMode: QtGui.QPainter.CompositionMode) -> None: ...
    def blendMode(self) -> QtGui.QPainter.CompositionMode: ...


class QgsBrowserDockWidget(QgsDockWidget):

    def __init__(self, name: typing.Optional[str], browserModel: typing.Optional['QgsBrowserGuiModel'], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    connectionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    handleDropUriList: typing.ClassVar[QtCore.pyqtSignal]
    openFile: typing.ClassVar[QtCore.pyqtSignal]
    @deprecated("""""")
    def splitterMoved(self) -> None: ...
    @deprecated("""""")
    def selectionChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ...
    @deprecated("""""")
    def toggleFastScan(self) -> None: ...
    @deprecated("""""")
    def hideItem(self) -> None: ...
    @deprecated("""""")
    def showProperties(self) -> None: ...
    @deprecated("""""")
    def addSelectedLayers(self) -> None: ...
    @deprecated("""""")
    def updateProjectHome(self) -> None: ...
    @deprecated("""""")
    def setActiveIndex(self, index: QtCore.QModelIndex) -> None: ...
    @deprecated("""""")
    def setFilter(self) -> None: ...
    @deprecated("""""")
    def setCaseSensitive(self, caseSensitive: bool) -> None: ...
    @deprecated("""""")
    def setFilterSyntax(self, a0: typing.Optional[QtGui.QAction]) -> None: ...
    @deprecated("""""")
    def enablePropertiesWidget(self, enable: bool) -> None: ...
    @deprecated("""""")
    def showFilterWidget(self, visible: bool) -> None: ...
    def refresh(self) -> None: ...
    @deprecated("""""")
    def removeFavorite(self) -> None: ...
    @deprecated("""""")
    def addFavorite(self) -> None: ...
    @deprecated("""""")
    def showContextMenu(self, a0: QtCore.QPoint) -> None: ...
    @deprecated("""""")
    def addLayerAtIndex(self, index: QtCore.QModelIndex) -> bool: ...
    def setDisabledDataItemsKeys(self, filter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    @typing.overload
    @deprecated("""""")
    def addFavoriteDirectory(self, favDir: typing.Optional[str], name: typing.Optional[str] = ...) -> None: ...
    @typing.overload
    @deprecated("""""")
    def addFavoriteDirectory(self) -> None: ...
    def browserWidget(self) -> typing.Optional['QgsBrowserWidget']: ...


class QgsPanelWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def acceptPanel(self) -> None: ...
    def openPanel(self, panel: typing.Optional['QgsPanelWidget']) -> None: ...
    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    showPanel: typing.ClassVar[QtCore.pyqtSignal]
    panelAccepted: typing.ClassVar[QtCore.pyqtSignal]
    def menuButtonMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def menuButtonTooltip(self) -> str: ...
    @staticmethod
    def findParentPanel(widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsPanelWidget']: ...
    def autoDelete(self) -> bool: ...
    def setAutoDelete(self, autoDelete: bool) -> None: ...
    def dockMode(self) -> bool: ...
    def applySizeConstraintsToStack(self) -> bool: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def connectChildPanel(self, panel: typing.Optional['QgsPanelWidget']) -> None: ...
    def connectChildPanels(self, panels: collections.abc.Iterable['QgsPanelWidget']) -> None: ...
    def panelTitle(self) -> str: ...
    def setPanelTitle(self, panelTitle: typing.Optional[str]) -> None: ...


class QgsBrowserWidget(QgsPanelWidget):

    def __init__(self, browserModel: typing.Optional['QgsBrowserGuiModel'], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def refresh(self) -> None: ...
    def setDisabledDataItemsKeys(self, filter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...


class QgsBrowserGuiModel(_core.QgsBrowserModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
    def dropMimeData(self, data: typing.Optional[QtCore.QMimeData], action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...


class QgsBrowserTreeView(QtWidgets.QTreeView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def rowsInserted(self, parentIndex: QtCore.QModelIndex, start: int, end: int) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def expandPath(self, path: typing.Optional[str], selectPath: bool = ...) -> None: ...
    def setSelectedItem(self, item: typing.Optional[_core.QgsDataItem]) -> bool: ...
    def setSettingsSection(self, section: typing.Optional[str]) -> None: ...
    def hasExpandedDescendant(self, index: QtCore.QModelIndex) -> bool: ...
    def hideEvent(self, e: typing.Optional[QtGui.QHideEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def browserModel(self) -> typing.Optional[QgsBrowserGuiModel]: ...
    def setBrowserModel(self, model: typing.Optional[QgsBrowserGuiModel]) -> None: ...
    def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QgsBusyIndicatorDialog(QtWidgets.QDialog):

    def __init__(self, message: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def setMessage(self, message: typing.Optional[str]) -> None: ...
    def message(self) -> str: ...


class QgsCharacterSelectorDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def selectCharacter(self, font: QtGui.QFont, style: typing.Optional[str], initialSelection: QtCore.QChar = ...) -> typing.Tuple[QtCore.QChar, typing.Optional[bool]]: ...


class QgsCheckableComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def deselectAllOptions(self) -> None: ...
    def selectAllOptions(self) -> None: ...
    def showContextMenu(self, pos: QtCore.QPoint) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def setCheckedItems(self, items: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    checkedItemsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def eventFilter(self, object: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def hidePopup(self) -> None: ...
    def toggleItemCheckState(self, index: int) -> None: ...
    def setItemCheckState(self, index: int, state: QtCore.Qt.CheckState) -> None: ...
    def itemCheckState(self, index: int) -> QtCore.Qt.CheckState: ...
    def checkedItemsData(self) -> list[typing.Any]: ...
    def checkedItems(self) -> list[str]: ...
    def addItemWithCheckState(self, text: typing.Optional[str], state: QtCore.Qt.CheckState, userData: typing.Any = ...) -> None: ...
    def setDefaultText(self, text: typing.Optional[str]) -> None: ...
    def defaultText(self) -> str: ...
    def setSeparator(self, separator: typing.Optional[str]) -> None: ...
    def separator(self) -> str: ...


class QgsGroupBoxCollapseButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def setShiftDown(self, shiftdown: bool) -> None: ...
    def shiftDown(self) -> bool: ...
    def setAltDown(self, updown: bool) -> None: ...
    def altDown(self) -> bool: ...


class QgsCollapsibleGroupBoxBasic(QtWidgets.QGroupBox):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def clearModifiers(self) -> None: ...
    def titleRect(self) -> QtCore.QRect: ...
    def updateStyle(self) -> None: ...
    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def collapseExpandFixes(self) -> None: ...
    def setStyleSheet(self, style: typing.Optional[str]) -> None: ...
    def toggleCollapsed(self) -> None: ...
    def checkClicked(self, ckd: bool) -> None: ...
    def checkToggled(self, ckd: bool) -> None: ...
    collapsedStateChanged: typing.ClassVar[QtCore.pyqtSignal]
    def scrollOnExpand(self) -> bool: ...
    def setScrollOnExpand(self, scroll: bool) -> None: ...
    def setSyncGroup(self, grp: typing.Optional[str]) -> None: ...
    def syncGroup(self) -> str: ...
    def setCollapsed(self, collapse: bool) -> None: ...
    def isCollapsed(self) -> bool: ...


class QgsCollapsibleGroupBox(QgsCollapsibleGroupBoxBasic):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., settings: typing.Optional[_core.QgsSettings] = ...) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., settings: typing.Optional[_core.QgsSettings] = ...) -> None: ...

    def saveKey(self) -> str: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def saveState(self) -> None: ...
    def loadState(self) -> None: ...
    def settingGroup(self) -> str: ...
    def setSettingGroup(self, group: typing.Optional[str]) -> None: ...
    def saveCheckedState(self) -> bool: ...
    def saveCollapsedState(self) -> bool: ...
    def setSaveCheckedState(self, save: bool) -> None: ...
    def setSaveCollapsedState(self, save: bool) -> None: ...
    def setSettings(self, settings: typing.Optional[_core.QgsSettings]) -> None: ...


class QgsColorBrewerColorRampWidget(QgsPanelWidget):

    def __init__(self, ramp: _core.QgsColorBrewerColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setRamp(self, ramp: _core.QgsColorBrewerColorRamp) -> None: ...
    def ramp(self) -> _core.QgsColorBrewerColorRamp: ...


class QgsColorBrewerColorRampDialog(QtWidgets.QDialog):

    def __init__(self, ramp: _core.QgsColorBrewerColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def setRamp(self, ramp: _core.QgsColorBrewerColorRamp) -> None: ...
    def ramp(self) -> _core.QgsColorBrewerColorRamp: ...


class QgsColorButton(QtWidgets.QToolButton):

    class Behavior(enum.IntEnum):
        ShowDialog = ... # type: QgsColorButton.Behavior
        SignalOnly = ... # type: QgsColorButton.Behavior

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., cdt: typing.Optional[str] = ..., registry: typing.Optional[_core.QgsColorSchemeRegistry] = ...) -> None: ...

    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def dropEvent(self, e: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, e: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    @staticmethod
    def transparentBackground() -> QtGui.QPixmap: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    unlinked: typing.ClassVar[QtCore.pyqtSignal]
    cleared: typing.ClassVar[QtCore.pyqtSignal]
    colorClicked: typing.ClassVar[QtCore.pyqtSignal]
    colorChanged: typing.ClassVar[QtCore.pyqtSignal]
    def unlink(self) -> None: ...
    def setToNull(self) -> None: ...
    def setToDefaultColor(self) -> None: ...
    def setToNoColor(self) -> None: ...
    def activatePicker(self) -> None: ...
    def pasteColor(self) -> None: ...
    def copyColor(self) -> None: ...
    def setButtonBackground(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ...) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    @staticmethod
    def createMenuIcon(color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], showChecks: bool = ...) -> QtGui.QPixmap: ...
    def linkedProjectColorName(self) -> str: ...
    def linkToProjectColor(self, name: typing.Optional[str]) -> None: ...
    def colorSchemeRegistry(self) -> typing.Optional[_core.QgsColorSchemeRegistry]: ...
    def setColorSchemeRegistry(self, registry: typing.Optional[_core.QgsColorSchemeRegistry]) -> None: ...
    def context(self) -> str: ...
    def setContext(self, context: typing.Optional[str]) -> None: ...
    def noColorString(self) -> str: ...
    def isNull(self) -> bool: ...
    def showNull(self) -> bool: ...
    def setShowNull(self, showNull: bool, nullString: typing.Optional[str] = ...) -> None: ...
    def setNoColorString(self, noColorString: typing.Optional[str]) -> None: ...
    def showNoColor(self) -> bool: ...
    def setShowNoColor(self, showNoColorOption: bool) -> None: ...
    def defaultColor(self) -> QtGui.QColor: ...
    def setDefaultColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def behavior(self) -> 'QgsColorButton.Behavior': ...
    def setBehavior(self, behavior: 'QgsColorButton.Behavior') -> None: ...
    def showMenu(self) -> bool: ...
    def setShowMenu(self, showMenu: bool) -> None: ...
    def colorDialogTitle(self) -> str: ...
    def setColorDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def allowOpacity(self) -> bool: ...
    def setAllowOpacity(self, allowOpacity: bool) -> None: ...
    def color(self) -> QtGui.QColor: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsColorDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ...) -> None: ...

    def closeEvent(self, e: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    currentColorChanged: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def getColor(initialColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], parent: typing.Optional[QtWidgets.QWidget], title: typing.Optional[str] = ..., allowOpacity: bool = ...) -> QtGui.QColor: ...
    def setAllowOpacity(self, allowOpacity: bool) -> None: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def color(self) -> QtGui.QColor: ...


class QgsColorRampButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., dialogTitle: typing.Optional[str] = ...) -> None: ...

    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    colorRampChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setToNull(self) -> None: ...
    def setToDefaultColorRamp(self) -> None: ...
    def setButtonBackground(self, colorramp: typing.Optional[_core.QgsColorRamp] = ...) -> None: ...
    def setColorRampFromName(self, name: typing.Optional[str] = ...) -> None: ...
    def setRandomColorRamp(self) -> None: ...
    def setColorRamp(self, colorramp: typing.Optional[_core.QgsColorRamp]) -> None: ...
    def colorRampName(self) -> str: ...
    def setColorRampName(self, name: typing.Optional[str]) -> None: ...
    def showGradientOnly(self) -> bool: ...
    def setShowGradientOnly(self, gradientonly: bool) -> None: ...
    def context(self) -> str: ...
    def setContext(self, context: typing.Optional[str]) -> None: ...
    def isNull(self) -> bool: ...
    def showNull(self) -> bool: ...
    def setShowNull(self, showNull: bool) -> None: ...
    def isRandomColorRamp(self) -> bool: ...
    def showRandomColorRamp(self) -> bool: ...
    def setShowRandomColorRamp(self, showRandom: bool) -> None: ...
    def defaultColorRamp(self) -> typing.Optional[_core.QgsColorRamp]: ...
    def setDefaultColorRamp(self, colorramp: typing.Optional[_core.QgsColorRamp]) -> None: ...
    def showMenu(self) -> bool: ...
    def setShowMenu(self, showMenu: bool) -> None: ...
    def setAcceptLiveUpdates(self, accept: bool) -> None: ...
    def acceptLiveUpdates(self) -> bool: ...
    def colorRampDialogTitle(self) -> str: ...
    def setColorRampDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def colorRamp(self) -> typing.Optional[_core.QgsColorRamp]: ...
    def sizeHint(self) -> QtCore.QSize: ...


class QgsColorRampLegendNodeWidget(QgsPanelWidget):

    class Capability(enum.IntFlag):
        Prefix = ... # type: QgsColorRampLegendNodeWidget.Capability
        Suffix = ... # type: QgsColorRampLegendNodeWidget.Capability
        NumberFormat = ... # type: QgsColorRampLegendNodeWidget.Capability
        DefaultMinimum = ... # type: QgsColorRampLegendNodeWidget.Capability
        DefaultMaximum = ... # type: QgsColorRampLegendNodeWidget.Capability
        AllCapabilities = ... # type: QgsColorRampLegendNodeWidget.Capability

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., capabilities: 'QgsColorRampLegendNodeWidget.Capability' = ...) -> None: ...

    def setUseContinuousRampCheckBoxVisibility(self, visible: bool) -> None: ...
    def setSettings(self, settings: _core.QgsColorRampLegendNodeSettings) -> None: ...
    def settings(self) -> _core.QgsColorRampLegendNodeSettings: ...


class QgsColorRampLegendNodeDialog(QtWidgets.QDialog):

    def __init__(self, settings: _core.QgsColorRampLegendNodeSettings, parent: typing.Optional[QtWidgets.QWidget] = ..., capabilities: QgsColorRampLegendNodeWidget.Capability = ...) -> None: ...

    def setUseContinuousRampCheckBoxVisibility(self, visible: bool) -> None: ...
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def settings(self) -> _core.QgsColorRampLegendNodeSettings: ...


class QgsColorSwatchDelegate(QtWidgets.QAbstractItemDelegate):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def editorEvent(self, event: typing.Optional[QtCore.QEvent], model: typing.Optional[QtCore.QAbstractItemModel], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> bool: ...
    def sizeHint(self, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtCore.QSize: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ...


class QgsColorSchemeModel(QtCore.QAbstractItemModel):

    def __init__(self, scheme: typing.Optional[_core.QgsColorScheme], context: typing.Optional[str] = ..., baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def isDirty(self) -> bool: ...
    def addColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], label: typing.Optional[str] = ..., allowDuplicate: bool = ...) -> None: ...
    def baseColor(self) -> QtGui.QColor: ...
    def context(self) -> str: ...
    def setScheme(self, scheme: typing.Optional[_core.QgsColorScheme], context: typing.Optional[str] = ..., baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ...) -> None: ...
    def colors(self) -> list[tuple[QtGui.QColor, str]]: ...
    def dropMimeData(self, data: typing.Optional[QtCore.QMimeData], action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ...
    def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> typing.Optional[QtCore.QMimeData]: ...
    def insertRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
    def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
    def mimeTypes(self) -> list[str]: ...
    def supportedDropActions(self) -> QtCore.Qt.DropAction: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...


class QgsColorSchemeList(QtWidgets.QTreeView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., scheme: typing.Optional[_core.QgsColorScheme] = ..., context: typing.Optional[str] = ..., baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    colorSelected: typing.ClassVar[QtCore.pyqtSignal]
    def showExportColorsDialog(self) -> None: ...
    def showImportColorsDialog(self) -> None: ...
    def copyColors(self) -> None: ...
    def pasteColors(self) -> None: ...
    def addColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], label: typing.Optional[str] = ..., allowDuplicate: bool = ...) -> None: ...
    def removeSelection(self) -> None: ...
    def setScheme(self, scheme: typing.Optional[_core.QgsColorScheme], context: typing.Optional[str] = ..., baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ...) -> None: ...
    def scheme(self) -> typing.Optional[_core.QgsColorScheme]: ...
    def isDirty(self) -> bool: ...
    def exportColorsToGpl(self, file: QtCore.QFile) -> bool: ...
    def importColorsFromGpl(self, file: QtCore.QFile) -> bool: ...
    def saveColorsToScheme(self) -> bool: ...


class QgsColorSwatchGrid(QtWidgets.QWidget):

    def __init__(self, scheme: typing.Optional[_core.QgsColorScheme], context: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def focusInEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    hovered: typing.ClassVar[QtCore.pyqtSignal]
    colorChanged: typing.ClassVar[QtCore.pyqtSignal]
    def refreshColors(self) -> None: ...
    def colors(self) -> typing.Optional[list[tuple[QtGui.QColor, str]]]: ...
    def setBaseColor(self, baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def baseColor(self) -> QtGui.QColor: ...
    def setContext(self, context: typing.Optional[str]) -> None: ...
    def context(self) -> str: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsColorSwatchGridAction(QtWidgets.QWidgetAction):

    def __init__(self, scheme: typing.Optional[_core.QgsColorScheme], menu: typing.Optional[QtWidgets.QMenu] = ..., context: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    colorChanged: typing.ClassVar[QtCore.pyqtSignal]
    def refreshColors(self) -> None: ...
    def dismissOnColorSelection(self) -> bool: ...
    def setDismissOnColorSelection(self, dismiss: bool) -> None: ...
    def setContext(self, context: typing.Optional[str]) -> None: ...
    def context(self) -> str: ...
    def baseColor(self) -> QtGui.QColor: ...
    def setBaseColor(self, baseColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...


class QgsColorWidget(QtWidgets.QWidget):

    class ComponentUnit(enum.Enum):
        Scaled0to255 = ... # type: QgsColorWidget.ComponentUnit
        Percent = ... # type: QgsColorWidget.ComponentUnit
        Degree = ... # type: QgsColorWidget.ComponentUnit

    class ColorComponent(enum.IntEnum):
        Multiple = ... # type: QgsColorWidget.ColorComponent
        Red = ... # type: QgsColorWidget.ColorComponent
        Green = ... # type: QgsColorWidget.ColorComponent
        Blue = ... # type: QgsColorWidget.ColorComponent
        Hue = ... # type: QgsColorWidget.ColorComponent
        Saturation = ... # type: QgsColorWidget.ColorComponent
        Value = ... # type: QgsColorWidget.ColorComponent
        Alpha = ... # type: QgsColorWidget.ColorComponent
        Cyan = ... # type: QgsColorWidget.ColorComponent
        Magenta = ... # type: QgsColorWidget.ColorComponent
        Yellow = ... # type: QgsColorWidget.ColorComponent
        Black = ... # type: QgsColorWidget.ColorComponent

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., component: 'QgsColorWidget.ColorComponent' = ...) -> None: ...

    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def dropEvent(self, e: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    @staticmethod
    def transparentBackground() -> QtGui.QPixmap: ...
    @typing.overload
    def colorSpec(self) -> QtGui.QColor.Spec: ...
    @typing.overload
    @staticmethod
    def colorSpec(component: 'QgsColorWidget.ColorComponent') -> QtGui.QColor.Spec: ...
    @staticmethod
    def alterColorF(color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], component: 'QgsColorWidget.ColorComponent', newValue: float) -> None: ...
    @staticmethod
    @deprecated("""""")
    def alterColor(color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], component: 'QgsColorWidget.ColorComponent', newValue: int) -> None: ...
    def hueF(self) -> float: ...
    @deprecated("""""")
    def hue(self) -> int: ...
    @typing.overload
    def componentRange(self) -> int: ...
    @typing.overload
    @staticmethod
    def componentRange(component: 'QgsColorWidget.ColorComponent') -> int: ...
    hovered: typing.ClassVar[QtCore.pyqtSignal]
    colorChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setComponentValueF(self, value: float) -> None: ...
    @deprecated("""""")
    def setComponentValue(self, value: int) -> None: ...
    def setComponent(self, component: 'QgsColorWidget.ColorComponent') -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], emitSignals: bool = ...) -> None: ...
    @staticmethod
    def componentUnit(component: 'QgsColorWidget.ColorComponent') -> 'QgsColorWidget.ComponentUnit': ...
    @staticmethod
    def createDragIcon(color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> QtGui.QPixmap: ...
    @typing.overload
    def componentValueF(self) -> float: ...
    @typing.overload
    def componentValueF(self, component: 'QgsColorWidget.ColorComponent') -> float: ...
    @typing.overload
    @deprecated("""""")
    def componentValue(self) -> int: ...
    @typing.overload
    @deprecated("""""")
    def componentValue(self, component: 'QgsColorWidget.ColorComponent') -> int: ...
    def component(self) -> 'QgsColorWidget.ColorComponent': ...
    def color(self) -> QtGui.QColor: ...


class QgsColorWidgetAction(QtWidgets.QWidgetAction):

    def __init__(self, colorWidget: typing.Optional[QgsColorWidget], menu: typing.Optional[QtWidgets.QMenu] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    colorChanged: typing.ClassVar[QtCore.pyqtSignal]
    def dismissOnColorSelection(self) -> bool: ...
    def setDismissOnColorSelection(self, dismiss: bool) -> None: ...
    def colorWidget(self) -> typing.Optional[QgsColorWidget]: ...


class QgsColorWheel(QgsColorWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], emitSignals: bool = ...) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...


class QgsColorBox(QgsColorWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., component: QgsColorWidget.ColorComponent = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], emitSignals: bool = ...) -> None: ...
    def setComponent(self, component: QgsColorWidget.ColorComponent) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...


class QgsColorRampWidget(QgsColorWidget):

    class Orientation(enum.IntEnum):
        Horizontal = ... # type: QgsColorRampWidget.Orientation
        Vertical = ... # type: QgsColorRampWidget.Orientation

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., component: QgsColorWidget.ColorComponent = ..., orientation: 'QgsColorRampWidget.Orientation' = ...) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    valueChangedF: typing.ClassVar[QtCore.pyqtSignal]
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setMarkerSize(self, markerSize: int) -> None: ...
    def showFrame(self) -> bool: ...
    def setShowFrame(self, showFrame: bool) -> None: ...
    def interiorMargin(self) -> int: ...
    def setInteriorMargin(self, margin: int) -> None: ...
    def orientation(self) -> 'QgsColorRampWidget.Orientation': ...
    def setOrientation(self, orientation: 'QgsColorRampWidget.Orientation') -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...


class QgsColorSliderWidget(QgsColorWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., component: QgsColorWidget.ColorComponent = ...) -> None: ...

    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], emitSignals: bool = ...) -> None: ...
    def setComponentValueF(self, value: float) -> None: ...
    def setComponent(self, component: QgsColorWidget.ColorComponent) -> None: ...


class QgsColorTextWidget(QgsColorWidget):

    class ColorTextFormat(enum.IntEnum):
        HexRgb = ... # type: QgsColorTextWidget.ColorTextFormat
        HexRgbA = ... # type: QgsColorTextWidget.ColorTextFormat
        Rgb = ... # type: QgsColorTextWidget.ColorTextFormat
        Rgba = ... # type: QgsColorTextWidget.ColorTextFormat

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def setAllowOpacity(self, allowOpacity: bool) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], emitSignals: bool = ...) -> None: ...


class QgsColorPreviewWidget(QgsColorWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def setColor2(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def color2(self) -> QtGui.QColor: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...


class QgsCompoundColorWidget(QgsPanelWidget):

    class Layout(enum.IntEnum):
        LayoutDefault = ... # type: QgsCompoundColorWidget.Layout
        LayoutVertical = ... # type: QgsCompoundColorWidget.Layout

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., layout: 'QgsCompoundColorWidget.Layout' = ...) -> None: ...

    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def hideEvent(self, e: typing.Optional[QtGui.QHideEvent]) -> None: ...
    def setPreviousColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    currentColorChanged: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def removeUserPalette(scheme: typing.Optional[_core.QgsUserColorScheme], parent: typing.Optional[QtWidgets.QWidget]) -> bool: ...
    @staticmethod
    def createNewUserPalette(parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[_core.QgsUserColorScheme]: ...
    @staticmethod
    def importUserPaletteFromFile(parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[_core.QgsUserColorScheme]: ...
    def setDiscarded(self, discarded: bool) -> None: ...
    def setColorModelEditable(self, colorModelEditable: bool) -> None: ...
    def setAllowOpacity(self, allowOpacity: bool) -> None: ...
    def color(self) -> QtGui.QColor: ...


class QgsConfigureShortcutsDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., manager: typing.Optional['QgsShortcutsManager'] = ...) -> None: ...

    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...


class QgsCredentialDialog(QtWidgets.QDialog, _core.QgsCredentials):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def requestMasterPassword(self, password: typing.Optional[str], stored: bool = ...) -> typing.Tuple[bool, str]: ...
    def request(self, realm: typing.Optional[str], username: typing.Optional[str], password: typing.Optional[str], message: typing.Optional[str] = ...) -> typing.Tuple[bool, str, str]: ...


class QgsCurveEditorWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., curve: _core.QgsCurveTransform = ...) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setMaxHistogramValueRange(self, maxValueRange: float) -> None: ...
    def setMinHistogramValueRange(self, minValueRange: float) -> None: ...
    def maxHistogramValueRange(self) -> float: ...
    def minHistogramValueRange(self) -> float: ...
    def setHistogramSource(self, layer: typing.Optional[_core.QgsVectorLayer], expression: typing.Optional[str]) -> None: ...
    def setCurve(self, curve: _core.QgsCurveTransform) -> None: ...
    def curve(self) -> _core.QgsCurveTransform: ...


class QgsCustomDropHandler(QtCore.QObject):

    def __init__(self) -> None: ...

    def handleCustomUriCanvasDrop(self, uri: _core.QgsMimeDataUtils.Uri, canvas: typing.Optional['QgsMapCanvas']) -> bool: ...
    def canHandleCustomUriCanvasDrop(self, uri: _core.QgsMimeDataUtils.Uri, canvas: typing.Optional['QgsMapCanvas']) -> bool: ...
    def handleFileDrop(self, file: typing.Optional[str]) -> bool: ...
    def handleMimeDataV2(self, data: typing.Optional[QtCore.QMimeData]) -> bool: ...
    @deprecated("""""")
    def handleMimeData(self, data: typing.Optional[QtCore.QMimeData]) -> None: ...
    def canHandleMimeData(self, data: typing.Optional[QtCore.QMimeData]) -> bool: ...
    def handleCustomUriDrop(self, uri: _core.QgsMimeDataUtils.Uri) -> None: ...
    def customUriProviderKey(self) -> str: ...


class QgsCustomProjectOpenHandler(QtCore.QObject):

    def __init__(self) -> None: ...

    def icon(self) -> QtGui.QIcon: ...
    def createDocumentThumbnailAfterOpen(self) -> bool: ...
    def filters(self) -> list[str]: ...
    def handleProjectOpen(self, file: typing.Optional[str]) -> bool: ...


class QgsDatabaseSchemaComboBox(QtWidgets.QWidget):

    @typing.overload
    def __init__(self, provider: typing.Optional[str], connection: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    schemaChanged: typing.ClassVar[QtCore.pyqtSignal]
    def refreshSchemas(self) -> None: ...
    def setConnectionName(self, connection: typing.Optional[str], provider: typing.Optional[str] = ...) -> None: ...
    def setSchema(self, schema: typing.Optional[str]) -> None: ...
    def comboBox(self) -> typing.Optional[QtWidgets.QComboBox]: ...
    def currentSchema(self) -> str: ...
    def allowEmptySchema(self) -> bool: ...
    def setAllowEmptySchema(self, allowEmpty: bool) -> None: ...


class QgsDatabaseTableComboBox(QtWidgets.QWidget):

    @typing.overload
    def __init__(self, provider: typing.Optional[str], connection: typing.Optional[str], schema: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], schema: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    tableChanged: typing.ClassVar[QtCore.pyqtSignal]
    def refreshTables(self) -> None: ...
    def setSchema(self, schema: typing.Optional[str]) -> None: ...
    def setConnectionName(self, connection: typing.Optional[str], provider: typing.Optional[str] = ...) -> None: ...
    def setTable(self, table: typing.Optional[str], schema: typing.Optional[str] = ...) -> None: ...
    def comboBox(self) -> typing.Optional[QtWidgets.QComboBox]: ...
    def currentSchema(self) -> str: ...
    def currentTable(self) -> str: ...
    def allowEmptyTable(self) -> bool: ...
    def setAllowEmptyTable(self, allowEmpty: bool) -> None: ...


class QgsDataItemGuiContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsDataItemGuiContext') -> None: ...

    def setView(self, view: typing.Optional[QgsBrowserTreeView]) -> None: ...
    def view(self) -> typing.Optional[QgsBrowserTreeView]: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...


class QgsDataItemGuiProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsDataItemGuiProvider') -> None: ...

    @staticmethod
    def notify(title: typing.Optional[str], message: typing.Optional[str], context: QgsDataItemGuiContext, level: _core.Qgis.MessageLevel = ..., duration: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    def createParamWidget(self, item: typing.Optional[_core.QgsDataItem], context: QgsDataItemGuiContext) -> typing.Optional[QtWidgets.QWidget]: ...
    def handleDrop(self, item: typing.Optional[_core.QgsDataItem], context: QgsDataItemGuiContext, data: typing.Optional[QtCore.QMimeData], action: QtCore.Qt.DropAction) -> bool: ...
    def acceptDrop(self, item: typing.Optional[_core.QgsDataItem], context: QgsDataItemGuiContext) -> bool: ...
    def handleDoubleClick(self, item: typing.Optional[_core.QgsDataItem], context: QgsDataItemGuiContext) -> bool: ...
    def deleteLayer(self, item: typing.Optional[_core.QgsLayerItem], context: QgsDataItemGuiContext) -> bool: ...
    def rename(self, item: typing.Optional[_core.QgsDataItem], name: typing.Optional[str], context: QgsDataItemGuiContext) -> bool: ...
    def precedenceWhenPopulatingMenus(self) -> int: ...
    def populateContextMenu(self, item: typing.Optional[_core.QgsDataItem], menu: typing.Optional[QtWidgets.QMenu], selectedItems: collections.abc.Iterable[_core.QgsDataItem], context: QgsDataItemGuiContext) -> None: ...
    def name(self) -> str: ...


class QgsDataItemGuiProviderRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def initializeFromProviderGuiRegistry(self, providerGuiRegistry: typing.Optional['QgsProviderGuiRegistry']) -> None: ...
    def removeProvider(self, provider: typing.Optional[QgsDataItemGuiProvider]) -> None: ...
    def addProvider(self, provider: typing.Optional[QgsDataItemGuiProvider]) -> None: ...
    def providers(self) -> list[QgsDataItemGuiProvider]: ...


class QgsDataItemGuiProviderUtils(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsDataItemGuiProviderUtils') -> None: ...


class QgsDataSourceSelectWidget(QgsPanelWidget):

    def __init__(self, browserModel: typing.Optional[QgsBrowserGuiModel] = ..., setFilterByLayerType: bool = ..., layerType: _core.Qgis.LayerType = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    itemTriggered: typing.ClassVar[QtCore.pyqtSignal]
    selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    validationChanged: typing.ClassVar[QtCore.pyqtSignal]
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def setFilter(self) -> None: ...
    def setCaseSensitive(self, caseSensitive: bool) -> None: ...
    def setFilterSyntax(self, a0: typing.Optional[QtGui.QAction]) -> None: ...
    def showFilterWidget(self, visible: bool) -> None: ...
    def uri(self) -> _core.QgsMimeDataUtils.Uri: ...
    def expandPath(self, path: typing.Optional[str], selectPath: bool = ...) -> None: ...
    def setDescription(self, description: typing.Optional[str]) -> None: ...
    def setLayerTypeFilter(self, layerType: _core.Qgis.LayerType) -> None: ...


class QgsDataSourceSelectDialog(QtWidgets.QDialog):

    def __init__(self, browserModel: typing.Optional[QgsBrowserGuiModel] = ..., setFilterByLayerType: bool = ..., layerType: _core.Qgis.LayerType = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setFilter(self) -> None: ...
    def setCaseSensitive(self, caseSensitive: bool) -> None: ...
    def setFilterSyntax(self, a0: typing.Optional[QtGui.QAction]) -> None: ...
    def showFilterWidget(self, visible: bool) -> None: ...
    def uri(self) -> _core.QgsMimeDataUtils.Uri: ...
    def expandPath(self, path: typing.Optional[str], selectPath: bool = ...) -> None: ...
    def setDescription(self, description: typing.Optional[str]) -> None: ...
    def setLayerTypeFilter(self, layerType: _core.Qgis.LayerType) -> None: ...


class QgsDbRelationWidget(QtWidgets.QWidget):

    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    validityChanged: typing.ClassVar[QtCore.pyqtSignal]
    def isValid(self) -> bool: ...
    def relationship(self) -> _core.QgsWeakRelation: ...
    def setRelationship(self, relationship: _core.QgsWeakRelation) -> None: ...


class QgsDbRelationDialog(QtWidgets.QDialog):

    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def relationship(self) -> _core.QgsWeakRelation: ...
    def setRelationship(self, relationship: _core.QgsWeakRelation) -> None: ...


class QgsScrollBarHighlight(PyQt6.sip.wrapper):

    class Priority(enum.IntEnum):
        Invalid = ... # type: QgsScrollBarHighlight.Priority
        LowPriority = ... # type: QgsScrollBarHighlight.Priority
        NormalPriority = ... # type: QgsScrollBarHighlight.Priority
        HighPriority = ... # type: QgsScrollBarHighlight.Priority
        HighestPriority = ... # type: QgsScrollBarHighlight.Priority

    category = ... # type: int
    color = ... # type: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]
    position = ... # type: int
    priority = ... # type: 'QgsScrollBarHighlight.Priority'

    @typing.overload
    def __init__(self, category: int, position: int, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], priority: 'QgsScrollBarHighlight.Priority' = ...) -> None: ...
    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsScrollBarHighlight') -> None: ...


class QgsScrollBarHighlightController(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsScrollBarHighlightController') -> None: ...

    def removeAllHighlights(self) -> None: ...
    def removeHighlights(self, category: int) -> None: ...
    def addHighlight(self, highlight: QgsScrollBarHighlight) -> None: ...
    def setMargin(self, margin: float) -> None: ...
    def margin(self) -> float: ...
    def setVisibleRange(self, visibleRange: float) -> None: ...
    def visibleRange(self) -> float: ...
    def setLineHeight(self, height: float) -> None: ...
    def lineHeight(self) -> float: ...
    def setScrollArea(self, scrollArea: typing.Optional[QtWidgets.QAbstractScrollArea]) -> None: ...
    def scrollArea(self) -> typing.Optional[QtWidgets.QAbstractScrollArea]: ...
    def scrollBar(self) -> typing.Optional[QtWidgets.QScrollBar]: ...


class QgsNewDatabaseTableNameWidget(QgsPanelWidget):

    def __init__(self, browserModel: typing.Optional[QgsBrowserGuiModel] = ..., providersFilter: collections.abc.Iterable[typing.Optional[str]] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    accepted: typing.ClassVar[QtCore.pyqtSignal]
    uriChanged: typing.ClassVar[QtCore.pyqtSignal]
    providerKeyChanged: typing.ClassVar[QtCore.pyqtSignal]
    tableNameChanged: typing.ClassVar[QtCore.pyqtSignal]
    schemaNameChanged: typing.ClassVar[QtCore.pyqtSignal]
    validationChanged: typing.ClassVar[QtCore.pyqtSignal]
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def validationError(self) -> str: ...
    def isValid(self) -> bool: ...
    def dataProviderKey(self) -> str: ...
    def table(self) -> str: ...
    def uri(self) -> str: ...
    def schema(self) -> str: ...
    def setAcceptButtonVisible(self, visible: bool) -> None: ...


class QgsNewDatabaseTableNameDialog(QtWidgets.QDialog):

    def __init__(self, browserModel: typing.Optional[QgsBrowserGuiModel] = ..., providersFilter: collections.abc.Iterable[typing.Optional[str]] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def validationError(self) -> str: ...
    def isValid(self) -> bool: ...
    def dataProviderKey(self) -> str: ...
    def table(self) -> str: ...
    def uri(self) -> str: ...
    def schema(self) -> str: ...


class QgsDatabaseSchemaSelectionDialog(QtWidgets.QDialog):

    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def selectedSchema(self) -> str: ...


class QgsDetailedItemData(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsDetailedItemData') -> None: ...

    def isRenderedAsWidget(self) -> bool: ...
    def isEnabled(self) -> bool: ...
    def isChecked(self) -> bool: ...
    def isCheckable(self) -> bool: ...
    def icon(self) -> QtGui.QPixmap: ...
    def category(self) -> str: ...
    def detail(self) -> str: ...
    def title(self) -> str: ...
    def setRenderAsWidget(self, flag: bool) -> None: ...
    def setEnabled(self, flag: bool) -> None: ...
    def setChecked(self, flag: bool) -> None: ...
    def setCheckable(self, flag: bool) -> None: ...
    def setIcon(self, icon: QtGui.QPixmap) -> None: ...
    def setCategory(self, category: typing.Optional[str]) -> None: ...
    def setDetail(self, detail: typing.Optional[str]) -> None: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...


class QgsDetailedItemDelegate(QtWidgets.QAbstractItemDelegate):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def horizontalSpacing(self) -> int: ...
    def setHorizontalSpacing(self, value: int) -> None: ...
    def verticalSpacing(self) -> int: ...
    def setVerticalSpacing(self, value: int) -> None: ...
    def sizeHint(self, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtCore.QSize: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ...


class QgsDetailedItemWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setChecked(self, flag: bool) -> None: ...
    def setData(self, data: QgsDetailedItemData) -> None: ...


class QgsDial(QtWidgets.QDial):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def variantValue(self) -> typing.Any: ...
    def setValue(self, value: typing.Any) -> None: ...
    def setSingleStep(self, step: typing.Any) -> None: ...
    def setMaximum(self, max: typing.Any) -> None: ...
    def setMinimum(self, min: typing.Any) -> None: ...


class QgsDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., buttons: QtWidgets.QDialogButtonBox.StandardButton = ..., orientation: QtCore.Qt.Orientation = ...) -> None: ...

    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def layout(self) -> typing.Optional[QtWidgets.QVBoxLayout]: ...


class QgsDirectionalLightWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    directionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setEnableAzimuth(self, enable: bool) -> None: ...
    def altitude(self) -> float: ...
    def setAltitude(self, altitude: float) -> None: ...
    def azimuth(self) -> float: ...
    def setAzimuth(self, azimuth: float) -> None: ...


class QgsDoubleValidator(QtGui.QRegularExpressionValidator):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...
    @typing.overload
    def __init__(self, expression: QtCore.QRegularExpression, bottom: float, top: float, parent: typing.Optional[QtCore.QObject]) -> None: ...
    @typing.overload
    def __init__(self, bottom: float, top: float, parent: typing.Optional[QtCore.QObject]) -> None: ...
    @typing.overload
    def __init__(self, bottom: float, top: float, decimal: int, parent: typing.Optional[QtCore.QObject]) -> None: ...
    @typing.overload
    def __init__(self, decimal: int, parent: typing.Optional[QtCore.QObject]) -> None: ...

    def top(self) -> float: ...
    def bottom(self) -> float: ...
    def setRange(self, bottom: float, top: float) -> None: ...
    def setTop(self, top: float) -> None: ...
    def setBottom(self, bottom: float) -> None: ...
    @staticmethod
    def toDouble(input: typing.Optional[str]) -> float: ...
    def validate(self, input: typing.Optional[str]) -> QtGui.QValidator.State: ...
    def setMaxDecimals(self, maxDecimals: int) -> None: ...


class QgsEncodingFileDialog(QtWidgets.QFileDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., caption: typing.Optional[str] = ..., directory: typing.Optional[str] = ..., filter: typing.Optional[str] = ..., encoding: typing.Optional[str] = ...) -> None: ...

    def pbnCancelAll_clicked(self) -> None: ...
    def saveUsedEncoding(self) -> None: ...
    def cancelAll(self) -> bool: ...
    def addCancelAll(self) -> None: ...
    def encoding(self) -> str: ...


class QgsEncodingSelectionDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., caption: typing.Optional[str] = ..., encoding: typing.Optional[str] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def setEncoding(self, encoding: typing.Optional[str]) -> None: ...
    def encoding(self) -> str: ...


class QgsErrorDialog(QtWidgets.QDialog):

    def __init__(self, error: _core.QgsError, title: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    @staticmethod
    def show(error: _core.QgsError, title: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...


class QgsExpressionBuilderDialog(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], startText: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., key: typing.Optional[str] = ..., context: _core.QgsExpressionContext = ...) -> None: ...

    def reject(self) -> None: ...
    def accept(self) -> None: ...
    def done(self, r: int) -> None: ...
    allowEvalErrorsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setAllowEvalErrors(self, allowEvalErrors: bool) -> None: ...
    def allowEvalErrors(self) -> bool: ...
    def setGeomCalculator(self, da: _core.QgsDistanceArea) -> None: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def expressionContext(self) -> _core.QgsExpressionContext: ...
    def setExpectedOutputFormat(self, expected: typing.Optional[str]) -> None: ...
    def expectedOutputFormat(self) -> str: ...
    def expressionText(self) -> str: ...
    def setExpressionText(self, text: typing.Optional[str]) -> None: ...
    def expressionBuilder(self) -> typing.Optional['QgsExpressionBuilderWidget']: ...


class QgsExpressionStoreDialog(QtWidgets.QDialog):

    def __init__(self, label: typing.Optional[str], expression: typing.Optional[str], helpText: typing.Optional[str], existingLabels: collections.abc.Iterable[typing.Optional[str]] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def helpText(self) -> str: ...
    def label(self) -> str: ...
    def expression(self) -> str: ...


class QgsExpressionBuilderWidget(QtWidgets.QWidget):

    class Flag(enum.IntEnum):
        LoadNothing = ... # type: QgsExpressionBuilderWidget.Flag
        LoadRecent = ... # type: QgsExpressionBuilderWidget.Flag
        LoadUserExpressions = ... # type: QgsExpressionBuilderWidget.Flag
        LoadAll = ... # type: QgsExpressionBuilderWidget.Flag

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    parserErrorChanged: typing.ClassVar[QtCore.pyqtSignal]
    evalErrorChanged: typing.ClassVar[QtCore.pyqtSignal]
    expressionParsed: typing.ClassVar[QtCore.pyqtSignal]
    def findExpressions(self, label: typing.Optional[str]) -> list['QgsExpressionItem']: ...
    def editSelectedUserExpression(self) -> None: ...
    def removeSelectedUserExpression(self) -> None: ...
    def storeCurrentUserExpression(self) -> None: ...
    def setAutoSave(self, enabled: bool) -> None: ...
    def autosave(self) -> None: ...
    def loadAllUsedValues(self) -> None: ...
    def loadSampleUsedValues(self) -> None: ...
    def loadAllValues(self) -> None: ...
    def loadSampleValues(self) -> None: ...
    def setExpressionPreviewVisible(self, isVisible: bool) -> None: ...
    def parserError(self) -> bool: ...
    def evalError(self) -> bool: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def project(self) -> typing.Optional[_core.QgsProject]: ...
    @deprecated("""""")
    def model(self) -> typing.Optional[QtGui.QStandardItemModel]: ...
    def saveProjectFunctionsEntry(self) -> None: ...
    def updateFunctionFileList(self, path: typing.Optional[str]) -> None: ...
    def loadFunctionCode(self, code: typing.Optional[str]) -> None: ...
    def loadCodeFromProjectFunctions(self) -> None: ...
    def loadCodeFromFile(self, path: typing.Optional[str]) -> None: ...
    def saveFunctionFile(self, fileName: typing.Optional[str]) -> None: ...
    def newFunctionFile(self, fileName: typing.Optional[str] = ...) -> None: ...
    @deprecated("""""")
    def removeFromUserExpressions(self, label: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def saveToUserExpressions(self, label: typing.Optional[str], expression: typing.Optional[str], helpText: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def loadUserExpressions(self) -> None: ...
    def expressionTree(self) -> typing.Optional['QgsExpressionTreeView']: ...
    @deprecated("""""")
    def loadRecent(self, collection: typing.Optional[str] = ...) -> None: ...
    @deprecated("""""")
    def saveToRecent(self, collection: typing.Optional[str] = ...) -> None: ...
    def setCustomPreviewGenerator(self, label: typing.Optional[str], choices: collections.abc.Iterable[tuple[typing.Optional[str], typing.Any]], a2: typing.Callable[..., None]) -> None: ...
    def isExpressionValid(self) -> bool: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def expressionContext(self) -> _core.QgsExpressionContext: ...
    def setExpectedOutputFormat(self, expected: typing.Optional[str]) -> None: ...
    def expectedOutputFormat(self) -> str: ...
    def setExpressionText(self, expression: typing.Optional[str]) -> None: ...
    def expressionText(self) -> str: ...
    def setGeomCalculator(self, da: _core.QgsDistanceArea) -> None: ...
    @deprecated("""""")
    def loadFieldsAndValues(self, fieldValues: dict[typing.Optional[str], collections.abc.Iterable[typing.Optional[str]]]) -> None: ...
    @typing.overload
    @deprecated("""""")
    def loadFieldNames(self) -> None: ...
    @typing.overload
    @deprecated("""""")
    def loadFieldNames(self, fields: _core.QgsFields) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def initWithFields(self, fields: _core.QgsFields, context: _core.QgsExpressionContext = ..., recentCollection: typing.Optional[str] = ..., flags: 'QgsExpressionBuilderWidget.Flag' = ...) -> None: ...
    def initWithLayer(self, layer: typing.Optional[_core.QgsVectorLayer], context: _core.QgsExpressionContext = ..., recentCollection: typing.Optional[str] = ..., flags: 'QgsExpressionBuilderWidget.Flag' = ...) -> None: ...
    def init(self, context: _core.QgsExpressionContext = ..., recentCollection: typing.Optional[str] = ..., flags: 'QgsExpressionBuilderWidget.Flag' = ...) -> None: ...


class QgsExpressionHighlighter(QtGui.QSyntaxHighlighter):

    def __init__(self, parent: typing.Optional[QtGui.QTextDocument] = ...) -> None: ...

    def highlightBlock(self, text: typing.Optional[str]) -> None: ...
    def addFields(self, fieldList: collections.abc.Iterable[typing.Optional[str]]) -> None: ...


class QgsExpressionLineEdit(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    def setExpression(self, expression: typing.Optional[str]) -> None: ...
    expressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def isValidExpression(self) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def expression(self) -> str: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def setGeomCalculator(self, distanceArea: _core.QgsDistanceArea) -> None: ...
    def setExpectedOutputFormat(self, expected: typing.Optional[str]) -> None: ...
    def expectedOutputFormat(self) -> str: ...
    def setMultiLine(self, multiLine: bool) -> None: ...
    def expressionDialogTitle(self) -> str: ...
    def setExpressionDialogTitle(self, title: typing.Optional[str]) -> None: ...


class QgsExpressionPreviewWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setCurrentFeature(self, feature: _core.QgsFeature) -> None: ...
    toolTipChanged: typing.ClassVar[QtCore.pyqtSignal]
    parserErrorChanged: typing.ClassVar[QtCore.pyqtSignal]
    evalErrorChanged: typing.ClassVar[QtCore.pyqtSignal]
    expressionParsed: typing.ClassVar[QtCore.pyqtSignal]
    def currentPreviewText(self) -> str: ...
    def parserErrors(self) -> list[_core.QgsExpression.ParserError]: ...
    def rootNode(self) -> typing.Optional[_core.QgsExpressionNode]: ...
    def parserError(self) -> bool: ...
    def evalError(self) -> bool: ...
    def setGeomCalculator(self, da: _core.QgsDistanceArea) -> None: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def expressionContext(self) -> _core.QgsExpressionContext: ...
    def setExpressionText(self, expression: typing.Optional[str]) -> None: ...
    def setCustomPreviewGenerator(self, label: typing.Optional[str], choices: collections.abc.Iterable[tuple[typing.Optional[str], typing.Any]], a2: typing.Callable[..., None]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class QgsExpressionSelectionDialog(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], startText: typing.Optional[str] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def done(self, r: int) -> None: ...
    def closeEvent(self, closeEvent: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def setMessageBar(self, messageBar: typing.Optional['QgsMessageBar']) -> None: ...
    def setGeomCalculator(self, da: _core.QgsDistanceArea) -> None: ...
    def expressionText(self) -> str: ...
    def setExpressionText(self, text: typing.Optional[str]) -> None: ...
    def expressionBuilder(self) -> typing.Optional[QgsExpressionBuilderWidget]: ...


class QgsExpressionItem(QtGui.QStandardItem):

    class ItemType(enum.IntEnum):
        Header = ... # type: QgsExpressionItem.ItemType
        Field = ... # type: QgsExpressionItem.ItemType
        ExpressionNode = ... # type: QgsExpressionItem.ItemType

    CUSTOM_SORT_ROLE = ... # type: int
    ITEM_NAME_ROLE = ... # type: int
    ITEM_TYPE_ROLE = ... # type: int
    LAYER_ID_ROLE = ... # type: int
    SEARCH_TAGS_ROLE = ... # type: int

    @typing.overload
    def __init__(self, label: typing.Optional[str], expressionText: typing.Optional[str], helpText: typing.Optional[str], itemType: 'QgsExpressionItem.ItemType' = ...) -> None: ...
    @typing.overload
    def __init__(self, label: typing.Optional[str], expressionText: typing.Optional[str], itemType: 'QgsExpressionItem.ItemType' = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsExpressionItem') -> None: ...

    def getItemType(self) -> 'QgsExpressionItem.ItemType': ...
    def setHelpText(self, helpText: typing.Optional[str]) -> None: ...
    def getHelpText(self) -> str: ...
    def getExpressionText(self) -> str: ...


class QgsExpressionItemSearchProxy(QtCore.QSortFilterProxyModel):

    def __init__(self) -> None: ...

    def lessThan(self, left: QtCore.QModelIndex, right: QtCore.QModelIndex) -> bool: ...
    def setFilterString(self, string: typing.Optional[str]) -> None: ...
    def filterAcceptsRow(self, source_row: int, source_parent: QtCore.QModelIndex) -> bool: ...


class QgsExpressionTreeView(QtWidgets.QTreeView):

    class MenuProvider(PyQt6.sip.wrapper):

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsExpressionTreeView.MenuProvider') -> None: ...

        def createContextMenu(self, item: typing.Optional[QgsExpressionItem]) -> typing.Optional[QtWidgets.QMenu]: ...

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setSearchText(self, text: typing.Optional[str]) -> None: ...
    currentExpressionItemChanged: typing.ClassVar[QtCore.pyqtSignal]
    expressionItemDoubleClicked: typing.ClassVar[QtCore.pyqtSignal]
    def loadExpressionsFromJson(self, expressionsDocument: QtCore.QJsonDocument) -> None: ...
    def exportUserExpressions(self) -> QtCore.QJsonDocument: ...
    def findExpressions(self, label: typing.Optional[str]) -> list[QgsExpressionItem]: ...
    def loadUserExpressions(self) -> None: ...
    def removeFromUserExpressions(self, label: typing.Optional[str]) -> None: ...
    def saveToUserExpressions(self, label: typing.Optional[str], expression: typing.Optional[str], helpText: typing.Optional[str]) -> None: ...
    def saveToRecent(self, expressionText: typing.Optional[str], collection: typing.Optional[str] = ...) -> None: ...
    def loadRecent(self, collection: typing.Optional[str] = ...) -> None: ...
    def currentItem(self) -> typing.Optional[QgsExpressionItem]: ...
    def refresh(self) -> None: ...
    def setMenuProvider(self, provider: typing.Optional['QgsExpressionTreeView.MenuProvider']) -> None: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def project(self) -> typing.Optional[_core.QgsProject]: ...
    def expressionContext(self) -> _core.QgsExpressionContext: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def loadFieldNames(self, fields: _core.QgsFields) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class QgsExtentGroupBox(QgsCollapsibleGroupBox):

    class ExtentState(enum.IntEnum):
        OriginalExtent = ... # type: QgsExtentGroupBox.ExtentState
        CurrentExtent = ... # type: QgsExtentGroupBox.ExtentState
        UserExtent = ... # type: QgsExtentGroupBox.ExtentState
        ProjectLayerExtent = ... # type: QgsExtentGroupBox.ExtentState
        DrawOnCanvas = ... # type: QgsExtentGroupBox.ExtentState

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    extentLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    extentChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setRatio(self, ratio: QtCore.QSize) -> None: ...
    def setOutputExtentFromDrawOnCanvas(self) -> None: ...
    def setOutputExtentFromLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setOutputExtentFromUser(self, extent: _core.QgsRectangle, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setOutputExtentFromCurrent(self) -> None: ...
    def setOutputExtentFromOriginal(self) -> None: ...
    def ratio(self) -> QtCore.QSize: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas'], drawOnCanvasOption: bool = ...) -> None: ...
    def titleBase(self) -> str: ...
    def setTitleBase(self, title: typing.Optional[str]) -> None: ...
    def extentState(self) -> 'QgsExtentGroupBox.ExtentState': ...
    def outputCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def outputExtent(self) -> _core.QgsRectangle: ...
    def setOutputCrs(self, outputCrs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def currentCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def currentExtent(self) -> _core.QgsRectangle: ...
    def setCurrentExtent(self, currentExtent: _core.QgsRectangle, currentCrs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def originalCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def originalExtent(self) -> _core.QgsRectangle: ...
    def setOriginalExtent(self, originalExtent: _core.QgsRectangle, originalCrs: _core.QgsCoordinateReferenceSystem) -> None: ...


class QgsExtentWidget(QtWidgets.QWidget):

    class WidgetStyle(enum.IntEnum):
        CondensedStyle = ... # type: QgsExtentWidget.WidgetStyle
        ExpandedStyle = ... # type: QgsExtentWidget.WidgetStyle

    class ExtentState(enum.IntEnum):
        OriginalExtent = ... # type: QgsExtentWidget.ExtentState
        CurrentExtent = ... # type: QgsExtentWidget.ExtentState
        UserExtent = ... # type: QgsExtentWidget.ExtentState
        ProjectLayerExtent = ... # type: QgsExtentWidget.ExtentState
        DrawOnCanvas = ... # type: QgsExtentWidget.ExtentState

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., style: 'QgsExtentWidget.WidgetStyle' = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, event: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    extentLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    toggleDialogVisibility: typing.ClassVar[QtCore.pyqtSignal]
    validationChanged: typing.ClassVar[QtCore.pyqtSignal]
    extentChanged: typing.ClassVar[QtCore.pyqtSignal]
    def clear(self) -> None: ...
    def setRatio(self, ratio: QtCore.QSize) -> None: ...
    def setOutputExtentFromDrawOnCanvas(self) -> None: ...
    def setOutputExtentFromLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setOutputExtentFromUser(self, extent: _core.QgsRectangle, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setOutputExtentFromCurrent(self) -> None: ...
    def setOutputExtentFromOriginal(self) -> None: ...
    def setNullValueAllowed(self, allowed: bool, notSetText: typing.Optional[str] = ...) -> None: ...
    def isValid(self) -> bool: ...
    def extentLayerName(self) -> str: ...
    def ratio(self) -> QtCore.QSize: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas'], drawOnCanvasOption: bool = ...) -> None: ...
    def extentState(self) -> 'QgsExtentWidget.ExtentState': ...
    def outputCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def outputExtent(self) -> _core.QgsRectangle: ...
    def setOutputCrs(self, outputCrs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def currentCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def currentExtent(self) -> _core.QgsRectangle: ...
    def setCurrentExtent(self, currentExtent: _core.QgsRectangle, currentCrs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def originalCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def originalExtent(self) -> _core.QgsRectangle: ...
    def setOriginalExtent(self, originalExtent: _core.QgsRectangle, originalCrs: _core.QgsCoordinateReferenceSystem) -> None: ...


class QgsExternalResourceWidget(QtWidgets.QWidget):

    class DocumentViewerContent(enum.IntEnum):
        NoContent = ... # type: QgsExternalResourceWidget.DocumentViewerContent
        Image = ... # type: QgsExternalResourceWidget.DocumentViewerContent
        Web = ... # type: QgsExternalResourceWidget.DocumentViewerContent
        Audio = ... # type: QgsExternalResourceWidget.DocumentViewerContent
        Video = ... # type: QgsExternalResourceWidget.DocumentViewerContent

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, messageBar: typing.Optional['QgsMessageBar']) -> None: ...
    def storageAuthConfigId(self) -> str: ...
    def setStorageAuthConfigId(self, authCfg: typing.Optional[str]) -> None: ...
    def storageType(self) -> str: ...
    def setStorageType(self, storageType: typing.Optional[str]) -> None: ...
    def setDefaultRoot(self, defaultRoot: typing.Optional[str]) -> None: ...
    def defaultRoot(self) -> str: ...
    def setRelativeStorage(self, relativeStorage: 'QgsFileWidget.RelativeStorage') -> None: ...
    def relativeStorage(self) -> 'QgsFileWidget.RelativeStorage': ...
    def setReadOnly(self, readOnly: bool) -> None: ...
    def setDocumentViewerWidth(self, width: int) -> None: ...
    def documentViewerWidth(self) -> int: ...
    def setDocumentViewerHeight(self, height: int) -> None: ...
    def documentViewerHeight(self) -> int: ...
    def setDocumentViewerContent(self, content: 'QgsExternalResourceWidget.DocumentViewerContent') -> None: ...
    def documentViewerContent(self) -> 'QgsExternalResourceWidget.DocumentViewerContent': ...
    def setFileWidgetVisible(self, visible: bool) -> None: ...
    def fileWidgetVisible(self) -> bool: ...
    def fileWidget(self) -> typing.Optional['QgsExternalStorageFileWidget']: ...
    def setDocumentPath(self, documentPath: typing.Any) -> None: ...
    @typing.overload
    def documentPath(self, type: QtCore.QMetaType.Type = ...) -> typing.Any: ...
    @typing.overload
    @deprecated("""""")
    def documentPath(self, type: typing.Any) -> typing.Any: ...


class QgsFeaturePickerWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    showBrowserButtonsChanged: typing.ClassVar[QtCore.pyqtSignal]
    fetchLimitChanged: typing.ClassVar[QtCore.pyqtSignal]
    fetchGeometryChanged: typing.ClassVar[QtCore.pyqtSignal]
    allowNullChanged: typing.ClassVar[QtCore.pyqtSignal]
    featureChanged: typing.ClassVar[QtCore.pyqtSignal]
    filterExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    displayExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    layerChanged: typing.ClassVar[QtCore.pyqtSignal]
    modelUpdated: typing.ClassVar[QtCore.pyqtSignal]
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def currentModelIndex(self) -> QtCore.QModelIndex: ...
    def setShowBrowserButtons(self, showBrowserButtons: bool) -> None: ...
    def showBrowserButtons(self) -> bool: ...
    def setFetchLimit(self, fetchLimit: int) -> None: ...
    def fetchLimit(self) -> int: ...
    def setFetchGeometry(self, fetchGeometry: bool) -> None: ...
    def fetchGeometry(self) -> bool: ...
    def setAllowNull(self, allowNull: bool) -> None: ...
    def allowNull(self) -> bool: ...
    def setFilterExpression(self, filterExpression: typing.Optional[str]) -> None: ...
    def nullIndex(self) -> int: ...
    def filterExpression(self) -> str: ...
    def setDisplayExpression(self, displayExpression: typing.Optional[str]) -> None: ...
    def displayExpression(self) -> str: ...
    def feature(self) -> _core.QgsFeature: ...
    def setFeature(self, featureId: int) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...


class QgsFeatureListComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    currentFeatureFoundChanged: typing.ClassVar[QtCore.pyqtSignal]
    currentFeatureChanged: typing.ClassVar[QtCore.pyqtSignal]
    allowNullChanged: typing.ClassVar[QtCore.pyqtSignal]
    identifierFieldChanged: typing.ClassVar[QtCore.pyqtSignal]
    identifierValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    parentFormFeatureChanged: typing.ClassVar[QtCore.pyqtSignal]
    formFeatureChanged: typing.ClassVar[QtCore.pyqtSignal]
    filterExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    displayExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    sourceLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    modelUpdated: typing.ClassVar[QtCore.pyqtSignal]
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def currentModelIndex(self) -> QtCore.QModelIndex: ...
    def setIdentifierFields(self, identifierFields: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    @deprecated("""""")
    def setIdentifierField(self, identifierField: typing.Optional[str]) -> None: ...
    def identifierFields(self) -> list[str]: ...
    @deprecated("""""")
    def identifierField(self) -> str: ...
    def setFetchLimit(self, fetchLimit: int) -> None: ...
    def fetchLimit(self) -> int: ...
    def setAllowNull(self, allowNull: bool) -> None: ...
    def allowNull(self) -> bool: ...
    def currentFeatureRequest(self) -> _core.QgsFeatureRequest: ...
    def setIdentifierValuesToNull(self) -> None: ...
    def setIdentifierValues(self, identifierValues: collections.abc.Iterable[typing.Any]) -> None: ...
    @deprecated("""""")
    def setIdentifierValue(self, identifierValue: typing.Any) -> None: ...
    def identifierValues(self) -> list[typing.Any]: ...
    @deprecated("""""")
    def identifierValue(self) -> typing.Any: ...
    def setParentFormFeature(self, feature: _core.QgsFeature) -> None: ...
    def parentFormFeature(self) -> _core.QgsFeature: ...
    def setFormFeature(self, feature: _core.QgsFeature) -> None: ...
    def formFeature(self) -> _core.QgsFeature: ...
    def setFilterExpression(self, filterExpression: typing.Optional[str]) -> None: ...
    def filterExpression(self) -> str: ...
    def nullIndex(self) -> int: ...
    def setDisplayExpression(self, displayExpression: typing.Optional[str]) -> None: ...
    def displayExpression(self) -> str: ...
    def setCurrentFeature(self, feature: _core.QgsFeature) -> None: ...
    def setSourceLayer(self, sourceLayer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def sourceLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...


class QgsFeatureSelectionDlg(QtWidgets.QDialog):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], context: QgsAttributeEditorContext, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def keyPressEvent(self, evt: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def setFilterExpression(self, filter: typing.Optional[str], type: QgsAttributeForm.FilterType) -> None: ...
    def setSelectedFeatures(self, ids: typing.Any) -> None: ...
    def selectedFeatures(self) -> typing.Any: ...


class QgsFieldComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def indexChanged(self, i: int) -> None: ...
    def setField(self, fieldName: typing.Optional[str]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    fieldChanged: typing.ClassVar[QtCore.pyqtSignal]
    def fields(self) -> _core.QgsFields: ...
    def setFields(self, fields: _core.QgsFields) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def currentField(self) -> str: ...
    def allowEmptyFieldName(self) -> bool: ...
    def setAllowEmptyFieldName(self, allowEmpty: bool) -> None: ...
    def filters(self) -> _core.QgsFieldProxyModel.Filter: ...
    def setFilters(self, filters: _core.QgsFieldProxyModel.Filter) -> None: ...


class QgsFieldDomainWidget(QtWidgets.QWidget):

    def __init__(self, type: _core.Qgis.FieldDomainType, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    validityChanged: typing.ClassVar[QtCore.pyqtSignal]
    def isValid(self) -> bool: ...
    def createFieldDomain(self) -> typing.Optional[_core.QgsFieldDomain]: ...
    def setFieldDomain(self, domain: typing.Optional[_core.QgsFieldDomain]) -> None: ...


class QgsFieldDomainDialog(QtWidgets.QDialog):

    def __init__(self, type: _core.Qgis.FieldDomainType, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def createFieldDomain(self) -> typing.Optional[_core.QgsFieldDomain]: ...
    def setFieldDomain(self, domain: typing.Optional[_core.QgsFieldDomain]) -> None: ...


class QgsFieldExpressionWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def eventFilter(self, watched: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    def isExpressionValid(self, expressionStr: typing.Optional[str]) -> bool: ...
    def updateLineEditStyle(self, expression: typing.Optional[str] = ...) -> None: ...
    def currentFieldChanged(self) -> None: ...
    def expressionEditingFinished(self) -> None: ...
    def expressionEdited(self, expression: typing.Optional[str]) -> None: ...
    def editExpression(self) -> None: ...
    def setExpression(self, expression: typing.Optional[str]) -> None: ...
    def setFields(self, fields: _core.QgsFields) -> None: ...
    def setField(self, fieldName: typing.Optional[str]) -> None: ...
    def setRow(self, row: int) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    buttonVisibleChanged: typing.ClassVar[QtCore.pyqtSignal]
    allowEvalErrorsChanged: typing.ClassVar[QtCore.pyqtSignal]
    fieldChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setButtonVisible(self, visible: bool) -> None: ...
    def buttonVisible(self) -> bool: ...
    def setAllowEvalErrors(self, allowEvalErrors: bool) -> None: ...
    def allowEvalErrors(self) -> bool: ...
    def setCustomPreviewGenerator(self, label: typing.Optional[str], choices: collections.abc.Iterable[tuple[typing.Optional[str], typing.Any]], a2: typing.Callable[..., None]) -> None: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def expression(self) -> str: ...
    def asExpression(self) -> str: ...
    def currentText(self) -> str: ...
    def isExpression(self) -> bool: ...
    def isValidExpression(self, expressionError: typing.Optional[typing.Optional[str]] = ...) -> bool: ...
    def currentField(self) -> typing.Tuple[str, typing.Optional[bool], typing.Optional[bool]]: ...
    def setGeomCalculator(self, da: _core.QgsDistanceArea) -> None: ...
    def filters(self) -> _core.QgsFieldProxyModel.Filter: ...
    def setLeftHandButtonStyle(self, isLeft: bool) -> None: ...
    def allowEmptyFieldName(self) -> bool: ...
    def setAllowEmptyFieldName(self, allowEmpty: bool) -> None: ...
    def setFilters(self, filters: _core.QgsFieldProxyModel.Filter) -> None: ...
    def expressionDialogTitle(self) -> str: ...
    def appendScope(self, scope: typing.Optional[_core.QgsExpressionContextScope]) -> None: ...
    def setExpressionDialogTitle(self, title: typing.Optional[str]) -> None: ...


class QgsFieldMappingWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., sourceFields: _core.QgsFields = ..., destinationFields: _core.QgsFields = ..., expressions: dict[typing.Optional[str], typing.Optional[str]] = ..., nativeTypes: collections.abc.Iterable[_core.QgsVectorDataProvider.NativeType] = ...) -> None: ...

    def invertSelection(self) -> None: ...
    def moveSelectedFieldsDown(self) -> bool: ...
    def moveSelectedFieldsUp(self) -> bool: ...
    def removeSelectedFields(self) -> bool: ...
    def appendField(self, field: _core.QgsField, expression: typing.Optional[str] = ...) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def scrollTo(self, index: QtCore.QModelIndex) -> None: ...
    def setNativeTypes(self, nativeTypes: collections.abc.Iterable[_core.QgsVectorDataProvider.NativeType]) -> None: ...
    def setDestinationFields(self, destinationFields: _core.QgsFields, expressions: dict[typing.Optional[str], typing.Optional[str]] = ...) -> None: ...
    def sourceLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setSourceLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def setSourceFields(self, sourceFields: _core.QgsFields) -> None: ...
    def selectionModel(self) -> typing.Optional[QtCore.QItemSelectionModel]: ...
    def setFieldPropertyMap(self, map: dict[typing.Optional[str], _core.QgsProperty]) -> None: ...
    def fieldPropertyMap(self) -> dict[str, _core.QgsProperty]: ...
    def mapping(self) -> list['QgsFieldMappingModel.Field']: ...
    def model(self) -> typing.Optional['QgsFieldMappingModel']: ...
    def destinationEditable(self) -> bool: ...
    def setDestinationEditable(self, editable: bool) -> None: ...


class QgsFieldMappingModel(QtCore.QAbstractTableModel):

    class ColumnDataIndex(enum.IntEnum):
        SourceExpression = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationName = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationType = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationLength = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationPrecision = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationConstraints = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationAlias = ... # type: QgsFieldMappingModel.ColumnDataIndex
        DestinationComment = ... # type: QgsFieldMappingModel.ColumnDataIndex

    class Field(PyQt6.sip.wrapper):

        expression = ... # type: typing.Optional[str]
        field = ... # type: _core.QgsField
        originalName = ... # type: typing.Optional[str]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsFieldMappingModel.Field') -> None: ...

    def __init__(self, sourceFields: _core.QgsFields = ..., destinationFields: _core.QgsFields = ..., expressions: dict[typing.Optional[str], typing.Optional[str]] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int) -> bool: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def setDestinationFields(self, destinationFields: _core.QgsFields, expressions: dict[typing.Optional[str], typing.Optional[str]] = ...) -> None: ...
    def setBaseExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def contextGenerator(self) -> typing.Optional[_core.QgsExpressionContextGenerator]: ...
    def setSourceFields(self, sourceFields: _core.QgsFields) -> None: ...
    def moveDown(self, index: QtCore.QModelIndex) -> bool: ...
    def moveUp(self, index: QtCore.QModelIndex) -> bool: ...
    def removeField(self, index: QtCore.QModelIndex) -> bool: ...
    def appendField(self, field: _core.QgsField, expression: typing.Optional[str] = ...) -> None: ...
    def setFieldPropertyMap(self, map: dict[typing.Optional[str], _core.QgsProperty]) -> None: ...
    def fieldPropertyMap(self) -> dict[str, _core.QgsProperty]: ...
    def mapping(self) -> list['QgsFieldMappingModel.Field']: ...
    def sourceFields(self) -> _core.QgsFields: ...
    @staticmethod
    def supportedDataTypes() -> list[_core.QgsVectorDataProvider.NativeType]: ...
    @staticmethod
    def dataTypes() -> dict[QtCore.QMetaType.Type, str]: ...
    def setDestinationEditable(self, editable: bool) -> None: ...
    def destinationEditable(self) -> bool: ...
    def setNativeTypes(self, nativeTypes: collections.abc.Iterable[_core.QgsVectorDataProvider.NativeType]) -> None: ...


class QgsFieldValidator(QtGui.QValidator):

    def __init__(self, parent: typing.Optional[QtCore.QObject], field: _core.QgsField, defaultValue: typing.Optional[str], dateFormat: typing.Optional[str] = ...) -> None: ...

    def dateFormat(self) -> str: ...
    def fixup(self, s: typing.Optional[typing.Any]) -> None: ...
    def validate(self, s: typing.Optional[typing.Any], i: int) -> typing.Tuple[QtGui.QValidator.State, str, int]: ...


class QgsFilterLineEdit(QtWidgets.QLineEdit):

    class ClearMode(enum.IntEnum):
        ClearToNull = ... # type: QgsFilterLineEdit.ClearMode
        ClearToDefault = ... # type: QgsFilterLineEdit.ClearMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., nullValue: typing.Optional[str] = ...) -> None: ...

    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def focusInEvent(self, e: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    selectOnFocusChanged: typing.ClassVar[QtCore.pyqtSignal]
    showSpinnerChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    cleared: typing.ClassVar[QtCore.pyqtSignal]
    def restoreState(self) -> None: ...
    def storeState(self) -> None: ...
    def clearValue(self) -> None: ...
    def hasStateStored(self) -> bool: ...
    def event(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setSelectOnFocus(self, selectOnFocus: bool) -> None: ...
    def selectOnFocus(self) -> bool: ...
    def setShowSpinner(self, showSpinner: bool) -> None: ...
    def showSpinner(self) -> bool: ...
    def isNull(self) -> bool: ...
    def value(self) -> str: ...
    def setValue(self, value: typing.Optional[str]) -> None: ...
    def defaultValue(self) -> str: ...
    def setDefaultValue(self, defaultValue: typing.Optional[str]) -> None: ...
    def showSearchIcon(self) -> bool: ...
    def setShowSearchIcon(self, visible: bool) -> None: ...
    def nullValue(self) -> str: ...
    def setNullValue(self, nullValue: typing.Optional[str]) -> None: ...
    def setClearMode(self, mode: 'QgsFilterLineEdit.ClearMode') -> None: ...
    def clearMode(self) -> 'QgsFilterLineEdit.ClearMode': ...
    def setShowClearButton(self, visible: bool) -> None: ...
    def showClearButton(self) -> bool: ...


class QgsFieldValuesLineEdit(QgsFilterLineEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    attributeIndexChanged: typing.ClassVar[QtCore.pyqtSignal]
    layerChanged: typing.ClassVar[QtCore.pyqtSignal]
    def attributeIndex(self) -> int: ...
    def setAttributeIndex(self, index: int) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class QgsAbstractFileContentSourceLineEdit(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    sourceChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setSource(self, source: typing.Optional[str]) -> None: ...
    def setPropertyOverrideToolButtonVisible(self, visible: bool) -> None: ...
    def propertyOverrideToolButton(self) -> typing.Optional['QgsPropertyOverrideButton']: ...
    def setLastPathSettingsKey(self, key: typing.Optional[str]) -> None: ...
    def source(self) -> str: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...


class QgsPictureSourceLineEditBase(QgsAbstractFileContentSourceLineEdit):

    class Format(enum.IntEnum):
        Svg = ... # type: QgsPictureSourceLineEditBase.Format
        Image = ... # type: QgsPictureSourceLineEditBase.Format
        AnimatedImage = ... # type: QgsPictureSourceLineEditBase.Format

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, format: 'QgsPictureSourceLineEditBase.Format', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setMode(self, format: 'QgsPictureSourceLineEditBase.Format') -> None: ...


class QgsSvgSourceLineEdit(QgsPictureSourceLineEditBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsImageSourceLineEdit(QgsPictureSourceLineEditBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsAnimatedImageSourceLineEdit(QgsPictureSourceLineEditBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsFileDownloaderDialog(QtWidgets.QProgressDialog):

    def __init__(self, url: QtCore.QUrl, outputFileName: typing.Optional[str], authcfg: typing.Optional[str] = ...) -> None: ...

    downloadProgress: typing.ClassVar[QtCore.pyqtSignal]
    downloadError: typing.ClassVar[QtCore.pyqtSignal]
    downloadCanceled: typing.ClassVar[QtCore.pyqtSignal]
    downloadExited: typing.ClassVar[QtCore.pyqtSignal]
    downloadCompleted: typing.ClassVar[QtCore.pyqtSignal]


class QgsFileWidget(QtWidgets.QWidget):

    class RelativeStorage(enum.IntEnum):
        Absolute = ... # type: QgsFileWidget.RelativeStorage
        RelativeProject = ... # type: QgsFileWidget.RelativeStorage
        RelativeDefaultPath = ... # type: QgsFileWidget.RelativeStorage

    class StorageMode(enum.IntEnum):
        GetFile = ... # type: QgsFileWidget.StorageMode
        GetDirectory = ... # type: QgsFileWidget.StorageMode
        GetMultipleFiles = ... # type: QgsFileWidget.StorageMode
        SaveFile = ... # type: QgsFileWidget.StorageMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def minimumSizeHint(self) -> QtCore.QSize: ...
    def relativePath(self, filePath: typing.Optional[str], removeRelative: bool) -> str: ...
    def toUrl(self, path: typing.Optional[str]) -> str: ...
    def setFilePaths(self, filePaths: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    @staticmethod
    def isMultiFiles(path: typing.Optional[str]) -> bool: ...
    def setSelectedFileNames(self, fileNames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def updateLayout(self) -> None: ...
    fileChanged: typing.ClassVar[QtCore.pyqtSignal]
    def lineEdit(self) -> typing.Optional[QgsFilterLineEdit]: ...
    def setRelativeStorage(self, relativeStorage: 'QgsFileWidget.RelativeStorage') -> None: ...
    def relativeStorage(self) -> 'QgsFileWidget.RelativeStorage': ...
    def setStorageMode(self, storageMode: 'QgsFileWidget.StorageMode') -> None: ...
    def storageMode(self) -> 'QgsFileWidget.StorageMode': ...
    def setDefaultRoot(self, defaultRoot: typing.Optional[str]) -> None: ...
    def defaultRoot(self) -> str: ...
    def setFullUrl(self, fullUrl: bool) -> None: ...
    def fullUrl(self) -> bool: ...
    def setUseLink(self, useLink: bool) -> None: ...
    def useLink(self) -> bool: ...
    def setFileWidgetButtonVisible(self, visible: bool) -> None: ...
    def fileWidgetButtonVisible(self) -> bool: ...
    def confirmOverwrite(self) -> bool: ...
    def setConfirmOverwrite(self, confirmOverwrite: bool) -> None: ...
    def selectedFilter(self) -> str: ...
    def setSelectedFilter(self, selectedFilter: typing.Optional[str]) -> None: ...
    def setOptions(self, options: QtWidgets.QFileDialog.Option) -> None: ...
    def options(self) -> QtWidgets.QFileDialog.Option: ...
    def setFilter(self, filter: typing.Optional[str]) -> None: ...
    def filter(self) -> str: ...
    def setDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def dialogTitle(self) -> str: ...
    def setReadOnly(self, readOnly: bool) -> None: ...
    def setFilePath(self, path: typing.Optional[str]) -> None: ...
    @staticmethod
    def splitFilePaths(path: typing.Optional[str]) -> list[str]: ...
    def filePath(self) -> str: ...


class QgsExternalStorageFileWidget(QgsFileWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def addFileWidgetScope(self) -> None: ...
    def setSelectedFileNames(self, fileNames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def updateLayout(self) -> None: ...
    def setReadOnly(self, readOnly: bool) -> None: ...
    @staticmethod
    def createFileWidgetScope() -> typing.Optional[_core.QgsExpressionContextScope]: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, messageBar: typing.Optional['QgsMessageBar']) -> None: ...
    def expressionContext(self) -> _core.QgsExpressionContext: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def storageUrlExpression(self) -> typing.Optional[_core.QgsExpression]: ...
    def storageUrlExpressionString(self) -> str: ...
    def setStorageUrlExpression(self, urlExpression: typing.Optional[str]) -> None: ...
    def storageAuthConfigId(self) -> str: ...
    def setStorageAuthConfigId(self, authCfg: typing.Optional[str]) -> None: ...
    def externalStorage(self) -> typing.Optional[_core.QgsExternalStorage]: ...
    def storageType(self) -> str: ...
    def setStorageType(self, storageType: typing.Optional[str]) -> None: ...


class QgsFindFilesByPatternWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    findComplete: typing.ClassVar[QtCore.pyqtSignal]
    def files(self) -> list[str]: ...


class QgsFindFilesByPatternDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def files(self) -> list[str]: ...


class QgsFloatingWidget(QtWidgets.QWidget):

    class AnchorPoint(enum.IntEnum):
        TopLeft = ... # type: QgsFloatingWidget.AnchorPoint
        TopMiddle = ... # type: QgsFloatingWidget.AnchorPoint
        TopRight = ... # type: QgsFloatingWidget.AnchorPoint
        MiddleLeft = ... # type: QgsFloatingWidget.AnchorPoint
        Middle = ... # type: QgsFloatingWidget.AnchorPoint
        MiddleRight = ... # type: QgsFloatingWidget.AnchorPoint
        BottomLeft = ... # type: QgsFloatingWidget.AnchorPoint
        BottomMiddle = ... # type: QgsFloatingWidget.AnchorPoint
        BottomRight = ... # type: QgsFloatingWidget.AnchorPoint

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, e: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    anchorWidgetPointChanged: typing.ClassVar[QtCore.pyqtSignal]
    anchorPointChanged: typing.ClassVar[QtCore.pyqtSignal]
    anchorWidgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setAnchorWidgetPoint(self, point: 'QgsFloatingWidget.AnchorPoint') -> None: ...
    def anchorWidgetPoint(self) -> 'QgsFloatingWidget.AnchorPoint': ...
    def setAnchorPoint(self, point: 'QgsFloatingWidget.AnchorPoint') -> None: ...
    def anchorPoint(self) -> 'QgsFloatingWidget.AnchorPoint': ...
    def anchorWidget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def setAnchorWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...


class QgsFocusWatcher(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...

    focusOut: typing.ClassVar[QtCore.pyqtSignal]
    focusIn: typing.ClassVar[QtCore.pyqtSignal]
    focusChanged: typing.ClassVar[QtCore.pyqtSignal]
    def eventFilter(self, obj: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...


class QgsFontButton(QtWidgets.QToolButton):

    class Mode(enum.IntEnum):
        ModeTextRenderer = ... # type: QgsFontButton.Mode
        ModeQFont = ... # type: QgsFontButton.Mode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., dialogTitle: typing.Optional[str] = ...) -> None: ...

    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def dropEvent(self, e: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, e: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def pasteColor(self) -> None: ...
    def copyColor(self) -> None: ...
    def pasteFormat(self) -> None: ...
    def copyFormat(self) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setCurrentFont(self, font: QtGui.QFont) -> None: ...
    def setToNullFormat(self) -> None: ...
    def setTextFormat(self, format: _core.QgsTextFormat) -> None: ...
    def showNullFormat(self) -> bool: ...
    def setNoFormatString(self, string: typing.Optional[str]) -> None: ...
    def setShowNullFormat(self, show: bool) -> None: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def currentFont(self) -> QtGui.QFont: ...
    def textFormat(self) -> _core.QgsTextFormat: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...
    def mapCanvas(self) -> typing.Optional['QgsMapCanvas']: ...
    def dialogTitle(self) -> str: ...
    def setDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def setMode(self, mode: 'QgsFontButton.Mode') -> None: ...
    def mode(self) -> 'QgsFontButton.Mode': ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsFormAnnotation(_core.QgsAnnotation):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def renderAnnotation(self, context: _core.QgsRenderContext, size: QtCore.QSizeF) -> None: ...
    @staticmethod
    def create() -> typing.Optional['QgsFormAnnotation']: ...
    def setAssociatedFeature(self, feature: _core.QgsFeature) -> None: ...
    def readXml(self, itemElem: QtXml.QDomElement, context: _core.QgsReadWriteContext) -> None: ...
    def writeXml(self, elem: QtXml.QDomElement, doc: QtXml.QDomDocument, context: _core.QgsReadWriteContext) -> None: ...
    def designerForm(self) -> str: ...
    def setDesignerForm(self, uiFile: typing.Optional[str]) -> None: ...
    def preferredFrameSize(self) -> QtCore.QSizeF: ...
    def minimumFrameSize(self) -> QtCore.QSizeF: ...
    def clone(self) -> typing.Optional['QgsFormAnnotation']: ...


class QgsGeocoderLocatorFilter(_core.QgsAbstractGeocoderLocatorFilter):

    def __init__(self, name: typing.Optional[str], displayName: typing.Optional[str], prefix: typing.Optional[str], geocoder: typing.Optional[_core.QgsGeocoderInterface], canvas: typing.Optional['QgsMapCanvas'], boundingBox: _core.QgsRectangle = ...) -> None: ...

    def clone(self) -> typing.Optional[_core.QgsLocatorFilter]: ...


class QgsGeometryRubberBand(QgsMapCanvasItem):

    class IconType(enum.IntEnum):
        ICON_NONE = ... # type: QgsGeometryRubberBand.IconType
        ICON_CROSS = ... # type: QgsGeometryRubberBand.IconType
        ICON_X = ... # type: QgsGeometryRubberBand.IconType
        ICON_BOX = ... # type: QgsGeometryRubberBand.IconType
        ICON_CIRCLE = ... # type: QgsGeometryRubberBand.IconType
        ICON_FULL_BOX = ... # type: QgsGeometryRubberBand.IconType

    def __init__(self, mapCanvas: typing.Optional['QgsMapCanvas'], geomType: _core.Qgis.GeometryType = ...) -> None: ...

    def setGeometryType(self, geometryType: _core.Qgis.GeometryType) -> None: ...
    def geometryType(self) -> _core.Qgis.GeometryType: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    def updatePosition(self) -> None: ...
    def setVertexDrawingEnabled(self, isVerticesDrawn: bool) -> None: ...
    def setIconType(self, iconType: 'QgsGeometryRubberBand.IconType') -> None: ...
    def setBrushStyle(self, brushStyle: QtCore.Qt.BrushStyle) -> None: ...
    def setLineStyle(self, penStyle: QtCore.Qt.PenStyle) -> None: ...
    def setStrokeWidth(self, width: int) -> None: ...
    def setStrokeColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setFillColor(self, c: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def moveVertex(self, id: _core.QgsVertexId, newPos: _core.QgsPoint) -> None: ...
    def geometry(self) -> typing.Optional[_core.QgsAbstractGeometry]: ...
    def setGeometry(self, geom: typing.Optional[_core.QgsAbstractGeometry]) -> None: ...


class QgsGeometryWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    geometryValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def copyAsGeoJson(self) -> None: ...
    def copyAsWkt(self) -> None: ...
    def clearGeometry(self) -> None: ...
    def setReadOnly(self, readOnly: bool) -> None: ...
    def isReadOnly(self) -> bool: ...
    def acceptedWkbTypes(self) -> list[_core.Qgis.WkbType]: ...
    def setAcceptedWkbTypes(self, types: collections.abc.Iterable[_core.Qgis.WkbType]) -> None: ...
    def geometryValue(self) -> _core.QgsReferencedGeometry: ...
    def setGeometryValue(self, geometry: _core.QgsReferencedGeometry) -> None: ...


class QgsGpsToolsInterface(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsGpsToolsInterface') -> None: ...

    def setGpsTrackLineSymbol(self, symbol: typing.Optional[_core.QgsLineSymbol]) -> None: ...
    def createFeatureFromGpsTrack(self) -> None: ...
    def setGpsPanelConnection(self, connection: typing.Optional[_core.QgsGpsConnection]) -> None: ...


class QgsGradientColorRampDialog(QtWidgets.QDialog):

    def __init__(self, ramp: _core.QgsGradientColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setColor2(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor1(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def setRamp(self, ramp: _core.QgsGradientColorRamp) -> None: ...
    def ramp(self) -> _core.QgsGradientColorRamp: ...


class QgsGradientStopEditor(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., ramp: typing.Optional[_core.QgsGradientColorRamp] = ...) -> None: ...

    def dropEvent(self, e: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseDoubleClickEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    selectedStopChanged: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setColor2(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor1(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def deleteSelectedStop(self) -> None: ...
    def setSelectedStopDetails(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], offset: float) -> None: ...
    def setSelectedStopDirection(self, direction: _core.Qgis.AngularDirection) -> None: ...
    def setSelectedStopColorSpec(self, spec: QtGui.QColor.Spec) -> None: ...
    def setSelectedStopOffset(self, offset: float) -> None: ...
    def setSelectedStopColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def selectedStop(self) -> _core.QgsGradientStop: ...
    def selectStop(self, index: int) -> None: ...
    def gradientRamp(self) -> _core.QgsGradientColorRamp: ...
    def setGradientRamp(self, ramp: _core.QgsGradientColorRamp) -> None: ...


class QgsGroupWmsDataDialog(QtWidgets.QDialog):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...
    @typing.overload
    def __init__(self, serverProperties: _core.QgsMapLayerServerProperties, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def serverProperties(self) -> typing.Optional[_core.QgsMapLayerServerProperties]: ...
    def hasTimeDimension(self) -> bool: ...
    def setHasTimeDimension(self, hasTimeDimension: bool) -> None: ...
    @deprecated("""""")
    def setGroupAbstract(self, abstract: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def setGroupShortName(self, shortName: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def setGroupTitle(self, title: typing.Optional[str]) -> None: ...
    def groupAbstract(self) -> str: ...
    def groupShortName(self) -> str: ...
    def groupTitle(self) -> str: ...


class QgsGui(QtCore.QObject):

    class HigFlag(enum.IntEnum):
        HigMenuTextIsTitleCase = ... # type: QgsGui.HigFlag
        HigDialogTitleIsTitleCase = ... # type: QgsGui.HigFlag

    class ProjectCrsBehavior(enum.IntEnum):
        UseCrsOfFirstLayerAdded = ... # type: QgsGui.ProjectCrsBehavior
        UsePresetCrs = ... # type: QgsGui.ProjectCrsBehavior

    optionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def hasWebEngine() -> bool: ...
    @staticmethod
    def findScreenAt(point: QtCore.QPoint) -> typing.Optional[QtGui.QScreen]: ...
    @staticmethod
    def sampleColor(point: QtCore.QPoint) -> QtGui.QColor: ...
    @staticmethod
    def higFlags() -> 'QgsGui.HigFlag': ...
    @staticmethod
    def storedQueryManager() -> typing.Optional['QgsStoredQueryManager']: ...
    @staticmethod
    def inputControllerManager() -> typing.Optional['QgsInputControllerManager']: ...
    @staticmethod
    def setWindowManager(manager: typing.Optional['QgsWindowManagerInterface']) -> None: ...
    @staticmethod
    def windowManager() -> typing.Optional['QgsWindowManagerInterface']: ...
    @staticmethod
    def enableAutoGeometryRestore(widget: typing.Optional[QtWidgets.QWidget], key: typing.Optional[str] = ...) -> None: ...
    @staticmethod
    def settingsEditorWidgetRegistry() -> typing.Optional['QgsSettingsEditorWidgetRegistry']: ...
    @staticmethod
    def historyProviderRegistry() -> typing.Optional['QgsHistoryProviderRegistry']: ...
    @staticmethod
    def relationWidgetRegistry() -> typing.Optional['QgsRelationWidgetRegistry']: ...
    @staticmethod
    def sourceWidgetProviderRegistry() -> typing.Optional['QgsProviderSourceWidgetProviderRegistry']: ...
    @staticmethod
    def subsetStringEditorProviderRegistry() -> typing.Optional['QgsSubsetStringEditorProviderRegistry']: ...
    @staticmethod
    def sensorGuiRegistry() -> typing.Optional['QgsSensorGuiRegistry']: ...
    @staticmethod
    def providerGuiRegistry() -> typing.Optional['QgsProviderGuiRegistry']: ...
    @staticmethod
    def projectStorageGuiRegistry() -> typing.Optional['QgsProjectStorageGuiRegistry']: ...
    @staticmethod
    def dataItemGuiProviderRegistry() -> typing.Optional[QgsDataItemGuiProviderRegistry]: ...
    @staticmethod
    def processingFavoriteAlgorithmManager() -> typing.Optional['QgsProcessingFavoriteAlgorithmManager']: ...
    @staticmethod
    def processingRecentAlgorithmLog() -> typing.Optional['QgsProcessingRecentAlgorithmLog']: ...
    @staticmethod
    def codeEditorColorSchemeRegistry() -> typing.Optional['QgsCodeEditorColorSchemeRegistry']: ...
    @staticmethod
    def numericFormatGuiRegistry() -> typing.Optional['QgsNumericFormatGuiRegistry']: ...
    @staticmethod
    def processingGuiRegistry() -> typing.Optional['QgsProcessingGuiRegistry']: ...
    @staticmethod
    def advancedDigitizingToolsRegistry() -> typing.Optional[QgsAdvancedDigitizingToolsRegistry]: ...
    @staticmethod
    def annotationItemGuiRegistry() -> typing.Optional['QgsAnnotationItemGuiRegistry']: ...
    @staticmethod
    def layoutItemGuiRegistry() -> typing.Optional['QgsLayoutItemGuiRegistry']: ...
    @staticmethod
    def mapLayerActionRegistry() -> typing.Optional['QgsMapLayerActionRegistry']: ...
    @staticmethod
    def layerTreeEmbeddedWidgetRegistry() -> typing.Optional['QgsLayerTreeEmbeddedWidgetRegistry']: ...
    @staticmethod
    def shortcutsManager() -> typing.Optional['QgsShortcutsManager']: ...
    @staticmethod
    def sourceSelectProviderRegistry() -> typing.Optional['QgsSourceSelectProviderRegistry']: ...
    @staticmethod
    def editorWidgetRegistry() -> typing.Optional['QgsEditorWidgetRegistry']: ...
    @staticmethod
    def settingsRegistryGui() -> typing.Optional['QgsSettingsRegistryGui']: ...
    @staticmethod
    def instance() -> typing.Optional['QgsGui']: ...


class QgsHelp(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsHelp') -> None: ...

    @staticmethod
    def helpUrl(key: typing.Optional[str]) -> QtCore.QUrl: ...
    @staticmethod
    def openHelp(key: typing.Optional[str]) -> None: ...


class QgsHighlight(QgsMapCanvasItem):

    @typing.overload
    def __init__(self, mapCanvas: typing.Optional['QgsMapCanvas'], geom: _core.QgsGeometry, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    @typing.overload
    def __init__(self, mapCanvas: typing.Optional['QgsMapCanvas'], feature: _core.QgsFeature, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...

    def updateRect(self) -> None: ...
    def paint(self, p: typing.Optional[QtGui.QPainter]) -> None: ...
    def applyDefaultStyle(self) -> None: ...
    def updatePosition(self) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def setMinWidth(self, width: float) -> None: ...
    def setBuffer(self, buffer: float) -> None: ...
    def buffer(self) -> float: ...
    def setWidth(self, width: int) -> None: ...
    def width(self) -> int: ...
    def setFillColor(self, fillColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def fillColor(self) -> QtGui.QColor: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def color(self) -> QtGui.QColor: ...


class QgsHighlightableLineEdit(QgsFilterLineEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def setHighlighted(self, highlighted: bool) -> None: ...
    def isHighlighted(self) -> bool: ...


class QgsHistogramWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsVectorLayer] = ..., fieldOrExp: typing.Optional[str] = ...) -> None: ...

    def drawHistogram(self) -> None: ...
    def setSourceFieldExp(self, fieldOrExp: typing.Optional[str]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def refresh(self) -> None: ...
    def refreshValues(self) -> None: ...
    def setYAxisTitle(self, title: typing.Optional[str]) -> None: ...
    def yAxisTitle(self) -> str: ...
    def setXAxisTitle(self, title: typing.Optional[str]) -> None: ...
    def xAxisTitle(self) -> str: ...
    def graduatedRanges(self) -> list[_core.QgsRendererRange]: ...
    def setGraduatedRanges(self, ranges: collections.abc.Iterable[_core.QgsRendererRange]) -> None: ...
    def brush(self) -> QtGui.QBrush: ...
    def setBrush(self, brush: typing.Union[QtGui.QBrush, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], QtGui.QGradient]) -> None: ...
    def pen(self) -> QtGui.QPen: ...
    def setPen(self, pen: typing.Union[QtGui.QPen, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]]) -> None: ...
    def sourceFieldExp(self) -> str: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...


class QgsHttpHeaderWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    @deprecated("""""")
    def updateSettings(self, settings: _core.QgsSettings, key: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def setFromSettings(self, settings: _core.QgsSettings, key: typing.Optional[str]) -> None: ...
    def setHeaders(self, headers: _core.QgsHttpHeaders) -> None: ...
    def httpHeaders(self) -> _core.QgsHttpHeaders: ...


class QgsIdentifyMenu(QtWidgets.QMenu):

    class MenuLevel(enum.IntEnum):
        LayerLevel = ... # type: QgsIdentifyMenu.MenuLevel
        FeatureLevel = ... # type: QgsIdentifyMenu.MenuLevel

    class ActionData(PyQt6.sip.wrapper):

        mAllResults = ... # type: bool
        mFeatureId = ... # type: int
        mIsExternalAction = ... # type: bool
        mIsValid = ... # type: bool
        mLayer = ... # type: _core.QgsMapLayer
        mLevel = ... # type: 'QgsIdentifyMenu.MenuLevel'
        mMapLayerAction = ... # type: 'QgsMapLayerAction'

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer], mapLayerAction: typing.Optional['QgsMapLayerAction'] = ...) -> None: ...
        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer], fid: int, mapLayerAction: typing.Optional['QgsMapLayerAction'] = ...) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsIdentifyMenu.ActionData') -> None: ...

    def __init__(self, canvas: typing.Optional['QgsMapCanvas']) -> None: ...

    def closeEvent(self, e: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    @staticmethod
    @deprecated("""""")
    def styleHighlight(highlight: typing.Optional[QgsHighlight]) -> None: ...
    def exec(self, idResults: collections.abc.Iterable['QgsMapToolIdentify.IdentifyResult'], pos: QtCore.QPoint) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    def removeCustomActions(self) -> None: ...
    def addCustomAction(self, action: typing.Optional['QgsMapLayerAction']) -> None: ...
    def maxFeatureDisplay(self) -> int: ...
    def setMaxFeatureDisplay(self, maxFeatureDisplay: int) -> None: ...
    def maxLayerDisplay(self) -> int: ...
    def setMaxLayerDisplay(self, maxLayerDisplay: int) -> None: ...
    def resultsIfExternalAction(self) -> bool: ...
    def setResultsIfExternalAction(self, resultsIfExternalAction: bool) -> None: ...
    def showFeatureActions(self) -> bool: ...
    def setShowFeatureActions(self, showFeatureActions: bool) -> None: ...
    def expressionContextScope(self) -> _core.QgsExpressionContextScope: ...
    def setExpressionContextScope(self, scope: _core.QgsExpressionContextScope) -> None: ...
    def execWithSingleResult(self) -> bool: ...
    def setExecWithSingleResult(self, execWithSingleResult: bool) -> None: ...
    def allowMultipleReturn(self) -> bool: ...
    def setAllowMultipleReturn(self, multipleReturn: bool) -> None: ...
    @staticmethod
    def findFeaturesOnCanvas(event: typing.Optional['QgsMapMouseEvent'], canvas: typing.Optional['QgsMapCanvas'], geometryTypes: collections.abc.Iterable[_core.Qgis.GeometryType]) -> list['QgsMapToolIdentify.IdentifyResult']: ...


class QgsTableWidgetBase(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def init(self, model: typing.Optional[QtCore.QAbstractTableModel]) -> None: ...
    def setReadOnly(self, readOnly: bool) -> None: ...
    def isReadOnly(self) -> bool: ...


class QgsKeyValueWidget(QgsTableWidgetBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setReadOnly(self, readOnly: bool) -> None: ...
    def map(self) -> dict[str, typing.Any]: ...
    def setMap(self, map: dict[typing.Optional[str], typing.Any]) -> None: ...


class QgsLayerMetadataSearchWidget(QgsAbstractDataSourceWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., widgetMode: _core.QgsProviderRegistry.WidgetMode = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def reset(self) -> None: ...
    def addButtonClicked(self) -> None: ...
    def refresh(self) -> None: ...
    def updateExtentFilter(self, index: int) -> None: ...
    def setMapCanvas(self, mapCanvas: typing.Optional['QgsMapCanvas']) -> None: ...


class QgsLayerMetadataResultsModel(QtCore.QAbstractTableModel):

    class Sections(enum.IntEnum):
        Identifier = ... # type: QgsLayerMetadataResultsModel.Sections
        Title = ... # type: QgsLayerMetadataResultsModel.Sections
        Abstract = ... # type: QgsLayerMetadataResultsModel.Sections
        DataProviderName = ... # type: QgsLayerMetadataResultsModel.Sections
        GeometryType = ... # type: QgsLayerMetadataResultsModel.Sections

    class CustomRole(enum.IntEnum):
        Metadata = ... # type: QgsLayerMetadataResultsModel.CustomRole

    def __init__(self, searchContext: _core.QgsMetadataSearchContext, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    progressChanged: typing.ClassVar[QtCore.pyqtSignal]
    def cancel(self) -> None: ...
    def resultsReady(self, results: _core.QgsLayerMetadataSearchResults) -> None: ...
    def reloadAsync(self) -> None: ...
    def reload(self) -> None: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex) -> int: ...


class QgsLayerMetadataResultsProxyModel(QtCore.QSortFilterProxyModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    def setFilterMapLayerType(self, mapLayerType: _core.Qgis.LayerType) -> None: ...
    def setFilterString(self, filterString: typing.Optional[str]) -> None: ...
    def setFilterGeometryType(self, geometryType: _core.Qgis.GeometryType) -> None: ...
    def setFilterExtent(self, extent: _core.QgsRectangle) -> None: ...
    def setFilterMapLayerTypeEnabled(self, enabled: bool) -> None: ...
    def setFilterGeometryTypeEnabled(self, enabled: bool) -> None: ...
    def filterString(self) -> str: ...


class QgsOptionsDialogBase(QtWidgets.QDialog):

    def __init__(self, settingsKey: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., settings: typing.Optional[_core.QgsSettings] = ...) -> None: ...

    def registerTextSearchWidgets(self) -> None: ...
    def updateWindowTitle(self) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def warnAboutMissingObjects(self) -> None: ...
    def optionsStackedWidget_WidgetRemoved(self, index: int) -> None: ...
    def optionsStackedWidget_CurrentChanged(self, index: int) -> None: ...
    def updateOptionsListVerticalTabs(self) -> None: ...
    def searchText(self, text: typing.Optional[str]) -> None: ...
    def insertPage(self, title: typing.Optional[str], tooltip: typing.Optional[str], icon: QtGui.QIcon, widget: typing.Optional[QtWidgets.QWidget], before: typing.Optional[str], path: collections.abc.Iterable[typing.Optional[str]] = ..., key: typing.Optional[str] = ...) -> None: ...
    def addPage(self, title: typing.Optional[str], tooltip: typing.Optional[str], icon: QtGui.QIcon, widget: typing.Optional[QtWidgets.QWidget], path: collections.abc.Iterable[typing.Optional[str]] = ..., key: typing.Optional[str] = ...) -> None: ...
    def setCurrentPage(self, page: typing.Optional[str]) -> None: ...
    def iconOnly(self) -> bool: ...
    def resizeAlltabs(self, index: int) -> None: ...
    def restoreLastPage(self) -> None: ...
    def restoreOptionsBaseUi(self, title: typing.Optional[str] = ...) -> None: ...
    def setSettings(self, settings: typing.Optional[_core.QgsSettings]) -> None: ...
    def initOptionsBase(self, restoreUi: bool = ..., title: typing.Optional[str] = ...) -> None: ...


class QgsLayerPropertiesDialog(QgsOptionsDialogBase):

    def __init__(self, layer: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional['QgsMapCanvas'], settingsKey: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., settings: typing.Optional[_core.QgsSettings] = ...) -> None: ...

    def openUrl(self, url: QtCore.QUrl) -> None: ...
    def optionsStackedWidget_CurrentChanged(self, index: int) -> None: ...
    def rollback(self) -> None: ...
    def storeCurrentStyleForUndo(self) -> None: ...
    def refocusDialog(self) -> None: ...
    def initialize(self) -> None: ...
    def loadDefaultStyle(self) -> None: ...
    def saveStyleAsDefault(self) -> None: ...
    def saveStyleToFile(self) -> None: ...
    def loadStyleFromFile(self) -> None: ...
    def loadDefaultMetadata(self) -> None: ...
    def saveMetadataAsDefault(self) -> None: ...
    def saveMetadataToFile(self) -> None: ...
    def loadMetadataFromFile(self) -> None: ...
    def saveStyleAs(self) -> None: ...
    def loadStyle(self) -> None: ...
    def saveDefaultStyle(self) -> None: ...
    def addPropertiesPageFactory(self, factory: typing.Optional['QgsMapLayerConfigWidgetFactory']) -> None: ...
    def setMetadataWidget(self, widget: typing.Optional['QgsMetadataWidget'], page: typing.Optional[QtWidgets.QWidget]) -> None: ...


class QgsLegendFilterButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    expressionTextChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setVectorLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def setExpressionText(self, expression: typing.Optional[str]) -> None: ...
    def expressionText(self) -> str: ...


class QgsLegendPatchShapeButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., dialogTitle: typing.Optional[str] = ...) -> None: ...

    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setToDefault(self) -> None: ...
    def setShape(self, shape: _core.QgsLegendPatchShape) -> None: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    def shape(self) -> _core.QgsLegendPatchShape: ...
    def dialogTitle(self) -> str: ...
    def setDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def setPreviewSymbol(self, symbol: typing.Optional[_core.QgsSymbol]) -> None: ...
    def symbolType(self) -> _core.Qgis.SymbolType: ...
    def setSymbolType(self, type: _core.Qgis.SymbolType) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsLegendPatchShapeWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., shape: _core.QgsLegendPatchShape = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setShape(self, shape: _core.QgsLegendPatchShape) -> None: ...
    def shape(self) -> _core.QgsLegendPatchShape: ...


class QgsLegendPatchShapeDialog(QtWidgets.QDialog):

    def __init__(self, shape: _core.QgsLegendPatchShape, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def shape(self) -> _core.QgsLegendPatchShape: ...


class QgsLimitedRandomColorRampWidget(QgsPanelWidget):

    def __init__(self, ramp: _core.QgsLimitedRandomColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setVal2(self, val: int) -> None: ...
    def setVal1(self, val: int) -> None: ...
    def setSat2(self, val: int) -> None: ...
    def setSat1(self, val: int) -> None: ...
    def setHue2(self, val: int) -> None: ...
    def setHue1(self, val: int) -> None: ...
    def setCount(self, val: int) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setRamp(self, ramp: _core.QgsLimitedRandomColorRamp) -> None: ...
    def ramp(self) -> _core.QgsLimitedRandomColorRamp: ...


class QgsLimitedRandomColorRampDialog(QtWidgets.QDialog):

    def __init__(self, ramp: _core.QgsLimitedRandomColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def setRamp(self, ramp: _core.QgsLimitedRandomColorRamp) -> None: ...
    def ramp(self) -> _core.QgsLimitedRandomColorRamp: ...


class QgsListWidget(QgsTableWidgetBase):

    def __init__(self, subType: QtCore.QMetaType.Type, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setReadOnly(self, readOnly: bool) -> None: ...
    def valid(self) -> bool: ...
    def list(self) -> list[typing.Any]: ...
    def setList(self, list: collections.abc.Iterable[typing.Any]) -> None: ...


class QgsLongLongValidator(QtGui.QValidator):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...
    @typing.overload
    def __init__(self, bottom: int, top: int, parent: typing.Optional[QtCore.QObject]) -> None: ...

    def top(self) -> int: ...
    def bottom(self) -> int: ...
    def setRange(self, bottom: int, top: int) -> None: ...
    def setTop(self, top: int) -> None: ...
    def setBottom(self, bottom: int) -> None: ...
    def validate(self, input: typing.Optional[str]) -> typing.Tuple[QtGui.QValidator.State, int]: ...


class QgsLUDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def setUpperValue(self, val: typing.Optional[str]) -> None: ...
    def upperValueDouble(self) -> float: ...
    def upperValue(self) -> str: ...
    def setLowerValue(self, val: typing.Optional[str]) -> None: ...
    def lowerValueDouble(self) -> float: ...
    def lowerValue(self) -> str: ...


class QgsManageConnectionsDialog(QtWidgets.QDialog):

    class Type(enum.IntEnum):
        WMS = ... # type: QgsManageConnectionsDialog.Type
        PostGIS = ... # type: QgsManageConnectionsDialog.Type
        WFS = ... # type: QgsManageConnectionsDialog.Type
        MSSQL = ... # type: QgsManageConnectionsDialog.Type
        WCS = ... # type: QgsManageConnectionsDialog.Type
        Oracle = ... # type: QgsManageConnectionsDialog.Type
        HANA = ... # type: QgsManageConnectionsDialog.Type
        XyzTiles = ... # type: QgsManageConnectionsDialog.Type
        ArcgisMapServer = ... # type: QgsManageConnectionsDialog.Type
        ArcgisFeatureServer = ... # type: QgsManageConnectionsDialog.Type
        VectorTile = ... # type: QgsManageConnectionsDialog.Type
        TiledScene = ... # type: QgsManageConnectionsDialog.Type
        SensorThings = ... # type: QgsManageConnectionsDialog.Type
        CloudStorage = ... # type: QgsManageConnectionsDialog.Type
        STAC = ... # type: QgsManageConnectionsDialog.Type

    class Mode(enum.IntEnum):
        Export = ... # type: QgsManageConnectionsDialog.Mode
        Import = ... # type: QgsManageConnectionsDialog.Mode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., mode: 'QgsManageConnectionsDialog.Mode' = ..., type: 'QgsManageConnectionsDialog.Type' = ..., fileName: typing.Optional[str] = ...) -> None: ...

    def selectionChanged(self) -> None: ...
    def clearSelection(self) -> None: ...
    def selectAll(self) -> None: ...
    def doExportImport(self) -> None: ...


class QgsMapCanvas(QtWidgets.QGraphicsView, _core.QgsExpressionContextGenerator):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def updateCanvasItemPositions(self) -> None: ...
    def emitExtentsChanged(self) -> None: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def moveCanvasContents(self, reset: bool = ...) -> None: ...
    def viewportEvent(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def resizeEvent(self, e: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def wheelEvent(self, e: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseDoubleClickEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def keyReleaseEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    contextMenuAboutToShow: typing.ClassVar[QtCore.pyqtSignal]
    zRangeChanged: typing.ClassVar[QtCore.pyqtSignal]
    temporalRangeChanged: typing.ClassVar[QtCore.pyqtSignal]
    tapAndHoldGestureOccurred: typing.ClassVar[QtCore.pyqtSignal]
    panDistanceBearingChanged: typing.ClassVar[QtCore.pyqtSignal]
    renderErrorOccurred: typing.ClassVar[QtCore.pyqtSignal]
    messageEmitted: typing.ClassVar[QtCore.pyqtSignal]
    themeChanged: typing.ClassVar[QtCore.pyqtSignal]
    layerStyleOverridesChanged: typing.ClassVar[QtCore.pyqtSignal]
    currentLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    transformContextChanged: typing.ClassVar[QtCore.pyqtSignal]
    destinationCrsChanged: typing.ClassVar[QtCore.pyqtSignal]
    zoomNextStatusChanged: typing.ClassVar[QtCore.pyqtSignal]
    zoomLastStatusChanged: typing.ClassVar[QtCore.pyqtSignal]
    selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    mapToolSet: typing.ClassVar[QtCore.pyqtSignal]
    keyReleased: typing.ClassVar[QtCore.pyqtSignal]
    keyPressed: typing.ClassVar[QtCore.pyqtSignal]
    layersChanged: typing.ClassVar[QtCore.pyqtSignal]
    mapRefreshCanceled: typing.ClassVar[QtCore.pyqtSignal]
    renderStarting: typing.ClassVar[QtCore.pyqtSignal]
    mapCanvasRefreshed: typing.ClassVar[QtCore.pyqtSignal]
    renderComplete: typing.ClassVar[QtCore.pyqtSignal]
    canvasColorChanged: typing.ClassVar[QtCore.pyqtSignal]
    magnificationChanged: typing.ClassVar[QtCore.pyqtSignal]
    rotationChanged: typing.ClassVar[QtCore.pyqtSignal]
    extentsChanged: typing.ClassVar[QtCore.pyqtSignal]
    scaleLockChanged: typing.ClassVar[QtCore.pyqtSignal]
    scaleChanged: typing.ClassVar[QtCore.pyqtSignal]
    xyCoordinates: typing.ClassVar[QtCore.pyqtSignal]
    def setZRange(self, range: _core.QgsDoubleRange) -> None: ...
    def zRange(self) -> _core.QgsDoubleRange: ...
    def zoomResolutions(self) -> list[float]: ...
    def zoomOutFactor(self) -> float: ...
    def zoomInFactor(self) -> float: ...
    def setZoomResolutions(self, resolutions: collections.abc.Iterable[float]) -> None: ...
    @typing.overload
    def zoomToSelected(self, layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...
    @typing.overload
    def zoomToSelected(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def zoomOut(self) -> None: ...
    def zoomIn(self) -> None: ...
    def setScaleLocked(self, isLocked: bool) -> None: ...
    def setMagnificationFactor(self, factor: float, center: typing.Optional[_core.QgsPointXY] = ...) -> None: ...
    def writeProject(self, a0: QtXml.QDomDocument) -> None: ...
    def readProject(self, a0: QtXml.QDomDocument) -> None: ...
    def stopRendering(self) -> None: ...
    def setRenderFlag(self, flag: bool) -> None: ...
    def layerStateChange(self) -> None: ...
    def saveAsImage(self, fileName: typing.Optional[str], QPixmap: typing.Optional[QtGui.QPixmap] = ..., a2: typing.Optional[str] = ...) -> None: ...
    def selectionChangedSlot(self) -> None: ...
    def redrawAllLayers(self) -> None: ...
    def refreshAllLayers(self) -> None: ...
    def refresh(self) -> None: ...
    def setMapController(self, controller: typing.Optional['QgsAbstract2DMapController']) -> None: ...
    def allowInteraction(self, interaction: 'QgsMapCanvasInteractionBlocker.Interaction') -> bool: ...
    def removeInteractionBlocker(self, blocker: typing.Optional['QgsMapCanvasInteractionBlocker']) -> None: ...
    def installInteractionBlocker(self, blocker: typing.Optional['QgsMapCanvasInteractionBlocker']) -> None: ...
    def temporalRange(self) -> _core.QgsDateTimeRange: ...
    def setTemporalRange(self, range: _core.QgsDateTimeRange) -> None: ...
    def setPreviewJobsEnabled(self, enabled: bool) -> None: ...
    def previewJobsEnabled(self) -> bool: ...
    def labelingEngineSettings(self) -> _core.QgsLabelingEngineSettings: ...
    def setLabelingEngineSettings(self, settings: _core.QgsLabelingEngineSettings) -> None: ...
    def setAnnotationsVisible(self, visible: bool) -> None: ...
    def annotationsVisible(self) -> bool: ...
    def annotationItems(self) -> list['QgsMapCanvasAnnotationItem']: ...
    def setSegmentationToleranceType(self, type: _core.QgsAbstractGeometry.SegmentationToleranceType) -> None: ...
    def setSegmentationTolerance(self, tolerance: float) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def defaultExpressionContextScope(self) -> typing.Optional[_core.QgsExpressionContextScope]: ...
    def expressionContextScope(self) -> _core.QgsExpressionContextScope: ...
    def setExpressionContextScope(self, scope: _core.QgsExpressionContextScope) -> None: ...
    def setSnappingUtils(self, utils: typing.Optional[_core.QgsSnappingUtils]) -> None: ...
    def snappingUtils(self) -> typing.Optional[_core.QgsSnappingUtils]: ...
    def previewMode(self) -> 'QgsPreviewEffect.PreviewMode': ...
    def setPreviewMode(self, mode: 'QgsPreviewEffect.PreviewMode') -> None: ...
    def previewModeEnabled(self) -> bool: ...
    def setPreviewModeEnabled(self, previewEnabled: bool) -> None: ...
    def mouseLastXY(self) -> QtCore.QPoint: ...
    def panAction(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def panActionEnd(self, releasePoint: QtCore.QPoint) -> None: ...
    def enableMapTileRendering(self, flag: bool) -> None: ...
    def antiAliasingEnabled(self) -> bool: ...
    def enableAntiAliasing(self, flag: bool) -> None: ...
    def scaleLocked(self) -> bool: ...
    def zoomToFeatureExtent(self, rect: _core.QgsRectangle) -> None: ...
    def zoomWithCenter(self, x: int, y: int, zoomIn: bool) -> None: ...
    def zoomByFactor(self, scaleFactor: float, center: typing.Optional[_core.QgsPointXY] = ..., ignoreScaleLock: bool = ...) -> None: ...
    def zoomScale(self, scale: float, ignoreScaleLock: bool = ...) -> None: ...
    def setWheelFactor(self, factor: float) -> None: ...
    def currentLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def isDrawing(self) -> bool: ...
    def getCoordinateTransform(self) -> typing.Optional[_core.QgsMapToPixel]: ...
    def theme(self) -> str: ...
    def setTheme(self, theme: typing.Optional[str]) -> None: ...
    def setLayerStyleOverrides(self, overrides: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
    def layerStyleOverrides(self) -> dict[str, str]: ...
    def mapUnits(self) -> _core.Qgis.DistanceUnit: ...
    def renderFlag(self) -> bool: ...
    def isFrozen(self) -> bool: ...
    def freeze(self, frozen: bool = ...) -> None: ...
    def layers(self, expandGroupLayers: bool = ...) -> list[_core.QgsMapLayer]: ...
    def layerCount(self) -> int: ...
    @typing.overload
    def layer(self, index: int) -> typing.Optional[_core.QgsMapLayer]: ...
    @typing.overload
    def layer(self, id: typing.Optional[str]) -> typing.Optional[_core.QgsMapLayer]: ...
    def updateScale(self) -> None: ...
    def selectionColor(self) -> QtGui.QColor: ...
    def setSelectionColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def canvasColor(self) -> QtGui.QColor: ...
    def setCanvasColor(self, _newVal: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def project(self) -> typing.Optional[_core.QgsProject]: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def mapTool(self) -> typing.Optional['QgsMapTool']: ...
    def unsetMapTool(self, mapTool: typing.Optional['QgsMapTool']) -> None: ...
    def setMapTool(self, mapTool: typing.Optional['QgsMapTool'], clean: bool = ...) -> None: ...
    def flashGeometries(self, geometries: collections.abc.Iterable[_core.QgsGeometry], crs: _core.QgsCoordinateReferenceSystem = ..., startColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., endColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., flashes: int = ..., duration: int = ...) -> None: ...
    def flashFeatureIds(self, layer: typing.Optional[_core.QgsVectorLayer], ids: typing.Any, startColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., endColor: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int] = ..., flashes: int = ..., duration: int = ...) -> None: ...
    @typing.overload
    def panToSelected(self, layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...
    @typing.overload
    def panToSelected(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def panToFeatureIds(self, layer: typing.Optional[_core.QgsVectorLayer], ids: typing.Any, alwaysRecenter: bool = ...) -> None: ...
    def zoomToFeatureIds(self, layer: typing.Optional[_core.QgsVectorLayer], ids: typing.Any) -> None: ...
    def clearExtentHistory(self) -> None: ...
    def zoomToNextExtent(self) -> None: ...
    def zoomToPreviousExtent(self) -> None: ...
    def zoomToProjectExtent(self) -> None: ...
    def zoomToFullExtent(self) -> None: ...
    def center(self) -> _core.QgsPointXY: ...
    def setCenter(self, center: _core.QgsPointXY) -> None: ...
    def setRotation(self, degrees: float) -> None: ...
    def rotation(self) -> float: ...
    def setReferencedExtent(self, extent: _core.QgsReferencedRectangle) -> bool: ...
    def setExtent(self, r: _core.QgsRectangle, magnified: bool = ...) -> None: ...
    def projectExtent(self) -> _core.QgsRectangle: ...
    def fullExtent(self) -> _core.QgsRectangle: ...
    def extent(self) -> _core.QgsRectangle: ...
    def mapUnitsPerPixel(self) -> float: ...
    def scale(self) -> float: ...
    def mapUpdateInterval(self) -> int: ...
    def setMapUpdateInterval(self, timeMilliseconds: int) -> None: ...
    def isParallelRenderingEnabled(self) -> bool: ...
    def setParallelRenderingEnabled(self, enabled: bool) -> None: ...
    def waitWhileRendering(self) -> None: ...
    def cache(self) -> typing.Optional[_core.QgsMapRendererCache]: ...
    def clearCache(self) -> None: ...
    def isCachingEnabled(self) -> bool: ...
    def setCachingEnabled(self, enabled: bool) -> None: ...
    def renderedItemResults(self, allowOutdatedResults: bool = ...) -> typing.Optional[_core.QgsRenderedItemResults]: ...
    def labelingResults(self, allowOutdatedResults: bool = ...) -> typing.Optional[_core.QgsLabelingResults]: ...
    def setMapSettingsFlags(self, flags: _core.Qgis.MapSettingsFlag) -> None: ...
    def setDestinationCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def temporalController(self) -> typing.Optional[_core.QgsTemporalController]: ...
    def setTemporalController(self, controller: typing.Optional[_core.QgsTemporalController]) -> None: ...
    def mapSettings(self) -> _core.QgsMapSettings: ...
    def setCurrentLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def flags(self) -> _core.Qgis.MapCanvasFlag: ...
    def setFlags(self, flags: _core.Qgis.MapCanvasFlag) -> None: ...
    def setLayers(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def magnificationFactor(self) -> float: ...
    def addOverlayWidget(self, widget: typing.Optional[QtWidgets.QWidget], edge: QtCore.Qt.Edge) -> None: ...


class QgsMapCanvasAnnotationItem(QtCore.QObject, QgsMapCanvasItem):

    class MouseMoveAction(enum.IntEnum):
        NoAction = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        MoveMapPosition = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        MoveFramePosition = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameUp = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameDown = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameLeft = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameRight = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameLeftUp = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameRightUp = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameLeftDown = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction
        ResizeFrameRightDown = ... # type: QgsMapCanvasAnnotationItem.MouseMoveAction

    def __init__(self, annotation: typing.Optional[_core.QgsAnnotation], mapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def cursorShapeForAction(self, moveAction: 'QgsMapCanvasAnnotationItem.MouseMoveAction') -> QtCore.Qt.CursorShape: ...
    def moveActionForPosition(self, pos: QtCore.QPointF) -> 'QgsMapCanvasAnnotationItem.MouseMoveAction': ...
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    def boundingRect(self) -> QtCore.QRectF: ...
    def updatePosition(self) -> None: ...
    def annotation(self) -> typing.Optional[_core.QgsAnnotation]: ...


class QgsMapCanvasInteractionBlocker(PyQt6.sip.wrapper):

    class Interaction(enum.IntFlag):
        MapPanOnSingleClick = ... # type: QgsMapCanvasInteractionBlocker.Interaction

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapCanvasInteractionBlocker') -> None: ...

    def blockCanvasInteraction(self, interaction: 'QgsMapCanvasInteractionBlocker.Interaction') -> bool: ...


class QgsMapCanvasSnappingUtils(_core.QgsSnappingUtils):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def prepareIndexProgress(self, index: int) -> None: ...
    def prepareIndexStarting(self, count: int) -> None: ...


class QgsMapCanvasTracer(_core.QgsTracer):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], messageBar: typing.Optional['QgsMessageBar'] = ...) -> None: ...

    def configure(self) -> None: ...
    def reportError(self, err: _core.QgsTracer.PathError, addingVertex: bool) -> None: ...
    @staticmethod
    def tracerForCanvas(canvas: typing.Optional[QgsMapCanvas]) -> typing.Optional['QgsMapCanvasTracer']: ...
    def setActionEnableSnapping(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def actionEnableSnapping(self) -> typing.Optional[QtGui.QAction]: ...
    def setActionEnableTracing(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def actionEnableTracing(self) -> typing.Optional[QtGui.QAction]: ...


class QgsMapCanvasUtils(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapCanvasUtils') -> None: ...

    @staticmethod
    def filterForLayer(canvas: typing.Optional[QgsMapCanvas], layer: typing.Optional[_core.QgsVectorLayer]) -> str: ...
    @staticmethod
    def flashMatchingFeatures(canvas: typing.Optional[QgsMapCanvas], layer: typing.Optional[_core.QgsVectorLayer], filter: typing.Optional[str]) -> int: ...
    @staticmethod
    def zoomToMatchingFeatures(canvas: typing.Optional[QgsMapCanvas], layer: typing.Optional[_core.QgsVectorLayer], filter: typing.Optional[str]) -> int: ...


class QgsMapLayerComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def rowsChanged(self) -> None: ...
    def indexChanged(self, i: int) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, event: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    layerChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def layer(self, layerIndex: int) -> typing.Optional[_core.QgsMapLayer]: ...
    def currentLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def additionalLayers(self) -> list[_core.QgsMapLayer]: ...
    def setAdditionalLayers(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def additionalItems(self) -> list[str]: ...
    def setAdditionalItems(self, items: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def showCrs(self) -> bool: ...
    def setShowCrs(self, showCrs: bool) -> None: ...
    def allowEmptyLayer(self) -> bool: ...
    def setAllowEmptyLayer(self, allowEmpty: bool, text: typing.Optional[str] = ..., icon: QtGui.QIcon = ...) -> None: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def excludedProviders(self) -> list[str]: ...
    def setExcludedProviders(self, providers: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def exceptedLayerList(self) -> list[_core.QgsMapLayer]: ...
    def setExceptedLayerList(self, layerList: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def filters(self) -> _core.Qgis.LayerFilter: ...
    @typing.overload
    def setFilters(self, filters: _core.Qgis.LayerFilter) -> None: ...
    @typing.overload
    @deprecated("""""")
    def setFilters(self, filters: int) -> None: ...


class QgsMapLayerConfigWidgetContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapLayerConfigWidgetContext') -> None: ...

    def layerTreeGroup(self) -> typing.Optional[_core.QgsLayerTreeGroup]: ...
    def setLayerTreeGroup(self, group: typing.Optional[_core.QgsLayerTreeGroup]) -> None: ...
    def messageBar(self) -> typing.Optional['QgsMessageBar']: ...
    def setMessageBar(self, bar: typing.Optional['QgsMessageBar']) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setAnnotationId(self, id: typing.Optional[str]) -> None: ...
    def annotationId(self) -> str: ...


class QgsMapLayerConfigWidget(QgsPanelWidget):

    def __init__(self, layer: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def focusDefaultWidget(self) -> None: ...
    def apply(self) -> None: ...
    def setMapLayerConfigWidgetContext(self, context: QgsMapLayerConfigWidgetContext) -> None: ...
    def syncToLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def shouldTriggerLayerRepaint(self) -> bool: ...


class QgsMapLayerConfigWidgetFactory(PyQt6.sip.wrapper):

    class ParentPage(enum.IntEnum):
        NoParent = ... # type: QgsMapLayerConfigWidgetFactory.ParentPage
        Temporal = ... # type: QgsMapLayerConfigWidgetFactory.ParentPage

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], icon: QtGui.QIcon) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapLayerConfigWidgetFactory') -> None: ...

    def createWidget(self, layer: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], dockWidget: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsMapLayerConfigWidget]: ...
    def parentPage(self) -> 'QgsMapLayerConfigWidgetFactory.ParentPage': ...
    def supportsLayerTreeGroup(self, group: typing.Optional[_core.QgsLayerTreeGroup]) -> bool: ...
    def supportsLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> bool: ...
    def setSupportLayerPropertiesDialog(self, supports: bool) -> None: ...
    def layerPropertiesPagePositionHint(self) -> str: ...
    def supportLayerPropertiesDialog(self) -> bool: ...
    def setSupportsStyleDock(self, supports: bool) -> None: ...
    def supportsStyleDock(self) -> bool: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def title(self) -> str: ...
    def setIcon(self, icon: QtGui.QIcon) -> None: ...
    def icon(self) -> QtGui.QIcon: ...


class QgsMapLayerStyleCategoriesModel(QtCore.QAbstractListModel):

    class Role(enum.IntEnum):
        NameRole = ... # type: QgsMapLayerStyleCategoriesModel.Role

    def __init__(self, type: _core.Qgis.LayerType, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def flags(self, a0: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int) -> bool: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def setShowAllCategories(self, showAll: bool) -> None: ...
    def categories(self) -> _core.QgsMapLayer.StyleCategory: ...
    def setCategories(self, categories: _core.QgsMapLayer.StyleCategory) -> None: ...


class QgsCategoryDisplayLabelDelegate(QtWidgets.QItemDelegate):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def sizeHint(self, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtCore.QSize: ...
    def drawDisplay(self, painter: typing.Optional[QtGui.QPainter], option: QtWidgets.QStyleOptionViewItem, rect: QtCore.QRect, text: typing.Optional[str]) -> None: ...


class QgsMapLayerStyleManagerWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def apply(self) -> None: ...


class QgsMapMouseEvent(QtGui.QMouseEvent):

    @typing.overload
    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas], event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    @typing.overload
    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas], type: QtCore.QEvent.Type, pos: QtCore.QPoint, button: QtCore.Qt.MouseButton = ..., buttons: QtCore.Qt.MouseButton = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> None: ...

    def snapToGrid(self, precision: float, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def originalPixelPoint(self) -> QtCore.QPoint: ...
    def pixelPoint(self) -> QtCore.QPoint: ...
    def originalMapPoint(self) -> _core.QgsPointXY: ...
    def setMapPoint(self, point: _core.QgsPointXY) -> None: ...
    def mapPointMatch(self) -> _core.QgsPointLocator.Match: ...
    def mapPoint(self) -> _core.QgsPointXY: ...
    def isSnapped(self) -> bool: ...
    def snapPoint(self) -> _core.QgsPointXY: ...


class QgsMapOverviewCanvas(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., mapCanvas: typing.Optional[QgsMapCanvas] = ...) -> None: ...

    def updatePanningWidget(self, pos: QtCore.QPoint) -> None: ...
    def wheelEvent(self, e: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, e: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def paintEvent(self, pe: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def transformContextChanged(self) -> None: ...
    def destinationCrsChanged(self) -> None: ...
    def drawExtentRect(self) -> None: ...
    def layerRepaintRequested(self, deferred: bool = ...) -> None: ...
    def mapRenderingFinished(self) -> None: ...
    def updateFullExtent(self) -> None: ...
    def enableAntiAliasing(self, flag: bool) -> None: ...
    def layers(self) -> list[_core.QgsMapLayer]: ...
    def setLayers(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def refresh(self) -> None: ...


class QgsMapTip(QtWidgets.QWidget):

    def __init__(self) -> None: ...

    @staticmethod
    def rasterMapTipPreviewText(layer: typing.Optional[_core.QgsMapLayer], mapCanvas: typing.Optional[QgsMapCanvas], mapTemplate: typing.Optional[str]) -> str: ...
    @staticmethod
    def vectorMapTipPreviewText(layer: typing.Optional[_core.QgsMapLayer], mapCanvas: typing.Optional[QgsMapCanvas], mapTemplate: typing.Optional[str], displayExpression: typing.Optional[str]) -> str: ...
    def clear(self, mpMapCanvas: typing.Optional[QgsMapCanvas] = ..., msDelay: int = ...) -> None: ...
    def showMapTip(self, thepLayer: typing.Optional[_core.QgsMapLayer], mapPosition: _core.QgsPointXY, pixelPosition: QtCore.QPoint, mpMapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsMediaWidget(QtWidgets.QWidget):

    class Mode(enum.IntEnum):
        Audio = ... # type: QgsMediaWidget.Mode
        Video = ... # type: QgsMediaWidget.Mode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mediaPlayer(self) -> typing.Optional[QtMultimedia.QMediaPlayer]: ...
    def setVideoHeight(self, height: int) -> None: ...
    def videoHeight(self) -> int: ...
    def setMode(self, mode: 'QgsMediaWidget.Mode') -> None: ...
    def mode(self) -> 'QgsMediaWidget.Mode': ...
    def setMediaPath(self, path: typing.Optional[str]) -> None: ...
    def mediaPath(self) -> str: ...


class QgsMenuHeader(QtWidgets.QWidget):

    def __init__(self, text: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsMenuHeaderWidgetAction(QtWidgets.QWidgetAction):

    def __init__(self, text: typing.Optional[str], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...


class QgsMessageBar(QtWidgets.QFrame):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def pushCritical(self, title: typing.Optional[str], message: typing.Optional[str]) -> None: ...
    def pushWarning(self, title: typing.Optional[str], message: typing.Optional[str]) -> None: ...
    def pushInfo(self, title: typing.Optional[str], message: typing.Optional[str]) -> None: ...
    def pushSuccess(self, title: typing.Optional[str], message: typing.Optional[str]) -> None: ...
    def clearWidgets(self) -> bool: ...
    widgetRemoved: typing.ClassVar[QtCore.pyqtSignal]
    widgetAdded: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def defaultMessageTimeout(level: _core.Qgis.MessageLevel = ...) -> int: ...
    def items(self) -> list['QgsMessageBarItem']: ...
    def currentItem(self) -> typing.Optional['QgsMessageBarItem']: ...
    @typing.overload
    def pushMessage(self, text: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ...) -> None: ...
    @typing.overload
    def pushMessage(self, title: typing.Optional[str], text: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ...) -> None: ...
    @typing.overload
    def pushMessage(self, title: typing.Optional[str], text: typing.Optional[str], showMore: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ...) -> None: ...
    @typing.overload
    @staticmethod
    def createMessage(text: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional['QgsMessageBarItem']: ...
    @typing.overload
    @staticmethod
    def createMessage(title: typing.Optional[str], text: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional['QgsMessageBarItem']: ...
    @typing.overload
    @staticmethod
    def createMessage(widget: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional['QgsMessageBarItem']: ...
    @typing.overload
    def popWidget(self, item: typing.Optional['QgsMessageBarItem']) -> bool: ...
    @typing.overload
    def popWidget(self) -> bool: ...
    def pushWidget(self, widget: typing.Optional[QtWidgets.QWidget], level: _core.Qgis.MessageLevel = ..., duration: int = ...) -> typing.Optional['QgsMessageBarItem']: ...
    def pushItem(self, item: typing.Optional['QgsMessageBarItem']) -> None: ...


class QgsMessageBarItem(QtWidgets.QWidget):

    @typing.overload
    def __init__(self, text: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], text: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], text: typing.Optional[str], widget: typing.Optional[QtWidgets.QWidget], level: _core.Qgis.MessageLevel = ..., duration: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, widget: typing.Optional[QtWidgets.QWidget], level: _core.Qgis.MessageLevel = ..., duration: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    styleChanged: typing.ClassVar[QtCore.pyqtSignal]
    def dismiss(self) -> None: ...
    def getStyleSheet(self) -> str: ...
    def duration(self) -> int: ...
    def setDuration(self, duration: int) -> typing.Optional['QgsMessageBarItem']: ...
    def icon(self) -> QtGui.QIcon: ...
    def setIcon(self, icon: QtGui.QIcon) -> typing.Optional['QgsMessageBarItem']: ...
    def widget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def setWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsMessageBarItem']: ...
    def level(self) -> _core.Qgis.MessageLevel: ...
    def setLevel(self, level: _core.Qgis.MessageLevel) -> typing.Optional['QgsMessageBarItem']: ...
    def title(self) -> str: ...
    def setTitle(self, title: typing.Optional[str]) -> typing.Optional['QgsMessageBarItem']: ...
    def text(self) -> str: ...
    def setText(self, text: typing.Optional[str]) -> typing.Optional['QgsMessageBarItem']: ...


class QgsMessageLogViewer(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def eventFilter(self, obj: typing.Optional[QtCore.QObject], ev: typing.Optional[QtCore.QEvent]) -> bool: ...
    def reject(self) -> None: ...
    def closeEvent(self, e: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def showTab(self, tag: typing.Optional[str]) -> None: ...
    def logMessage(self, message: typing.Optional[str], tag: typing.Optional[str], level: _core.Qgis.MessageLevel) -> None: ...


class QgsMessageViewer(QtWidgets.QDialog, _core.QgsMessageOutput):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., deleteOnClose: bool = ...) -> None: ...

    def setCheckBoxQgsSettingsLabel(self, label: typing.Optional[str]) -> None: ...
    def checkBoxState(self) -> QtCore.Qt.CheckState: ...
    def setCheckBoxState(self, state: QtCore.Qt.CheckState) -> None: ...
    def setCheckBoxVisible(self, visible: bool) -> None: ...
    def setCheckBoxText(self, text: typing.Optional[str]) -> None: ...
    def setMessageAsPlainText(self, msg: typing.Optional[str]) -> None: ...
    def setMessageAsHtml(self, msg: typing.Optional[str]) -> None: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def showMessage(self, blocking: bool = ...) -> None: ...
    def appendMessage(self, message: typing.Optional[str]) -> None: ...
    def setMessage(self, message: typing.Optional[str], msgType: _core.QgsMessageOutput.MessageType) -> None: ...


class QgsMetadataWidget(QtWidgets.QWidget):

    class Mode(enum.IntEnum):
        LayerMetadata = ... # type: QgsMetadataWidget.Mode
        ProjectMetadata = ... # type: QgsMetadataWidget.Mode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    titleChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def title(self) -> str: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    @staticmethod
    def parseTypes() -> dict[str, str]: ...
    @staticmethod
    def parseMimeTypes() -> list[str]: ...
    @staticmethod
    def parseLinkTypes() -> list[str]: ...
    @staticmethod
    def parseLicenses() -> list[str]: ...
    @staticmethod
    def parseLanguages() -> dict[str, str]: ...
    def acceptMetadata(self) -> None: ...
    def crsChanged(self) -> None: ...
    def checkMetadata(self) -> bool: ...
    def saveMetadata(self, metadata: typing.Optional[_core.QgsAbstractMetadataBase]) -> None: ...
    def metadata(self) -> typing.Optional[_core.QgsAbstractMetadataBase]: ...
    def setMetadata(self, metadata: typing.Optional[_core.QgsAbstractMetadataBase]) -> None: ...
    def mode(self) -> 'QgsMetadataWidget.Mode': ...
    def setMode(self, mode: 'QgsMetadataWidget.Mode') -> None: ...


class QgsNewAuxiliaryFieldDialog(QtWidgets.QDialog):

    def __init__(self, definition: _core.QgsPropertyDefinition, layer: typing.Optional[_core.QgsVectorLayer], nameOnly: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def accept(self) -> None: ...
    def propertyDefinition(self) -> _core.QgsPropertyDefinition: ...


class QgsNewAuxiliaryLayerDialog(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def accept(self) -> None: ...


class QgsNewGeoPackageLayerDialog(QtWidgets.QDialog):

    class OverwriteBehavior(enum.IntEnum):
        Prompt = ... # type: QgsNewGeoPackageLayerDialog.OverwriteBehavior
        Overwrite = ... # type: QgsNewGeoPackageLayerDialog.OverwriteBehavior
        AddNewLayer = ... # type: QgsNewGeoPackageLayerDialog.OverwriteBehavior

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def setAddToProject(self, addToProject: bool) -> None: ...
    def setOverwriteBehavior(self, behavior: 'QgsNewGeoPackageLayerDialog.OverwriteBehavior') -> None: ...
    def lockDatabasePath(self) -> None: ...
    def setDatabasePath(self, path: typing.Optional[str]) -> None: ...
    def databasePath(self) -> str: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...


class QgsNewVectorTableDialog(QtWidgets.QDialog):

    def __init__(self, conn: typing.Optional[_core.QgsAbstractDatabaseProviderConnection], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def validationErrors(self) -> list[str]: ...
    def createSpatialIndex(self) -> bool: ...
    def setFields(self, fields: _core.QgsFields) -> None: ...
    def geometryType(self) -> _core.Qgis.WkbType: ...
    def fields(self) -> _core.QgsFields: ...
    def geometryColumnName(self) -> str: ...
    def schemaName(self) -> str: ...
    def tableName(self) -> str: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setGeometryType(self, type: _core.Qgis.WkbType) -> None: ...
    def setTableName(self, name: typing.Optional[str]) -> None: ...
    def setSchemaName(self, name: typing.Optional[str]) -> None: ...


class QgsNewHttpConnection(QtWidgets.QDialog):

    class WfsVersionIndex(enum.IntEnum):
        WFS_VERSION_MAX = ... # type: QgsNewHttpConnection.WfsVersionIndex
        WFS_VERSION_1_0 = ... # type: QgsNewHttpConnection.WfsVersionIndex
        WFS_VERSION_1_1 = ... # type: QgsNewHttpConnection.WfsVersionIndex
        WFS_VERSION_2_0 = ... # type: QgsNewHttpConnection.WfsVersionIndex
        WFS_VERSION_API_FEATURES_1_0 = ... # type: QgsNewHttpConnection.WfsVersionIndex

    class Flag(enum.IntEnum):
        FlagShowTestConnection = ... # type: QgsNewHttpConnection.Flag
        FlagHideAuthenticationGroup = ... # type: QgsNewHttpConnection.Flag
        FlagShowHttpSettings = ... # type: QgsNewHttpConnection.Flag

    class ConnectionType(enum.IntEnum):
        ConnectionWfs = ... # type: QgsNewHttpConnection.ConnectionType
        ConnectionWms = ... # type: QgsNewHttpConnection.ConnectionType
        ConnectionWcs = ... # type: QgsNewHttpConnection.ConnectionType
        ConnectionOther = ... # type: QgsNewHttpConnection.ConnectionType

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., types: 'QgsNewHttpConnection.ConnectionType' = ..., settingsKey: typing.Optional[str] = ..., connectionName: typing.Optional[str] = ..., flags: 'QgsNewHttpConnection.Flag' = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def updateServiceSpecificSettings(self) -> None: ...
    def wmsSettingsKey(self, base: typing.Optional[str], connectionName: typing.Optional[str]) -> str: ...
    def wfsSettingsKey(self, base: typing.Optional[str], connectionName: typing.Optional[str]) -> str: ...
    def preferredHttpMethod(self) -> _core.Qgis.HttpMethod: ...
    def testConnectButton(self) -> typing.Optional[QtWidgets.QPushButton]: ...
    def validate(self) -> bool: ...
    def accept(self) -> None: ...
    def url(self) -> str: ...
    def name(self) -> str: ...


class QgsNewMemoryLayerDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def fields(self) -> _core.QgsFields: ...
    def layerName(self) -> str: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def selectedType(self) -> _core.Qgis.WkbType: ...
    @staticmethod
    def runAndCreateLayer(parent: typing.Optional[QtWidgets.QWidget] = ..., defaultCrs: _core.QgsCoordinateReferenceSystem = ...) -> typing.Optional[_core.QgsVectorLayer]: ...


class QgsNewNameDialog(QgsDialog):

    def __init__(self, source: typing.Optional[str] = ..., initial: typing.Optional[str] = ..., extensions: collections.abc.Iterable[typing.Optional[str]] = ..., existing: collections.abc.Iterable[typing.Optional[str]] = ..., cs: QtCore.Qt.CaseSensitivity = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    @staticmethod
    def matching(newNames: collections.abc.Iterable[typing.Optional[str]], existingNames: collections.abc.Iterable[typing.Optional[str]], cs: QtCore.Qt.CaseSensitivity = ...) -> list[str]: ...
    @staticmethod
    def fullNames(name: typing.Optional[str], extensions: collections.abc.Iterable[typing.Optional[str]]) -> list[str]: ...
    def highlightText(self, text: typing.Optional[str]) -> str: ...
    def nameChanged(self) -> None: ...
    newNameChanged: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def exists(name: typing.Optional[str], extensions: collections.abc.Iterable[typing.Optional[str]], existing: collections.abc.Iterable[typing.Optional[str]], cs: QtCore.Qt.CaseSensitivity = ...) -> bool: ...
    def name(self) -> str: ...
    def setShowExistingNamesCompleter(self, show: bool) -> None: ...
    def setRegularExpression(self, expression: typing.Optional[str]) -> None: ...
    def conflictingNameWarning(self) -> str: ...
    def setConflictingNameWarning(self, string: typing.Optional[str]) -> None: ...
    def allowEmptyName(self) -> bool: ...
    def setAllowEmptyName(self, allowed: bool) -> None: ...
    def overwriteEnabled(self) -> bool: ...
    def setOverwriteEnabled(self, enabled: bool) -> None: ...
    def hintString(self) -> str: ...
    def setHintString(self, hintString: typing.Optional[str]) -> None: ...


class QgsNewVectorLayerDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def setFilename(self, filename: typing.Optional[str]) -> None: ...
    def filename(self) -> str: ...
    def selectedFileEncoding(self) -> str: ...
    def selectedFileFormat(self) -> str: ...
    def attributes(self, at: collections.abc.Iterable[tuple[typing.Optional[str], typing.Optional[str]]]) -> None: ...
    def selectedType(self) -> _core.Qgis.WkbType: ...
    @staticmethod
    def execAndCreateLayer(parent: typing.Optional[QtWidgets.QWidget] = ..., initialPath: typing.Optional[str] = ..., crs: _core.QgsCoordinateReferenceSystem = ...) -> typing.Tuple[str, str, typing.Optional[str]]: ...
    @staticmethod
    @deprecated("""""")
    def runAndCreateLayer(parent: typing.Optional[QtWidgets.QWidget] = ..., enc: typing.Optional[typing.Optional[str]] = ..., crs: _core.QgsCoordinateReferenceSystem = ..., initialPath: typing.Optional[str] = ...) -> str: ...


class QgsOpacityWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    opacityChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setOpacity(self, opacity: float) -> None: ...
    def opacity(self) -> float: ...


class QgsOptionsDialogHighlightWidget(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightWidget') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...
    def widget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def searchHighlight(self, text: typing.Optional[str]) -> bool: ...
    def isValid(self) -> bool: ...
    @staticmethod
    def createWidget(widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsOptionsDialogHighlightWidget']: ...


class QgsOptionsDialogHighlightLabel(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, label: typing.Optional[QtWidgets.QLabel]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightLabel') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsDialogHighlightCheckBox(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, checkBox: typing.Optional[QtWidgets.QCheckBox]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightCheckBox') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsDialogHighlightButton(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, button: typing.Optional[QtWidgets.QAbstractButton]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightButton') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsDialogHighlightGroupBox(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, groupBox: typing.Optional[QtWidgets.QGroupBox]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightGroupBox') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsDialogHighlightTree(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, treeView: typing.Optional[QtWidgets.QTreeView]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightTree') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsDialogHighlightTable(QgsOptionsDialogHighlightWidget):

    @typing.overload
    def __init__(self, tableView: typing.Optional[QtWidgets.QTableView]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsOptionsDialogHighlightTable') -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...


class QgsOptionsPageWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def registerHighlightWidget(self, highlightWidget: typing.Optional[QgsOptionsDialogHighlightWidget]) -> None: ...
    def cancel(self) -> None: ...
    def apply(self) -> None: ...
    def isValid(self) -> bool: ...
    def helpKey(self) -> str: ...


class QgsOptionsWidgetFactory(QtCore.QObject):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, title: typing.Optional[str], icon: QtGui.QIcon, key: typing.Optional[str] = ...) -> None: ...

    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsOptionsPageWidget]: ...
    def path(self) -> list[str]: ...
    def pagePositionHint(self) -> str: ...
    def setKey(self, key: typing.Optional[str]) -> None: ...
    def key(self) -> str: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def title(self) -> str: ...
    def setIcon(self, icon: QtGui.QIcon) -> None: ...
    def icon(self) -> QtGui.QIcon: ...


class QgsOrderByDialog(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def eventFilter(self, obj: typing.Optional[QtCore.QObject], e: typing.Optional[QtCore.QEvent]) -> bool: ...
    def orderBy(self) -> _core.QgsFeatureRequest.OrderBy: ...
    def setOrderBy(self, orderBy: _core.QgsFeatureRequest.OrderBy) -> None: ...


class QgsOverlayWidgetLayout(QtWidgets.QLayout):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def verticalSpacing(self) -> int: ...
    def setVerticalSpacing(self, spacing: int) -> None: ...
    def horizontalSpacing(self) -> int: ...
    def setHorizontalSpacing(self, spacing: int) -> None: ...
    def addWidget(self, widget: typing.Optional[QtWidgets.QWidget], edge: QtCore.Qt.Edge) -> None: ...
    def setGeometry(self, rect: QtCore.QRect) -> None: ...
    def minimumSize(self) -> QtCore.QSize: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def takeAt(self, index: int) -> typing.Optional[QtWidgets.QLayoutItem]: ...
    def itemAt(self, index: int) -> typing.Optional[QtWidgets.QLayoutItem]: ...
    def addItem(self, item: typing.Optional[QtWidgets.QLayoutItem]) -> None: ...
    def count(self) -> int: ...


class QgsOWSSourceSelect(QgsAbstractDataSourceWidget):

    class SupportedFormat(PyQt6.sip.wrapper):

        format = ... # type: typing.Optional[str]
        label = ... # type: typing.Optional[str]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsOWSSourceSelect.SupportedFormat') -> None: ...

    def __init__(self, service: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., widgetMode: _core.QgsProviderRegistry.WidgetMode = ...) -> None: ...

    def prepareExtent(self) -> None: ...
    def selectedCacheLoadControl(self) -> QtNetwork.QNetworkRequest.CacheLoadControl: ...
    def selectedTime(self) -> str: ...
    def selectedCrs(self) -> str: ...
    def selectedFormat(self) -> str: ...
    def enableLayersForCrs(self, item: typing.Optional[QtWidgets.QTreeWidgetItem]) -> None: ...
    def descriptionForAuthId(self, authId: typing.Optional[str]) -> str: ...
    def populateLayerList(self) -> None: ...
    def addDefaultServers(self) -> None: ...
    def setConnectionListPosition(self) -> None: ...
    def connectionInfo(self) -> str: ...
    def connName(self) -> str: ...
    def clearTimes(self) -> None: ...
    def populateTimes(self) -> None: ...
    def clearCrs(self) -> None: ...
    def populateCrs(self) -> None: ...
    def clearFormats(self) -> None: ...
    def populateFormats(self) -> None: ...
    def populateConnectionList(self) -> None: ...
    def selectedLayersTimes(self) -> list[str]: ...
    def selectedLayersCrses(self) -> list[str]: ...
    def selectedLayersFormats(self) -> list[str]: ...
    def providerFormats(self) -> list['QgsOWSSourceSelect.SupportedFormat']: ...
    def showStatusMessage(self, message: typing.Optional[str]) -> None: ...
    def showError(self, title: typing.Optional[str], format: typing.Optional[str], error: typing.Optional[str]) -> None: ...
    def setMapCanvas(self, mapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def reset(self) -> None: ...
    def refresh(self) -> None: ...


class QgsPanelWidgetWrapper(QgsPanelWidget):

    def __init__(self, widget: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def widget(self) -> typing.Optional[QtWidgets.QWidget]: ...


class QgsPanelWidgetStack(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def closePanel(self, panel: typing.Optional[QgsPanelWidget]) -> None: ...
    def showPanel(self, panel: typing.Optional[QgsPanelWidget]) -> None: ...
    def acceptAllPanels(self) -> None: ...
    def acceptCurrentPanel(self) -> None: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def currentPanel(self) -> typing.Optional[QgsPanelWidget]: ...
    def clear(self) -> None: ...
    def takeMainPanel(self) -> typing.Optional[QgsPanelWidget]: ...
    def mainPanel(self) -> typing.Optional[QgsPanelWidget]: ...
    def setMainPanel(self, panel: typing.Optional[QgsPanelWidget]) -> None: ...


class QgsPasswordLineEdit(QtWidgets.QLineEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., passwordVisible: bool = ...) -> None: ...

    def setPasswordVisibility(self, visible: bool) -> None: ...
    def showLockIcon(self) -> bool: ...
    def setShowLockIcon(self, visible: bool) -> None: ...


class QgsPercentageWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setValue(self, value: float) -> None: ...
    def value(self) -> float: ...


class QgsPixmapLabel(QtWidgets.QLabel):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def clear(self) -> None: ...
    def resizeEvent(self, a0: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def setPixmap(self, a0: QtGui.QPixmap) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def heightForWidth(self, width: int) -> int: ...


class QgsPlaybackControllerWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    operationTriggered: typing.ClassVar[QtCore.pyqtSignal]
    def togglePause(self) -> None: ...
    def setState(self, state: _core.Qgis.AnimationState) -> None: ...
    def button(self, operation: _core.Qgis.PlaybackOperation) -> typing.Optional[QtWidgets.QPushButton]: ...


class QgsPluginManagerInterface(QtCore.QObject):

    def __init__(self) -> None: ...

    def pushMessage(self, text: typing.Optional[str], level: _core.Qgis.MessageLevel = ..., duration: int = ...) -> None: ...
    def showPluginManager(self, tabIndex: int = ...) -> None: ...
    def addToRepositoryList(self, repository: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
    def clearRepositoryList(self) -> None: ...
    def pluginMetadata(self, key: typing.Optional[str]) -> typing.Optional[dict[str, str]]: ...
    def reloadModel(self) -> None: ...
    def addPluginMetadata(self, metadata: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
    def clearPythonPluginMetadata(self) -> None: ...


class QgsPointCloudAttributeComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setAttribute(self, name: typing.Optional[str]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    attributeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def attributes(self) -> _core.QgsPointCloudAttributeCollection: ...
    def setAttributes(self, attributes: _core.QgsPointCloudAttributeCollection) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsPointCloudLayer]: ...
    def currentAttribute(self) -> str: ...
    def allowEmptyAttributeName(self) -> bool: ...
    def setAllowEmptyAttributeName(self, allowEmpty: bool) -> None: ...
    def filters(self) -> _core.QgsPointCloudAttributeProxyModel.Filter: ...
    def setFilters(self, filters: _core.QgsPointCloudAttributeProxyModel.Filter) -> None: ...


class QgsSubsetStringEditorInterface(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def setSubsetString(self, subsetString: typing.Optional[str]) -> None: ...
    def subsetString(self) -> str: ...


class QgsPointCloudQueryBuilder(QgsSubsetStringEditorInterface):

    def __init__(self, layer: typing.Optional[_core.QgsPointCloudLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def reject(self) -> None: ...
    def accept(self) -> None: ...
    def setSubsetString(self, subsetString: typing.Optional[str]) -> None: ...
    def subsetString(self) -> str: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsPresetColorRampWidget(QgsPanelWidget):

    def __init__(self, ramp: _core.QgsPresetSchemeColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setRamp(self, ramp: _core.QgsPresetSchemeColorRamp) -> None: ...
    def ramp(self) -> _core.QgsPresetSchemeColorRamp: ...


class QgsPresetColorRampDialog(QtWidgets.QDialog):

    def __init__(self, ramp: _core.QgsPresetSchemeColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def setRamp(self, ramp: _core.QgsPresetSchemeColorRamp) -> None: ...
    def ramp(self) -> _core.QgsPresetSchemeColorRamp: ...


class QgsPreviewEffect(QtWidgets.QGraphicsEffect):

    class PreviewMode(enum.IntEnum):
        PreviewGrayscale = ... # type: QgsPreviewEffect.PreviewMode
        PreviewMono = ... # type: QgsPreviewEffect.PreviewMode
        PreviewProtanope = ... # type: QgsPreviewEffect.PreviewMode
        PreviewDeuteranope = ... # type: QgsPreviewEffect.PreviewMode
        PreviewTritanope = ... # type: QgsPreviewEffect.PreviewMode

    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...

    def draw(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    def mode(self) -> 'QgsPreviewEffect.PreviewMode': ...
    def setMode(self, mode: 'QgsPreviewEffect.PreviewMode') -> None: ...


class QgsProjectStorageGuiProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProjectStorageGuiProvider') -> None: ...

    def showSaveGui(self) -> str: ...
    def showLoadGui(self) -> str: ...
    def visibleName(self) -> str: ...
    def type(self) -> str: ...


class QgsProjectStorageGuiRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def initializeFromProviderGuiRegistry(self, providerGuiRegistry: typing.Optional['QgsProviderGuiRegistry']) -> None: ...
    def unregisterProjectStorage(self, storage: typing.Optional[QgsProjectStorageGuiProvider]) -> None: ...
    def registerProjectStorage(self, storage: typing.Optional[QgsProjectStorageGuiProvider]) -> None: ...
    def projectStorages(self) -> list[QgsProjectStorageGuiProvider]: ...
    def projectStorageFromUri(self, uri: typing.Optional[str]) -> typing.Optional[QgsProjectStorageGuiProvider]: ...
    def projectStorageFromType(self, type: typing.Optional[str]) -> typing.Optional[QgsProjectStorageGuiProvider]: ...


class QgsPropertyAssistantWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., definition: _core.QgsPropertyDefinition = ..., initialState: _core.QgsProperty = ..., layer: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def updateProperty(self, property: _core.QgsProperty) -> None: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...


class QgsPropertyOverrideButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    createAuxiliaryField: typing.ClassVar[QtCore.pyqtSignal]
    activated: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def menuActionTriggered(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def aboutToShowMenu(self) -> None: ...
    def setActive(self, active: bool) -> None: ...
    def updateFieldLists(self) -> None: ...
    def registerLinkedWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def registerExpressionWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def registerVisibleWidget(self, widget: typing.Optional[QtWidgets.QWidget], natural: bool = ...) -> None: ...
    def registerEnabledWidget(self, widget: typing.Optional[QtWidgets.QWidget], natural: bool = ...) -> None: ...
    def registerCheckedWidget(self, widget: typing.Optional[QtWidgets.QWidget], natural: bool = ...) -> None: ...
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setVectorLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def setUsageInfo(self, info: typing.Optional[str]) -> None: ...
    def usageInfo(self) -> str: ...
    def fullDescription(self) -> str: ...
    def validDataType(self) -> _core.QgsPropertyDefinition.DataType: ...
    def isActive(self) -> bool: ...
    def propertyKey(self) -> int: ...
    def setToProperty(self, property: _core.QgsProperty) -> None: ...
    def toProperty(self) -> _core.QgsProperty: ...
    @typing.overload
    def init(self, propertyKey: int, property: _core.QgsProperty, definitions: dict[int, _core.QgsPropertyDefinition], layer: typing.Optional[_core.QgsVectorLayer] = ..., auxiliaryStorageEnabled: bool = ...) -> None: ...
    @typing.overload
    def init(self, propertyKey: int, property: _core.QgsProperty, definition: _core.QgsPropertyDefinition, layer: typing.Optional[_core.QgsVectorLayer] = ..., auxiliaryStorageEnabled: bool = ...) -> None: ...
    @typing.overload
    def init(self, propertyKey: int, collection: _core.QgsAbstractPropertyCollection, definitions: dict[int, _core.QgsPropertyDefinition], layer: typing.Optional[_core.QgsVectorLayer] = ..., auxiliaryStorageEnabled: bool = ...) -> None: ...


class QgsProviderConnectionComboBox(QtWidgets.QComboBox):

    def __init__(self, provider: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    connectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setConnection(self, connection: typing.Optional[str]) -> None: ...
    def currentConnectionUri(self) -> str: ...
    def currentConnection(self) -> str: ...
    def allowEmptyConnection(self) -> bool: ...
    def setAllowEmptyConnection(self, allowEmpty: bool) -> None: ...
    def setProvider(self, provider: typing.Optional[str]) -> None: ...


class QgsProviderGuiMetadata(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, key: typing.Optional[str]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProviderGuiMetadata') -> None: ...

    def key(self) -> str: ...
    def mapLayerConfigWidgetFactories(self) -> list[QgsMapLayerConfigWidgetFactory]: ...
    def sourceWidgetProviders(self) -> list['QgsProviderSourceWidgetProvider']: ...
    def subsetStringEditorProviders(self) -> list['QgsSubsetStringEditorProvider']: ...
    def sourceSelectProviders(self) -> list['QgsSourceSelectProvider']: ...
    def projectStorageGuiProviders(self) -> list[QgsProjectStorageGuiProvider]: ...
    def dataItemGuiProviders(self) -> list[QgsDataItemGuiProvider]: ...
    def registerGui(self, widget: typing.Optional[QtWidgets.QMainWindow]) -> None: ...


class QgsProviderGuiRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, pluginPath: typing.Optional[str]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProviderGuiRegistry') -> None: ...

    def mapLayerConfigWidgetFactories(self, layer: typing.Optional[_core.QgsMapLayer] = ...) -> list[QgsMapLayerConfigWidgetFactory]: ...
    def sourceWidgetProviders(self, providerKey: typing.Optional[str]) -> list['QgsProviderSourceWidgetProvider']: ...
    def subsetStringEditorProviders(self, providerKey: typing.Optional[str]) -> list['QgsSubsetStringEditorProvider']: ...
    def projectStorageGuiProviders(self, providerKey: typing.Optional[str]) -> list[QgsProjectStorageGuiProvider]: ...
    def sourceSelectProviders(self, providerKey: typing.Optional[str]) -> list['QgsSourceSelectProvider']: ...
    def dataItemGuiProviders(self, providerKey: typing.Optional[str]) -> list[QgsDataItemGuiProvider]: ...
    def registerGuis(self, widget: typing.Optional[QtWidgets.QMainWindow]) -> None: ...
    def providerMetadata(self, providerKey: typing.Optional[str]) -> typing.Optional[QgsProviderGuiMetadata]: ...
    def providerList(self) -> list[str]: ...


class QgsProviderSourceWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    validChanged: typing.ClassVar[QtCore.pyqtSignal]
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, mapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def groupTitle(self) -> str: ...
    def sourceUri(self) -> str: ...
    def setSourceUri(self, uri: typing.Optional[str]) -> None: ...


class QgsProviderSourceWidgetProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProviderSourceWidgetProvider') -> None: ...

    def createWidget(self, layer: typing.Optional[_core.QgsMapLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsProviderSourceWidget]: ...
    def canHandleLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> bool: ...
    def name(self) -> str: ...
    def providerKey(self) -> str: ...


class QgsProviderSourceWidgetProviderRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def createWidget(self, layer: typing.Optional[_core.QgsMapLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsProviderSourceWidget]: ...
    def providersByKey(self, providerKey: typing.Optional[str]) -> list[QgsProviderSourceWidgetProvider]: ...
    def providerByName(self, name: typing.Optional[str]) -> typing.Optional[QgsProviderSourceWidgetProvider]: ...
    def initializeFromProviderGuiRegistry(self, providerGuiRegistry: typing.Optional[QgsProviderGuiRegistry]) -> None: ...
    def removeProvider(self, provider: typing.Optional[QgsProviderSourceWidgetProvider]) -> bool: ...
    def addProvider(self, provider: typing.Optional[QgsProviderSourceWidgetProvider]) -> None: ...
    def providers(self) -> list[QgsProviderSourceWidgetProvider]: ...


class QgsProviderSublayerDialogModel(_core.QgsProviderSublayerModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def setGeometryTypesResolved(self, resolved: bool) -> None: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...


class QgsProviderSublayersDialog(QtWidgets.QDialog):

    def __init__(self, uri: typing.Optional[str], providerKey: typing.Optional[str], filePath: typing.Optional[str], initialDetails: collections.abc.Iterable[_core.QgsProviderSublayerDetails] = ..., acceptableTypes: collections.abc.Iterable[_core.Qgis.LayerType] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    layersAdded: typing.ClassVar[QtCore.pyqtSignal]
    def setGroupName(self, groupNameIn: typing.Optional[str]) -> None: ...
    def groupName(self) -> str: ...
    def selectedNonLayerItems(self) -> list[_core.QgsProviderSublayerModel.NonLayerItem]: ...
    def selectedLayers(self) -> list[_core.QgsProviderSublayerDetails]: ...
    def setNonLayerItems(self, items: collections.abc.Iterable[_core.QgsProviderSublayerModel.NonLayerItem]) -> None: ...


class QgsProxyStyle(QtWidgets.QProxyStyle):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...


class QgsQueryBuilder(QgsSubsetStringEditorInterface):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def setDatasourceDescription(self, uri: typing.Optional[str]) -> None: ...
    def loadQuery(self) -> None: ...
    def saveQuery(self) -> None: ...
    def test(self) -> None: ...
    def clear(self) -> None: ...
    def reject(self) -> None: ...
    def accept(self) -> None: ...
    @staticmethod
    def loadQueryFromFile(subset: typing.Optional[str]) -> bool: ...
    @staticmethod
    def saveQueryToFile(subset: typing.Optional[str]) -> bool: ...
    def codeEditorWidget(self) -> typing.Optional['QgsCodeEditor']: ...
    def setSubsetString(self, subsetString: typing.Optional[str]) -> None: ...
    def subsetString(self) -> str: ...
    def setSql(self, sqlStatement: typing.Optional[str]) -> None: ...
    def sql(self) -> str: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsQueryResultWidget(QtWidgets.QWidget):

    class QueryWidgetMode(enum.IntFlag):
        SqlQueryMode = ... # type: QgsQueryResultWidget.QueryWidgetMode
        QueryLayerUpdateMode = ... # type: QgsQueryResultWidget.QueryWidgetMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection] = ...) -> None: ...

    firstResultBatchFetched: typing.ClassVar[QtCore.pyqtSignal]
    createSqlVectorLayer: typing.ClassVar[QtCore.pyqtSignal]
    @typing.overload
    def copyResults(self) -> None: ...
    @typing.overload
    def copyResults(self, fromRow: int, toRow: int, fromColumn: int, toColumn: int) -> None: ...
    @deprecated("""""")
    def tokensReady(self, tokens: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def showError(self, title: typing.Optional[str], message: typing.Optional[str], isSqlError: bool = ...) -> None: ...
    def executeQuery(self) -> None: ...
    def notify(self, title: typing.Optional[str], text: typing.Optional[str], level: _core.Qgis.MessageLevel = ...) -> None: ...
    def setQuery(self, sql: typing.Optional[str]) -> None: ...
    def setConnection(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection]) -> None: ...
    def setWidgetMode(self, widgetMode: 'QgsQueryResultWidget.QueryWidgetMode') -> None: ...
    def setSqlVectorLayerOptions(self, options: _core.QgsAbstractDatabaseProviderConnection.SqlVectorLayerOptions) -> None: ...


class QgsQueryResultDialog(QtWidgets.QDialog):

    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def closeEvent(self, event: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def resultWidget(self) -> typing.Optional[QgsQueryResultWidget]: ...


class QgsQueryResultMainWindow(QtWidgets.QMainWindow):

    def __init__(self, connection: typing.Optional[_core.QgsAbstractDatabaseProviderConnection] = ..., identifierName: typing.Optional[str] = ...) -> None: ...

    def closeEvent(self, event: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def resultWidget(self) -> typing.Optional[QgsQueryResultWidget]: ...


class QgsRangeSlider(QtWidgets.QWidget):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    fixedRangeSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
    rangeLimitsChanged: typing.ClassVar[QtCore.pyqtSignal]
    rangeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def event(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setPageStep(self, step: int) -> None: ...
    def setSingleStep(self, step: int) -> None: ...
    def setRange(self, lower: int, upper: int) -> None: ...
    def setUpperValue(self, value: int) -> None: ...
    def setLowerValue(self, value: int) -> None: ...
    def setRangeLimits(self, minimum: int, maximum: int) -> None: ...
    def setMinimum(self, minimum: int) -> None: ...
    def setMaximum(self, maximum: int) -> None: ...
    def setFixedRangeSize(self, size: int) -> None: ...
    def fixedRangeSize(self) -> int: ...
    def pageStep(self) -> int: ...
    def singleStep(self) -> int: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def setFlippedDirection(self, flipped: bool) -> None: ...
    def flippedDirection(self) -> bool: ...
    def orientation(self) -> QtCore.Qt.Orientation: ...
    def setOrientation(self, orientation: QtCore.Qt.Orientation) -> None: ...
    def tickInterval(self) -> int: ...
    def setTickInterval(self, interval: int) -> None: ...
    def tickPosition(self) -> QtWidgets.QSlider.TickPosition: ...
    def setTickPosition(self, position: QtWidgets.QSlider.TickPosition) -> None: ...
    def upperValue(self) -> int: ...
    def lowerValue(self) -> int: ...
    def maximum(self) -> int: ...
    def minimum(self) -> int: ...


class QgsRasterFormatSaveOptionsWidget(QtWidgets.QWidget):

    class Type(enum.IntEnum):
        Default = ... # type: QgsRasterFormatSaveOptionsWidget.Type
        Full = ... # type: QgsRasterFormatSaveOptionsWidget.Type
        Table = ... # type: QgsRasterFormatSaveOptionsWidget.Type
        LineEdit = ... # type: QgsRasterFormatSaveOptionsWidget.Type
        ProfileLineEdit = ... # type: QgsRasterFormatSaveOptionsWidget.Type

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., format: typing.Optional[str] = ..., type: 'QgsRasterFormatSaveOptionsWidget.Type' = ..., provider: typing.Optional[str] = ...) -> None: ...

    optionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def updateProfiles(self) -> None: ...
    def validateOptions(self, gui: bool = ..., reportOk: bool = ...) -> str: ...
    def helpOptions(self) -> None: ...
    def apply(self) -> None: ...
    def setPyramidsFormat(self, format: _core.Qgis.RasterPyramidFormat) -> None: ...
    def setType(self, type: 'QgsRasterFormatSaveOptionsWidget.Type' = ...) -> None: ...
    def setOptions(self, options: typing.Optional[str]) -> None: ...
    def options(self) -> list[str]: ...
    def setRasterFileName(self, file: typing.Optional[str]) -> None: ...
    def setRasterLayer(self, rasterLayer: typing.Optional[_core.QgsRasterLayer]) -> None: ...
    def setProvider(self, provider: typing.Optional[str]) -> None: ...
    def setFormat(self, format: typing.Optional[str]) -> None: ...


class QgsRasterLayerSaveAsDialog(QtWidgets.QDialog):

    class ResolutionState(enum.IntEnum):
        OriginalResolution = ... # type: QgsRasterLayerSaveAsDialog.ResolutionState
        UserResolution = ... # type: QgsRasterLayerSaveAsDialog.ResolutionState

    class CrsState(enum.IntEnum):
        OriginalCrs = ... # type: QgsRasterLayerSaveAsDialog.CrsState
        CurrentCrs = ... # type: QgsRasterLayerSaveAsDialog.CrsState
        UserCrs = ... # type: QgsRasterLayerSaveAsDialog.CrsState

    class Mode(enum.IntEnum):
        RawDataMode = ... # type: QgsRasterLayerSaveAsDialog.Mode
        RenderedImageMode = ... # type: QgsRasterLayerSaveAsDialog.Mode

    def __init__(self, rasterLayer: typing.Optional[_core.QgsRasterLayer], sourceProvider: typing.Optional[_core.QgsRasterDataProvider], currentExtent: _core.QgsRectangle, layerCrs: _core.QgsCoordinateReferenceSystem, currentCrs: _core.QgsCoordinateReferenceSystem, parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def hideOutput(self) -> None: ...
    def hideFormat(self) -> None: ...
    def pyramidsConfigOptions(self) -> list[str]: ...
    def pyramidsFormat(self) -> _core.Qgis.RasterPyramidFormat: ...
    def pyramidsResamplingMethod(self) -> str: ...
    def buildPyramidsFlag(self) -> _core.Qgis.RasterBuildPyramidOption: ...
    def pyramidsList(self) -> list[int]: ...
    def noData(self) -> list[_core.QgsRasterRange]: ...
    def outputRectangle(self) -> _core.QgsRectangle: ...
    def creationOptions(self) -> list[str]: ...
    def createOptions(self) -> list[str]: ...
    def outputCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def outputFormat(self) -> str: ...
    def outputLayerName(self) -> str: ...
    def outputFileName(self) -> str: ...
    def setAddToCanvas(self, checked: bool) -> None: ...
    def addToCanvas(self) -> bool: ...
    def tileMode(self) -> bool: ...
    def maximumTileSizeY(self) -> int: ...
    def maximumTileSizeX(self) -> int: ...
    def yResolution(self) -> float: ...
    def xResolution(self) -> float: ...
    def nRows(self) -> int: ...
    def nColumns(self) -> int: ...
    def mode(self) -> 'QgsRasterLayerSaveAsDialog.Mode': ...


class QgsRasterPyramidsOptionsWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., provider: typing.Optional[str] = ...) -> None: ...

    someValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    overviewListChanged: typing.ClassVar[QtCore.pyqtSignal]
    def checkAllLevels(self, checked: bool) -> None: ...
    def apply(self) -> None: ...
    def setRasterFileName(self, file: typing.Optional[str]) -> None: ...
    def setRasterLayer(self, rasterLayer: typing.Optional[_core.QgsRasterLayer]) -> None: ...
    def resamplingMethod(self) -> str: ...
    def pyramidsFormat(self) -> _core.Qgis.RasterPyramidFormat: ...
    def overviewList(self) -> list[int]: ...
    def createOptionsWidget(self) -> typing.Optional[QgsRasterFormatSaveOptionsWidget]: ...
    def configOptions(self) -> list[str]: ...


class QgsRatioLockButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    lockChanged: typing.ClassVar[QtCore.pyqtSignal]
    def resetRatio(self) -> None: ...
    def setHeightSpinBox(self, widget: typing.Optional[QtWidgets.QDoubleSpinBox]) -> None: ...
    def setWidthSpinBox(self, widget: typing.Optional[QtWidgets.QDoubleSpinBox]) -> None: ...
    def locked(self) -> bool: ...
    def setLocked(self, locked: bool) -> None: ...


class QgsAbstractRelationEditorWidget(QtWidgets.QWidget):

    def __init__(self, config: dict[typing.Optional[str], typing.Any], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def afterSetRelations(self) -> None: ...
    def beforeSetRelations(self, newRelation: _core.QgsRelation, newNmRelation: _core.QgsRelation) -> None: ...
    def afterSetRelationFeature(self) -> None: ...
    def beforeSetRelationFeature(self, newRelation: _core.QgsRelation, newFeature: _core.QgsFeature) -> None: ...
    @deprecated("""""")
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def updateUi(self) -> None: ...
    def unlinkFeatures(self, fids: typing.Any) -> None: ...
    def deleteFeatures(self, fids: typing.Any) -> None: ...
    @deprecated("""""")
    def updateTitle(self) -> None: ...
    def showEvent(self, a0: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def duplicateFeatures(self, fids: typing.Any) -> None: ...
    def duplicateFeature(self, fid: int) -> None: ...
    def unlinkFeature(self, fid: int = ...) -> None: ...
    def onLinkFeatureDlgAccepted(self) -> None: ...
    def linkFeature(self, filterExpression: typing.Optional[str] = ...) -> None: ...
    def deleteFeature(self, fid: int = ...) -> None: ...
    def addFeature(self, geometry: _core.QgsGeometry = ...) -> typing.Any: ...
    def saveEdits(self) -> None: ...
    def toggleEditing(self, state: bool) -> None: ...
    def parentFormValueChanged(self, attribute: typing.Optional[str], newValue: typing.Any) -> None: ...
    relatedFeaturesChanged: typing.ClassVar[QtCore.pyqtSignal]
    def multiEditModeActive(self) -> bool: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def config(self) -> dict[str, typing.Any]: ...
    def setForceSuppressFormPopup(self, forceSuppressFormPopup: bool) -> None: ...
    def forceSuppressFormPopup(self) -> bool: ...
    def features(self) -> list[_core.QgsFeature]: ...
    def feature(self) -> _core.QgsFeature: ...
    def setLabel(self, label: typing.Optional[str] = ...) -> None: ...
    @deprecated("""""")
    def label(self) -> str: ...
    def setNmRelationId(self, nmRelationId: typing.Any = ...) -> None: ...
    def nmRelationId(self) -> typing.Any: ...
    @deprecated("""""")
    def setShowLabel(self, showLabel: bool) -> None: ...
    @deprecated("""""")
    def showLabel(self) -> bool: ...
    def editorContext(self) -> QgsAttributeEditorContext: ...
    def setEditorContext(self, context: QgsAttributeEditorContext) -> None: ...
    def setMultiEditFeatureIds(self, fids: typing.Any) -> None: ...
    def setFeature(self, feature: _core.QgsFeature, update: bool = ...) -> None: ...
    def nmRelation(self) -> _core.QgsRelation: ...
    def relation(self) -> _core.QgsRelation: ...
    def setRelations(self, relation: _core.QgsRelation, nmrelation: _core.QgsRelation) -> None: ...
    def setRelationFeature(self, relation: _core.QgsRelation, feature: _core.QgsFeature) -> None: ...


class QgsRelationEditorWidget(QgsAbstractRelationEditorWidget):

    class Button(enum.IntEnum):
        NoButton = ... # type: QgsRelationEditorWidget.Button
        Link = ... # type: QgsRelationEditorWidget.Button
        Unlink = ... # type: QgsRelationEditorWidget.Button
        SaveChildEdits = ... # type: QgsRelationEditorWidget.Button
        AddChildFeature = ... # type: QgsRelationEditorWidget.Button
        DuplicateChildFeature = ... # type: QgsRelationEditorWidget.Button
        DeleteChildFeature = ... # type: QgsRelationEditorWidget.Button
        ZoomToChildFeature = ... # type: QgsRelationEditorWidget.Button
        AllButtons = ... # type: QgsRelationEditorWidget.Button

    def __init__(self, config: dict[typing.Optional[str], typing.Any], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def afterSetRelations(self) -> None: ...
    def beforeSetRelations(self, newRelation: _core.QgsRelation, newNmRelation: _core.QgsRelation) -> None: ...
    def afterSetRelationFeature(self) -> None: ...
    def beforeSetRelationFeature(self, newRelation: _core.QgsRelation, newFeature: _core.QgsFeature) -> None: ...
    def updateUi(self) -> None: ...
    def parentFormValueChanged(self, attribute: typing.Optional[str], newValue: typing.Any) -> None: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def config(self) -> dict[str, typing.Any]: ...
    def zoomToSelectedFeatures(self) -> None: ...
    def deleteSelectedFeatures(self) -> None: ...
    def unlinkSelectedFeatures(self) -> None: ...
    def duplicateSelectedFeatures(self) -> None: ...
    @deprecated("""""")
    def duplicateFeature(self) -> None: ...
    def visibleButtons(self) -> 'QgsRelationEditorWidget.Button': ...
    def setVisibleButtons(self, buttons: 'QgsRelationEditorWidget.Button') -> None: ...
    def setEditorContext(self, context: QgsAttributeEditorContext) -> None: ...
    def featureSelectionManager(self) -> typing.Optional['QgsIFeatureSelectionManager']: ...
    def viewMode(self) -> 'QgsDualView.ViewMode': ...
    def setViewMode(self, mode: 'QgsDualView.ViewMode') -> None: ...


class QgsAbstractRelationEditorConfigWidget(QtWidgets.QWidget):

    def __init__(self, relation: _core.QgsRelation, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def nmRelation(self) -> _core.QgsRelation: ...
    def setNmRelation(self, nmRelation: _core.QgsRelation) -> None: ...
    def relation(self) -> _core.QgsRelation: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def config(self) -> dict[str, typing.Any]: ...


class QgsRelationEditorConfigWidget(QgsAbstractRelationEditorConfigWidget):

    def __init__(self, relation: _core.QgsRelation, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def mEditExpression_clicked(self) -> None: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def config(self) -> dict[str, typing.Any]: ...


class QgsAbstractRelationEditorWidgetFactory(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAbstractRelationEditorWidgetFactory') -> None: ...

    def configWidget(self, relation: _core.QgsRelation, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QgsAbstractRelationEditorConfigWidget]: ...
    def create(self, config: dict[typing.Optional[str], typing.Any], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsAbstractRelationEditorWidget]: ...
    def name(self) -> str: ...
    def type(self) -> str: ...


class QgsRelationWidgetRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsRelationWidgetRegistry') -> None: ...

    def defaultWidgetType(self) -> str: ...
    def setDefaultWidgetType(self, widgetType: typing.Optional[str]) -> None: ...
    def createConfigWidget(self, widgetType: typing.Optional[str], relation: _core.QgsRelation, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsAbstractRelationEditorConfigWidget]: ...
    def create(self, widgetType: typing.Optional[str], config: dict[typing.Optional[str], typing.Any], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsAbstractRelationEditorWidget]: ...
    def factories(self) -> typing.Any: ...
    def relationWidgetNames(self) -> list[str]: ...
    def removeRelationWidget(self, widgetType: typing.Optional[str]) -> None: ...
    def addRelationWidget(self, widgetFactory: typing.Optional[QgsAbstractRelationEditorWidgetFactory]) -> None: ...


class QgsRichTextEditor(QtWidgets.QWidget):

    class Mode(enum.Enum):
        QTextDocument = ... # type: QgsRichTextEditor.Mode
        QgsTextRenderer = ... # type: QgsRichTextEditor.Mode
        PlainText = ... # type: QgsRichTextEditor.Mode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def focusInEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    textChanged: typing.ClassVar[QtCore.pyqtSignal]
    def clearSource(self) -> None: ...
    def setText(self, text: typing.Optional[str]) -> None: ...
    def setTextCursor(self, cursor: QtGui.QTextCursor) -> None: ...
    def textCursor(self) -> QtGui.QTextCursor: ...
    def document(self) -> typing.Optional[QtGui.QTextDocument]: ...
    def textEdit(self) -> typing.Optional[QtWidgets.QTextEdit]: ...
    def toHtml(self) -> str: ...
    def toPlainText(self) -> str: ...
    def setMode(self, mode: 'QgsRichTextEditor.Mode') -> None: ...
    def mode(self) -> 'QgsRichTextEditor.Mode': ...


class QgsRubberBand(QgsMapCanvasItem):

    class IconType(enum.IntEnum):
        ICON_NONE = ... # type: QgsRubberBand.IconType
        ICON_CROSS = ... # type: QgsRubberBand.IconType
        ICON_X = ... # type: QgsRubberBand.IconType
        ICON_BOX = ... # type: QgsRubberBand.IconType
        ICON_CIRCLE = ... # type: QgsRubberBand.IconType
        ICON_FULL_BOX = ... # type: QgsRubberBand.IconType
        ICON_DIAMOND = ... # type: QgsRubberBand.IconType
        ICON_FULL_DIAMOND = ... # type: QgsRubberBand.IconType
        ICON_SVG = ... # type: QgsRubberBand.IconType

    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas], geometryType: _core.Qgis.GeometryType = ...) -> None: ...

    def updateRect(self) -> None: ...
    @typing.overload
    def drawShape(self, p: typing.Optional[QtGui.QPainter], pts: collections.abc.Iterable[QtCore.QPointF]) -> None: ...
    @typing.overload
    def drawShape(self, p: typing.Optional[QtGui.QPainter], rings: collections.abc.Iterable[QtGui.QPolygonF]) -> None: ...
    def paint(self, p: typing.Optional[QtGui.QPainter]) -> None: ...
    def setSymbol(self, symbol: typing.Optional[_core.QgsSymbol]) -> None: ...
    def symbol(self) -> typing.Optional[_core.QgsSymbol]: ...
    def updatePosition(self) -> None: ...
    def asGeometry(self) -> _core.QgsGeometry: ...
    def getPoint(self, i: int, j: int = ..., ringIndex: int = ...) -> typing.Optional[_core.QgsPointXY]: ...
    def numberOfVertices(self) -> int: ...
    def size(self) -> int: ...
    def setTranslationOffset(self, dx: float, dy: float) -> None: ...
    @typing.overload
    def addGeometry(self, geometry: _core.QgsGeometry, layer: typing.Optional[_core.QgsMapLayer], doUpdate: bool = ...) -> None: ...
    @typing.overload
    def addGeometry(self, geometry: _core.QgsGeometry, crs: _core.QgsCoordinateReferenceSystem = ..., doUpdate: bool = ...) -> None: ...
    def copyPointsFrom(self, other: typing.Optional['QgsRubberBand']) -> None: ...
    def setToCanvasRectangle(self, rect: QtCore.QRect) -> None: ...
    @typing.overload
    def setToGeometry(self, geom: _core.QgsGeometry, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    @typing.overload
    def setToGeometry(self, geometry: _core.QgsGeometry, crs: _core.QgsCoordinateReferenceSystem = ...) -> None: ...
    def partSize(self, geometryIndex: int) -> int: ...
    @typing.overload
    def movePoint(self, p: _core.QgsPointXY, geometryIndex: int = ..., ringIndex: int = ...) -> None: ...
    @typing.overload
    def movePoint(self, index: int, p: _core.QgsPointXY, geometryIndex: int = ..., ringIndex: int = ...) -> None: ...
    def removeLastPoint(self, geometryIndex: int = ..., doUpdate: bool = ..., ringIndex: int = ...) -> None: ...
    def removePoint(self, index: int = ..., doUpdate: bool = ..., geometryIndex: int = ..., ringIndex: int = ...) -> None: ...
    def closePoints(self, doUpdate: bool = ..., geometryIndex: int = ..., ringIndex: int = ...) -> None: ...
    def addPoint(self, p: _core.QgsPointXY, doUpdate: bool = ..., geometryIndex: int = ..., ringIndex: int = ...) -> None: ...
    def reset(self, geometryType: _core.Qgis.GeometryType = ...) -> None: ...
    def setBrushStyle(self, brushStyle: QtCore.Qt.BrushStyle) -> None: ...
    def setLineStyle(self, penStyle: QtCore.Qt.PenStyle) -> None: ...
    def iconSize(self) -> float: ...
    def setIconSize(self, iconSize: float) -> None: ...
    def icon(self) -> 'QgsRubberBand.IconType': ...
    def setSvgIcon(self, path: typing.Optional[str], drawOffset: QtCore.QPoint) -> None: ...
    def setIcon(self, icon: 'QgsRubberBand.IconType') -> None: ...
    def width(self) -> int: ...
    def setWidth(self, width: float) -> None: ...
    def secondaryStrokeColor(self) -> QtGui.QColor: ...
    def setSecondaryStrokeColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def strokeColor(self) -> QtGui.QColor: ...
    def setStrokeColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def fillColor(self) -> QtGui.QColor: ...
    def setFillColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...


class QgsScaleComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showPopup(self) -> None: ...
    def setNull(self) -> None: ...
    def setMinScale(self, scale: float) -> None: ...
    def setScale(self, scale: float) -> None: ...
    def updateScales(self, scales: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...
    scaleChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setPredefinedScales(self, scales: collections.abc.Iterable[float]) -> None: ...
    def allowNull(self) -> bool: ...
    def setAllowNull(self, allowNull: bool) -> None: ...
    @staticmethod
    def toDouble(string: typing.Optional[str]) -> typing.Tuple[float, typing.Optional[bool]]: ...
    @staticmethod
    def toString(scale: float) -> str: ...
    def minScale(self) -> float: ...
    def isNull(self) -> bool: ...
    def scale(self) -> float: ...
    def setScaleString(self, string: typing.Optional[str]) -> bool: ...
    def scaleString(self) -> str: ...


class QgsScaleMethodWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    methodChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setScaleMethod(self, method: _core.Qgis.ScaleCalculationMethod) -> None: ...
    def scaleMethod(self) -> _core.Qgis.ScaleCalculationMethod: ...


class QgsScaleRangeWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    rangeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setScaleRange(self, min: float, max: float) -> None: ...
    def setMaximumScale(self, scale: float) -> None: ...
    def setMinimumScale(self, scale: float) -> None: ...
    def reloadProjectScales(self) -> None: ...
    def maximumScale(self) -> float: ...
    def minimumScale(self) -> float: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsScaleVisibilityDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., title: typing.Optional[str] = ..., mapCanvas: typing.Optional[QgsMapCanvas] = ...) -> None: ...

    def setMaximumScale(self, scale: float) -> None: ...
    def setMinimumScale(self, scale: float) -> None: ...
    def setScaleVisibility(self, hasScaleVisibility: bool) -> None: ...
    @deprecated("""""")
    def setScaleVisiblity(self, hasScaleVisibility: bool) -> None: ...
    def maximumScale(self) -> float: ...
    def minimumScale(self) -> float: ...
    def hasScaleVisibility(self) -> bool: ...


class QgsScaleWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    scaleChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setNull(self) -> None: ...
    def setMinScale(self, scale: float) -> None: ...
    def setScaleFromCanvas(self) -> None: ...
    def updateScales(self, scales: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...
    def setScale(self, scale: float) -> None: ...
    def setPredefinedScales(self, scales: collections.abc.Iterable[float]) -> None: ...
    def allowNull(self) -> bool: ...
    def setAllowNull(self, allowNull: bool) -> None: ...
    @staticmethod
    def toDouble(scaleString: typing.Optional[str]) -> typing.Tuple[float, typing.Optional[bool]]: ...
    @staticmethod
    def toString(scale: float) -> str: ...
    def minScale(self) -> float: ...
    def isNull(self) -> bool: ...
    def scale(self) -> float: ...
    def setScaleString(self, string: typing.Optional[str]) -> bool: ...
    def scaleString(self) -> str: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def showCurrentScaleButton(self) -> bool: ...
    def setShowCurrentScaleButton(self, showCurrentScaleButton: bool) -> None: ...


class QgsScreenHelper(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def eventFilter(self, watched: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    availableGeometryChanged: typing.ClassVar[QtCore.pyqtSignal]
    screenDpiChanged: typing.ClassVar[QtCore.pyqtSignal]
    def availableGeometry(self) -> QtCore.QRect: ...
    def screenDpi(self) -> float: ...
    def windowHandle(self) -> typing.Optional[QtGui.QWindow]: ...
    def screen(self) -> typing.Optional[QtGui.QScreen]: ...


class QgsScrollArea(QtWidgets.QScrollArea):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def setVerticalOnly(self, verticalOnly: bool) -> None: ...
    def hasScrolled(self) -> bool: ...
    def scrollOccurred(self) -> None: ...


class QgsSearchQueryBuilder(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def loadQuery(self) -> None: ...
    def saveQuery(self) -> None: ...
    def setSearchString(self, searchString: typing.Optional[str]) -> None: ...
    def searchString(self) -> str: ...


class QgsSubsetStringEditorProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsSubsetStringEditorProvider') -> None: ...

    def createDialog(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> typing.Optional[QgsSubsetStringEditorInterface]: ...
    def canHandleLayerStorageType(self, layer: typing.Optional[_core.QgsVectorLayer]) -> bool: ...
    def canHandleLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> bool: ...
    def name(self) -> str: ...
    def providerKey(self) -> str: ...


class QgsSubsetStringEditorProviderRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def createDialog(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> typing.Optional[QgsSubsetStringEditorInterface]: ...
    def providersByKey(self, providerKey: typing.Optional[str]) -> list[QgsSubsetStringEditorProvider]: ...
    def providerByName(self, name: typing.Optional[str]) -> typing.Optional[QgsSubsetStringEditorProvider]: ...
    def initializeFromProviderGuiRegistry(self, providerGuiRegistry: typing.Optional[QgsProviderGuiRegistry]) -> None: ...
    def removeProvider(self, provider: typing.Optional[QgsSubsetStringEditorProvider]) -> bool: ...
    def addProvider(self, provider: typing.Optional[QgsSubsetStringEditorProvider]) -> None: ...
    def providers(self) -> list[QgsSubsetStringEditorProvider]: ...


class QgsShortcutsManager(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., settingsRoot: typing.Optional[str] = ...) -> None: ...

    def objectForSettingKey(self, name: typing.Optional[str]) -> typing.Optional[QtCore.QObject]: ...
    def objectSettingKey(self, object: typing.Optional[QtCore.QObject]) -> str: ...
    def settingsPath(self) -> str: ...
    def shortcutByName(self, name: typing.Optional[str]) -> typing.Optional[QtGui.QShortcut]: ...
    def actionByName(self, name: typing.Optional[str]) -> typing.Optional[QtGui.QAction]: ...
    def shortcutForSequence(self, sequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, typing.Optional[str], int]) -> typing.Optional[QtGui.QShortcut]: ...
    def actionForSequence(self, sequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, typing.Optional[str], int]) -> typing.Optional[QtGui.QAction]: ...
    def objectForSequence(self, sequence: typing.Union[QtGui.QKeySequence, QtGui.QKeySequence.StandardKey, typing.Optional[str], int]) -> typing.Optional[QtCore.QObject]: ...
    def setObjectKeySequence(self, object: typing.Optional[QtCore.QObject], sequence: typing.Optional[str]) -> bool: ...
    @typing.overload
    def setKeySequence(self, name: typing.Optional[str], sequence: typing.Optional[str]) -> bool: ...
    @typing.overload
    def setKeySequence(self, action: typing.Optional[QtGui.QAction], sequence: typing.Optional[str]) -> bool: ...
    @typing.overload
    def setKeySequence(self, shortcut: typing.Optional[QtGui.QShortcut], sequence: typing.Optional[str]) -> bool: ...
    @typing.overload
    def defaultKeySequence(self, action: typing.Optional[QtGui.QAction]) -> str: ...
    @typing.overload
    def defaultKeySequence(self, shortcut: typing.Optional[QtGui.QShortcut]) -> str: ...
    def objectDefaultKeySequence(self, object: typing.Optional[QtCore.QObject]) -> str: ...
    def listAll(self) -> list[QtCore.QObject]: ...
    def listShortcuts(self) -> list[QtGui.QShortcut]: ...
    def listActions(self) -> list[QtGui.QAction]: ...
    def unregisterShortcut(self, shortcut: typing.Optional[QtGui.QShortcut]) -> bool: ...
    def unregisterAction(self, action: typing.Optional[QtGui.QAction]) -> bool: ...
    def registerShortcut(self, shortcut: typing.Optional[QtGui.QShortcut], defaultSequence: typing.Optional[str] = ..., section: typing.Optional[str] = ...) -> bool: ...
    def registerAction(self, action: typing.Optional[QtGui.QAction], defaultShortcut: typing.Optional[str] = ..., section: typing.Optional[str] = ...) -> bool: ...
    def registerAllChildShortcuts(self, object: typing.Optional[QtCore.QObject], recursive: bool = ..., section: typing.Optional[str] = ...) -> None: ...
    def registerAllChildActions(self, object: typing.Optional[QtCore.QObject], recursive: bool = ..., section: typing.Optional[str] = ...) -> None: ...
    def registerAllChildren(self, object: typing.Optional[QtCore.QObject], recursive: bool = ..., section: typing.Optional[str] = ...) -> None: ...


class QgsSlider(QtWidgets.QSlider):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, orientation: QtCore.Qt.Orientation, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def variantValue(self) -> typing.Any: ...
    def setValue(self, value: typing.Any) -> None: ...
    def setSingleStep(self, step: typing.Any) -> None: ...
    def setMaximum(self, max: typing.Any) -> None: ...
    def setMinimum(self, min: typing.Any) -> None: ...


class QgsSnapIndicator(PyQt6.sip.wrapper):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def isVisible(self) -> bool: ...
    def setVisible(self, visible: bool = ...) -> None: ...
    def match(self) -> _core.QgsPointLocator.Match: ...
    def setMatch(self, match: _core.QgsPointLocator.Match) -> None: ...


class QgsSnapToGridCanvasItem(QgsMapCanvasItem):

    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def setEnabled(self, enabled: bool) -> None: ...
    def enabled(self) -> bool: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def setPrecision(self, precision: float) -> None: ...
    def precision(self) -> float: ...
    def setPoint(self, point: _core.QgsPointXY) -> None: ...
    def point(self) -> _core.QgsPointXY: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...


class QgsSourceSelectProvider(PyQt6.sip.wrapper):

    class Capability(enum.IntFlag):
        NoCapabilities = ... # type: QgsSourceSelectProvider.Capability
        ConfigureFromUri = ... # type: QgsSourceSelectProvider.Capability

    class Ordering(enum.IntEnum):
        OrderLocalProvider = ... # type: QgsSourceSelectProvider.Ordering
        OrderDatabaseProvider = ... # type: QgsSourceSelectProvider.Ordering
        OrderRemoteProvider = ... # type: QgsSourceSelectProvider.Ordering
        OrderSearchProvider = ... # type: QgsSourceSelectProvider.Ordering
        OrderOtherProvider = ... # type: QgsSourceSelectProvider.Ordering

    staticMetaObject = ... # type: QtCore.QMetaObject

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsSourceSelectProvider') -> None: ...

    def capabilities(self) -> 'QgsSourceSelectProvider.Capability': ...
    def createDataSourceWidget(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., widgetMode: _core.QgsProviderRegistry.WidgetMode = ...) -> typing.Optional[QgsAbstractDataSourceWidget]: ...
    def ordering(self) -> int: ...
    def icon(self) -> QtGui.QIcon: ...
    def toolTip(self) -> str: ...
    def text(self) -> str: ...
    def name(self) -> str: ...
    def providerKey(self) -> str: ...


class QgsSourceSelectProviderRegistry(QtCore.QObject):

    def __init__(self) -> None: ...

    providerRemoved: typing.ClassVar[QtCore.pyqtSignal]
    providerAdded: typing.ClassVar[QtCore.pyqtSignal]
    def createSelectionWidget(self, name: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget], fl: QtCore.Qt.WindowType, widgetMode: _core.QgsProviderRegistry.WidgetMode) -> typing.Optional[QgsAbstractDataSourceWidget]: ...
    def providersByKey(self, providerKey: typing.Optional[str]) -> list[QgsSourceSelectProvider]: ...
    def providerByName(self, name: typing.Optional[str]) -> typing.Optional[QgsSourceSelectProvider]: ...
    def initializeFromProviderGuiRegistry(self, providerGuiRegistry: typing.Optional[QgsProviderGuiRegistry]) -> None: ...
    def removeProvider(self, provider: typing.Optional[QgsSourceSelectProvider]) -> bool: ...
    def addProvider(self, provider: typing.Optional[QgsSourceSelectProvider]) -> None: ...
    def providers(self) -> list[QgsSourceSelectProvider]: ...


class QgsStatusBar(QtWidgets.QWidget):

    class Anchor(enum.IntEnum):
        AnchorLeft = ... # type: QgsStatusBar.Anchor
        AnchorRight = ... # type: QgsStatusBar.Anchor

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    def setParentStatusBar(self, statusBar: typing.Optional[QtWidgets.QStatusBar]) -> None: ...
    def clearMessage(self) -> None: ...
    def showMessage(self, message: typing.Optional[str], timeout: int = ...) -> None: ...
    def currentMessage(self) -> str: ...
    def removeWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def addPermanentWidget(self, widget: typing.Optional[QtWidgets.QWidget], stretch: int = ..., anchor: 'QgsStatusBar.Anchor' = ...) -> None: ...


class QgsStoredQueryManager(QtCore.QObject):

    class QueryDetails(PyQt6.sip.wrapper):

        backend = ... # type: _core.Qgis.QueryStorageBackend
        definition = ... # type: typing.Optional[str]
        name = ... # type: typing.Optional[str]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsStoredQueryManager.QueryDetails') -> None: ...

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    queryRemoved: typing.ClassVar[QtCore.pyqtSignal]
    queryChanged: typing.ClassVar[QtCore.pyqtSignal]
    queryAdded: typing.ClassVar[QtCore.pyqtSignal]
    def allQueries(self) -> list['QgsStoredQueryManager.QueryDetails']: ...
    def query(self, name: typing.Optional[str], backend: _core.Qgis.QueryStorageBackend = ...) -> str: ...
    def allQueryNames(self, backend: _core.Qgis.QueryStorageBackend = ...) -> list[str]: ...
    def removeQuery(self, name: typing.Optional[str], backend: _core.Qgis.QueryStorageBackend = ...) -> None: ...
    def storeQuery(self, name: typing.Optional[str], query: typing.Optional[str], backend: _core.Qgis.QueryStorageBackend = ...) -> None: ...


class QgsStyleItemsListWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    saveEntity: typing.ClassVar[QtCore.pyqtSignal]
    selectionChangedWithStylePath: typing.ClassVar[QtCore.pyqtSignal]
    selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def currentEntityType(self) -> _core.QgsStyle.StyleEntity: ...
    def currentItemName(self) -> str: ...
    def currentTagFilter(self) -> str: ...
    def setLayerType(self, type: _core.Qgis.GeometryType) -> None: ...
    def setSymbolType(self, type: _core.Qgis.SymbolType) -> None: ...
    def setEntityType(self, type: _core.QgsStyle.StyleEntity) -> None: ...
    def setStyle(self, style: typing.Optional[_core.QgsStyle]) -> None: ...


class QgsSublayersDialog(QtWidgets.QDialog):

    class ProviderType(enum.IntEnum):
        Ogr = ... # type: QgsSublayersDialog.ProviderType
        Gdal = ... # type: QgsSublayersDialog.ProviderType
        Vsifile = ... # type: QgsSublayersDialog.ProviderType
        Mdal = ... # type: QgsSublayersDialog.ProviderType

    class PromptMode(enum.IntEnum):
        PromptAlways = ... # type: QgsSublayersDialog.PromptMode
        PromptIfNeeded = ... # type: QgsSublayersDialog.PromptMode
        PromptNever = ... # type: QgsSublayersDialog.PromptMode
        PromptLoadAll = ... # type: QgsSublayersDialog.PromptMode

    class LayerDefinition(PyQt6.sip.wrapper):

        count = ... # type: int
        description = ... # type: typing.Optional[str]
        layerId = ... # type: int
        layerName = ... # type: typing.Optional[str]
        type = ... # type: typing.Optional[str]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsSublayersDialog.LayerDefinition') -> None: ...

    @deprecated("""""")
    def __init__(self, providerType: 'QgsSublayersDialog.ProviderType', name: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., dataSourceUri: typing.Optional[str] = ...) -> None: ...

    def exec(self) -> int: ...
    def countColumn(self) -> int: ...
    def addToGroupCheckbox(self) -> bool: ...
    def showAddToGroupCheckbox(self) -> bool: ...
    def setShowAddToGroupCheckbox(self, showAddToGroupCheckbox: bool) -> None: ...
    def selection(self) -> list['QgsSublayersDialog.LayerDefinition']: ...
    def populateLayerTable(self, list: collections.abc.Iterable['QgsSublayersDialog.LayerDefinition']) -> None: ...


class QgsSubstitutionListWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    substitutionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def substitutions(self) -> _core.QgsStringReplacementCollection: ...
    def setSubstitutions(self, substitutions: _core.QgsStringReplacementCollection) -> None: ...


class QgsSubstitutionListDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def substitutions(self) -> _core.QgsStringReplacementCollection: ...
    def setSubstitutions(self, substitutions: _core.QgsStringReplacementCollection) -> None: ...


class QgsSymbolButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., dialogTitle: typing.Optional[str] = ...) -> None: ...

    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def dropEvent(self, e: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, e: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def changeEvent(self, e: typing.Optional[QtCore.QEvent]) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setToDefaultSymbol(self) -> None: ...
    def setToNull(self) -> None: ...
    def setShowNull(self, showNull: bool) -> None: ...
    def pasteColor(self) -> None: ...
    def copyColor(self) -> None: ...
    def pasteSymbol(self) -> None: ...
    def copySymbol(self) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setSymbol(self, symbol: typing.Optional[_core.QgsSymbol]) -> None: ...
    def isNull(self) -> bool: ...
    def showNull(self) -> bool: ...
    def defaultSymbol(self) -> typing.Optional[_core.QgsSymbol]: ...
    def setDefaultSymbol(self, symbol: typing.Optional[_core.QgsSymbol]) -> None: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def symbol(self) -> typing.Optional[_core.QgsSymbol]: ...
    def dialogTitle(self) -> str: ...
    def setDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def symbolType(self) -> _core.Qgis.SymbolType: ...
    def setSymbolType(self, type: _core.Qgis.SymbolType) -> None: ...
    def sizeHint(self) -> QtCore.QSize: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsTableView(QtWidgets.QTableView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...


class QgsTableWidgetItem(QtWidgets.QTableWidgetItem):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, text: typing.Optional[str]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsTableWidgetItem') -> None: ...

    def __ge__(self, other: QtWidgets.QTableWidgetItem) -> bool: ...
    def __lt__(self, other: QtWidgets.QTableWidgetItem) -> bool: ...
    def sortRole(self) -> int: ...
    def setSortRole(self, role: int) -> None: ...


class QgsTabWidget(QtWidgets.QTabWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setTabStyle(self, tabIndex: int, labelStyle: _core.QgsAttributeEditorElement.LabelStyle) -> None: ...
    def tabRemoved(self, index: int) -> None: ...
    def tabInserted(self, index: int) -> None: ...
    def realTabIndex(self, widget: typing.Optional[QtWidgets.QWidget]) -> int: ...
    def setTabVisible(self, tab: typing.Optional[QtWidgets.QWidget], visible: bool) -> None: ...
    def showTab(self, tab: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def hideTab(self, tab: typing.Optional[QtWidgets.QWidget]) -> None: ...


class QgsTaskManagerWidget(QtWidgets.QWidget):

    def __init__(self, manager: typing.Optional[_core.QgsTaskManager], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsTemporalControllerWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def applySizeConstraintsToStack(self) -> bool: ...
    def temporalController(self) -> typing.Optional[_core.QgsTemporalNavigationObject]: ...


class QgsTextFormatWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    class Mode(enum.IntEnum):
        Text = ... # type: QgsTextFormatWidget.Mode
        Labeling = ... # type: QgsTextFormatWidget.Mode

    @typing.overload
    def __init__(self, format: _core.QgsTextFormat = ..., mapCanvas: typing.Optional[QgsMapCanvas] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...
    @typing.overload
    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget], mode: 'QgsTextFormatWidget.Mode', layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    def updatePreview(self) -> None: ...
    def saveFormat(self) -> None: ...
    def setFormatFromStyle(self, name: typing.Optional[str], type: _core.QgsStyle.StyleEntity, stylePath: typing.Optional[str]) -> None: ...
    def updatePlacementWidgets(self) -> None: ...
    def updateLinePlacementOptions(self) -> None: ...
    def setPropertyOverrideButtonsVisible(self, visible: bool) -> None: ...
    def labelGeometryType(self) -> _core.Qgis.GeometryType: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    @deprecated("""""")
    def enableDataDefinedAlignment(self, enable: bool) -> None: ...
    def setPreviewBackground(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def updateWidgetForFormat(self, format: _core.QgsTextFormat) -> None: ...
    auxiliaryFieldCreated: typing.ClassVar[QtCore.pyqtSignal]
    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDockMode(self, enabled: bool) -> None: ...
    def deactivateField(self, key: _core.QgsPalLayerSettings.Property) -> None: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def setFormat(self, format: _core.QgsTextFormat) -> None: ...
    def format(self, includeDataDefinedProperties: bool = ...) -> _core.QgsTextFormat: ...


class QgsTextFormatDialog(QtWidgets.QDialog):

    def __init__(self, format: _core.QgsTextFormat, mapCanvas: typing.Optional[QgsMapCanvas] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def format(self) -> _core.QgsTextFormat: ...


class QgsTextFormatPanelWidget(QgsPanelWidgetWrapper):

    def __init__(self, format: _core.QgsTextFormat, mapCanvas: typing.Optional[QgsMapCanvas] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def setFormat(self, format: _core.QgsTextFormat) -> None: ...
    def format(self) -> _core.QgsTextFormat: ...


class QgsTextPreview(QtWidgets.QLabel):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def mapUnits(self) -> _core.Qgis.DistanceUnit: ...
    def setMapUnits(self, unit: _core.Qgis.DistanceUnit) -> None: ...
    def scale(self) -> float: ...
    def setScale(self, scale: float) -> None: ...
    def format(self) -> _core.QgsTextFormat: ...
    def setFormat(self, format: _core.QgsTextFormat) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...


class QgsToolTipComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def event(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...


class QgsTreeWidgetItem(QtWidgets.QTreeWidgetItem):

    @typing.overload
    def __init__(self, view: typing.Optional[QtWidgets.QTreeWidget], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, strings: collections.abc.Iterable[typing.Optional[str]], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, view: typing.Optional[QtWidgets.QTreeWidget], strings: collections.abc.Iterable[typing.Optional[str]], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, view: typing.Optional[QtWidgets.QTreeWidget], after: typing.Optional[QtWidgets.QTreeWidgetItem], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QTreeWidgetItem], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QTreeWidgetItem], strings: collections.abc.Iterable[typing.Optional[str]], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QTreeWidgetItem], after: typing.Optional[QtWidgets.QTreeWidgetItem], type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsTreeWidgetItem') -> None: ...

    def __ge__(self, other: QtWidgets.QTreeWidgetItem) -> bool: ...
    def __lt__(self, other: QtWidgets.QTreeWidgetItem) -> bool: ...
    def alwaysOnTopPriority(self) -> int: ...
    def setAlwaysOnTopPriority(self, priority: int) -> None: ...
    def sortData(self, column: int) -> typing.Any: ...
    def setSortData(self, column: int, value: typing.Any) -> None: ...


class QgsTreeWidgetItemObject(QtCore.QObject, QgsTreeWidgetItem):

    @typing.overload
    def __init__(self, type: int = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QTreeWidget], type: int = ...) -> None: ...

    itemEdited: typing.ClassVar[QtCore.pyqtSignal]
    def setData(self, column: int, role: int, value: typing.Any) -> None: ...


class QgsMapUnitScaleWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    mapUnitScaleChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setMapUnitScale(self, scale: _core.QgsMapUnitScale) -> None: ...
    def mapUnitScale(self) -> _core.QgsMapUnitScale: ...


class QgsMapUnitScaleDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setMapUnitScale(self, scale: _core.QgsMapUnitScale) -> None: ...
    def getMapUnitScale(self) -> _core.QgsMapUnitScale: ...


class QgsUnitSelectionWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setShowMapScaleButton(self, show: bool) -> None: ...
    def showMapScaleButton(self) -> bool: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setMapUnitScale(self, scale: _core.QgsMapUnitScale) -> None: ...
    def getMapUnitScale(self) -> _core.QgsMapUnitScale: ...
    def setUnit(self, unit: _core.Qgis.RenderUnit) -> None: ...
    def setUnitIndex(self, unitIndex: int) -> None: ...
    def unit(self) -> _core.Qgis.RenderUnit: ...
    def getUnit(self) -> int: ...
    @typing.overload
    def setUnits(self, units: collections.abc.Iterable[typing.Optional[str]], mapUnitIdx: int) -> None: ...
    @typing.overload
    def setUnits(self, units: collections.abc.Iterable[_core.Qgis.RenderUnit]) -> None: ...


class QgsUserInputWidget(QgsFloatingWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def addUserInputWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...


class QgsValidityCheckResultsModel(QtCore.QAbstractItemModel):

    class CustomRole(enum.IntEnum):
        Description = ... # type: QgsValidityCheckResultsModel.CustomRole

    def __init__(self, results: collections.abc.Iterable[_core.QgsValidityCheckResult], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex) -> QtCore.QModelIndex: ...


class QgsValidityCheckResultsWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    @staticmethod
    def runChecks(type: int, context: typing.Optional[_core.QgsValidityCheckContext], title: typing.Optional[str], description: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> bool: ...
    def setResults(self, results: collections.abc.Iterable[_core.QgsValidityCheckResult]) -> None: ...
    def setDescription(self, description: typing.Optional[str]) -> None: ...


class QgsVariableEditorWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    scopeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def reloadContext(self) -> None: ...
    def variablesInActiveScope(self) -> dict[str, typing.Any]: ...
    def settingGroup(self) -> str: ...
    def setSettingGroup(self, group: typing.Optional[str]) -> None: ...
    def editableScope(self) -> typing.Optional[_core.QgsExpressionContextScope]: ...
    def setEditableScopeIndex(self, scopeIndex: int) -> None: ...
    def context(self) -> typing.Optional[_core.QgsExpressionContext]: ...
    def setContext(self, context: typing.Optional[_core.QgsExpressionContext]) -> None: ...


class QgsVectorLayerTemporalPropertiesWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def syncToLayer(self) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def saveTemporalProperties(self) -> None: ...


class QgsVertexMarker(QgsMapCanvasItem):

    class IconType(enum.IntEnum):
        ICON_NONE = ... # type: QgsVertexMarker.IconType
        ICON_CROSS = ... # type: QgsVertexMarker.IconType
        ICON_X = ... # type: QgsVertexMarker.IconType
        ICON_BOX = ... # type: QgsVertexMarker.IconType
        ICON_CIRCLE = ... # type: QgsVertexMarker.IconType
        ICON_DOUBLE_TRIANGLE = ... # type: QgsVertexMarker.IconType
        ICON_TRIANGLE = ... # type: QgsVertexMarker.IconType
        ICON_RHOMBUS = ... # type: QgsVertexMarker.IconType
        ICON_INVERTED_TRIANGLE = ... # type: QgsVertexMarker.IconType

    def __init__(self, mapCanvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def updatePosition(self) -> None: ...
    def boundingRect(self) -> QtCore.QRectF: ...
    def paint(self, p: typing.Optional[QtGui.QPainter]) -> None: ...
    def setPenWidth(self, width: int) -> None: ...
    def fillColor(self) -> QtGui.QColor: ...
    def setFillColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def color(self) -> QtGui.QColor: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setIconSize(self, iconSize: int) -> None: ...
    def setIconType(self, iconType: int) -> None: ...
    def center(self) -> _core.QgsPointXY: ...
    def setCenter(self, point: _core.QgsPointXY) -> None: ...


class QgsVScrollArea(QgsScrollArea):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def eventFilter(self, o: typing.Optional[QtCore.QObject], e: typing.Optional[QtCore.QEvent]) -> bool: ...


class QgsWindowManagerInterface(PyQt6.sip.wrapper):

    class StandardDialog(enum.IntEnum):
        DialogStyleManager = ... # type: QgsWindowManagerInterface.StandardDialog

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsWindowManagerInterface') -> None: ...

    def openStandardDialog(self, dialog: 'QgsWindowManagerInterface.StandardDialog') -> typing.Optional[QtWidgets.QWidget]: ...


class QgsActionMenu(QtWidgets.QMenu):

    class ActionData(PyQt6.sip.wrapper):

        actionData = ... # type: typing.Any
        actionType = ... # type: _core.Qgis.ActionType
        featureId = ... # type: int
        mapLayer = ... # type: _core.QgsMapLayer

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, action: _core.QgsAction, featureId: int, mapLayer: typing.Optional[_core.QgsMapLayer]) -> None: ...
        @typing.overload
        def __init__(self, action: typing.Optional['QgsMapLayerAction'], featureId: int, mapLayer: typing.Optional[_core.QgsMapLayer]) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsActionMenu.ActionData') -> None: ...

    @typing.overload
    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], feature: _core.QgsFeature, actionScope: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], fid: int, actionScope: typing.Optional[str], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    reinit: typing.ClassVar[QtCore.pyqtSignal]
    def isEmpty(self) -> bool: ...
    def menuActions(self) -> list[_core.QgsAction]: ...
    def expressionContextScope(self) -> _core.QgsExpressionContextScope: ...
    def setExpressionContextScope(self, scope: _core.QgsExpressionContextScope) -> None: ...
    def setMode(self, mode: QgsAttributeEditorContext.Mode) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def setActionContextGenerator(self, generator: typing.Optional[QgsMapLayerActionContextGenerator]) -> None: ...


class QgsMapLayerAction(QtGui.QAction):

    @typing.overload
    def __init__(self, name: typing.Optional[str], parent: typing.Optional[QtCore.QObject], targets: _core.Qgis.MapLayerActionTarget = ..., icon: QtGui.QIcon = ..., flags: _core.Qgis.MapLayerActionFlag = ...) -> None: ...
    @typing.overload
    def __init__(self, name: typing.Optional[str], parent: typing.Optional[QtCore.QObject], layer: typing.Optional[_core.QgsMapLayer], targets: _core.Qgis.MapLayerActionTarget = ..., icon: QtGui.QIcon = ..., flags: _core.Qgis.MapLayerActionFlag = ...) -> None: ...
    @typing.overload
    def __init__(self, name: typing.Optional[str], parent: typing.Optional[QtCore.QObject], layerType: _core.Qgis.LayerType, targets: _core.Qgis.MapLayerActionTarget = ..., icon: QtGui.QIcon = ..., flags: _core.Qgis.MapLayerActionFlag = ...) -> None: ...

    triggeredForLayerV2: typing.ClassVar[QtCore.pyqtSignal]
    triggeredForFeatureV2: typing.ClassVar[QtCore.pyqtSignal]
    triggeredForFeaturesV2: typing.ClassVar[QtCore.pyqtSignal]
    triggeredForLayer: typing.ClassVar[QtCore.pyqtSignal]
    triggeredForFeature: typing.ClassVar[QtCore.pyqtSignal]
    triggeredForFeatures: typing.ClassVar[QtCore.pyqtSignal]
    def isEnabledOnlyWhenEditable(self) -> bool: ...
    def targets(self) -> _core.Qgis.MapLayerActionTarget: ...
    def setTargets(self, targets: _core.Qgis.MapLayerActionTarget) -> None: ...
    @typing.overload
    @deprecated("""""")
    def triggerForLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    @typing.overload
    def triggerForLayer(self, layer: typing.Optional[_core.QgsMapLayer], context: 'QgsMapLayerActionContext') -> None: ...
    @typing.overload
    @deprecated("""""")
    def triggerForFeature(self, layer: typing.Optional[_core.QgsMapLayer], feature: _core.QgsFeature) -> None: ...
    @typing.overload
    def triggerForFeature(self, layer: typing.Optional[_core.QgsMapLayer], feature: _core.QgsFeature, context: 'QgsMapLayerActionContext') -> None: ...
    @typing.overload
    @deprecated("""""")
    def triggerForFeatures(self, layer: typing.Optional[_core.QgsMapLayer], featureList: collections.abc.Iterable[_core.QgsFeature]) -> None: ...
    @typing.overload
    def triggerForFeatures(self, layer: typing.Optional[_core.QgsMapLayer], featureList: collections.abc.Iterable[_core.QgsFeature], context: 'QgsMapLayerActionContext') -> None: ...
    @typing.overload
    @deprecated("""""")
    def canRunUsingLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> bool: ...
    @typing.overload
    def canRunUsingLayer(self, layer: typing.Optional[_core.QgsMapLayer], context: 'QgsMapLayerActionContext') -> bool: ...
    def flags(self) -> _core.Qgis.MapLayerActionFlag: ...


class QgsMapLayerActionContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsMapLayerActionContext') -> None: ...

    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setAttributeDialog(self, dialog: typing.Optional[QgsAttributeDialog]) -> None: ...
    def attributeDialog(self) -> typing.Optional[QgsAttributeDialog]: ...


class QgsMapLayerActionRegistry(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def defaultActionForLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> typing.Optional[QgsMapLayerAction]: ...
    def setDefaultActionForLayer(self, layer: typing.Optional[_core.QgsMapLayer], action: typing.Optional[QgsMapLayerAction]) -> None: ...
    def removeMapLayerAction(self, action: typing.Optional[QgsMapLayerAction]) -> bool: ...
    def mapLayerActions(self, layer: typing.Optional[_core.QgsMapLayer], targets: _core.Qgis.MapLayerActionTarget = ..., context: QgsMapLayerActionContext = ...) -> list[QgsMapLayerAction]: ...
    def addMapLayerAction(self, action: typing.Optional[QgsMapLayerAction]) -> None: ...


class QgsAnnotationItemCommonPropertiesWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    itemChanged: typing.ClassVar[QtCore.pyqtSignal]
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def updateItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> None: ...
    def setItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> None: ...


class QgsAnnotationItemAbstractGuiMetadata(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, type: typing.Optional[str], visibleName: typing.Optional[str], groupId: typing.Optional[str] = ..., flags: _core.Qgis.AnnotationItemGuiFlag = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAnnotationItemAbstractGuiMetadata') -> None: ...

    def newItemAddedToLayer(self, item: typing.Optional[_core.QgsAnnotationItem], layer: typing.Optional[_core.QgsAnnotationLayer]) -> None: ...
    def createItem(self) -> typing.Optional[_core.QgsAnnotationItem]: ...
    def createMapTool(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> typing.Optional['QgsCreateAnnotationItemMapToolInterface']: ...
    def createItemWidget(self, item: typing.Optional[_core.QgsAnnotationItem]) -> typing.Optional['QgsAnnotationItemBaseWidget']: ...
    def creationIcon(self) -> QtGui.QIcon: ...
    def visibleName(self) -> str: ...
    def groupId(self) -> str: ...
    def flags(self) -> _core.Qgis.AnnotationItemGuiFlag: ...
    def type(self) -> str: ...


class QgsAnnotationItemGuiGroup(PyQt6.sip.wrapper):

    icon = ... # type: QtGui.QIcon
    id = ... # type: typing.Optional[str]
    name = ... # type: typing.Optional[str]

    @typing.overload
    def __init__(self, id: typing.Optional[str] = ..., name: typing.Optional[str] = ..., icon: QtGui.QIcon = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsAnnotationItemGuiGroup') -> None: ...


class QgsAnnotationItemGuiRegistry(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    typeAdded: typing.ClassVar[QtCore.pyqtSignal]
    def addDefaultItems(self) -> None: ...
    def itemMetadataIds(self) -> list[int]: ...
    def createItemWidget(self, item: typing.Optional[_core.QgsAnnotationItem]) -> typing.Optional['QgsAnnotationItemBaseWidget']: ...
    def newItemAddedToLayer(self, metadataId: int, item: typing.Optional[_core.QgsAnnotationItem], layer: typing.Optional[_core.QgsAnnotationLayer]) -> None: ...
    def createItem(self, metadataId: int) -> typing.Optional[_core.QgsAnnotationItem]: ...
    def itemGroup(self, id: typing.Optional[str]) -> QgsAnnotationItemGuiGroup: ...
    def addItemGroup(self, group: QgsAnnotationItemGuiGroup) -> bool: ...
    def addAnnotationItemGuiMetadata(self, metadata: typing.Optional[QgsAnnotationItemAbstractGuiMetadata]) -> bool: ...
    def metadataIdForItemType(self, type: typing.Optional[str]) -> int: ...
    def itemMetadata(self, metadataId: int) -> typing.Optional[QgsAnnotationItemAbstractGuiMetadata]: ...


class QgsAnnotationItemBaseWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def renderedItemDetails(self) -> typing.Optional[_core.QgsRenderedAnnotationItemDetails]: ...
    def setNewItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> bool: ...
    itemChanged: typing.ClassVar[QtCore.pyqtSignal]
    def focusDefaultWidget(self) -> None: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def itemId(self) -> str: ...
    def setItemId(self, id: typing.Optional[str]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsAnnotationLayer]: ...
    def setLayer(self, layer: typing.Optional[_core.QgsAnnotationLayer]) -> None: ...
    def setItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> bool: ...
    def updateItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> None: ...
    def createItem(self) -> typing.Optional[_core.QgsAnnotationItem]: ...


class QgsCreateAnnotationItemMapToolHandler(QtCore.QObject):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    itemCreated: typing.ClassVar[QtCore.pyqtSignal]
    def pushCreatedItem(self, item: typing.Optional[_core.QgsAnnotationItem]) -> None: ...
    def targetLayer(self) -> typing.Optional[_core.QgsAnnotationLayer]: ...
    def takeCreatedItem(self) -> typing.Optional[_core.QgsAnnotationItem]: ...


class QgsCreateAnnotationItemMapToolInterface(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsCreateAnnotationItemMapToolInterface') -> None: ...

    def mapTool(self) -> typing.Optional['QgsMapTool']: ...
    def handler(self) -> typing.Optional[QgsCreateAnnotationItemMapToolHandler]: ...


class QgsAttributeTableDelegate(QtWidgets.QItemDelegate):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    actionColumnItemPainted: typing.ClassVar[QtCore.pyqtSignal]
    def setFeatureSelectionModel(self, featureSelectionModel: typing.Optional['QgsFeatureSelectionModel']) -> None: ...
    def setEditorData(self, editor: typing.Optional[QtWidgets.QWidget], index: QtCore.QModelIndex) -> None: ...
    def setModelData(self, editor: typing.Optional[QtWidgets.QWidget], model: typing.Optional[QtCore.QAbstractItemModel], index: QtCore.QModelIndex) -> None: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ...
    def createEditor(self, parent: typing.Optional[QtWidgets.QWidget], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> typing.Optional[QtWidgets.QWidget]: ...


class QgsFeatureModel(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsFeatureModel') -> None: ...

    def fidToIndex(self, fid: int) -> QtCore.QModelIndex: ...


class QgsAttributeTableFilterModel(QtCore.QSortFilterProxyModel, QgsFeatureModel):

    class CustomRole(enum.IntEnum):
        Type = ... # type: QgsAttributeTableFilterModel.CustomRole

    class ColumnType(enum.IntEnum):
        ColumnTypeField = ... # type: QgsAttributeTableFilterModel.ColumnType
        ColumnTypeActionButton = ... # type: QgsAttributeTableFilterModel.ColumnType

    class FilterMode(enum.IntEnum):
        ShowAll = ... # type: QgsAttributeTableFilterModel.FilterMode
        ShowSelected = ... # type: QgsAttributeTableFilterModel.FilterMode
        ShowVisible = ... # type: QgsAttributeTableFilterModel.FilterMode
        ShowFilteredList = ... # type: QgsAttributeTableFilterModel.FilterMode
        ShowEdited = ... # type: QgsAttributeTableFilterModel.FilterMode
        ShowInvalid = ... # type: QgsAttributeTableFilterModel.FilterMode

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], sourceModel: typing.Optional['QgsAttributeTableModel'], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def filterFeatures(self) -> None: ...
    def extentsChanged(self) -> None: ...
    def lessThan(self, left: QtCore.QModelIndex, right: QtCore.QModelIndex) -> bool: ...
    def generateListOfVisibleFeatures(self) -> None: ...
    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    filterError: typing.ClassVar[QtCore.pyqtSignal]
    visibleReloaded: typing.ClassVar[QtCore.pyqtSignal]
    featuresFiltered: typing.ClassVar[QtCore.pyqtSignal]
    sortColumnChanged: typing.ClassVar[QtCore.pyqtSignal]
    def filterExpression(self) -> str: ...
    def setFilterExpression(self, expression: _core.QgsExpression, context: _core.QgsExpressionContext) -> None: ...
    def setAttributeTableConfig(self, config: _core.QgsAttributeTableConfig) -> None: ...
    def columnCount(self, parent: QtCore.QModelIndex) -> int: ...
    def actionColumnIndex(self) -> int: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def sortExpression(self) -> str: ...
    @typing.overload
    def sort(self, column: int, order: QtCore.Qt.SortOrder = ...) -> None: ...
    @typing.overload
    def sort(self, expression: typing.Optional[str], order: QtCore.Qt.SortOrder = ...) -> None: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def mapFromSource(self, sourceIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapToSource(self, proxyIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapFromMaster(self, sourceIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapToMaster(self, proxyIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def fidToIndexList(self, fid: int) -> list[QtCore.QModelIndex]: ...
    def fidToIndex(self, fid: int) -> QtCore.QModelIndex: ...
    def rowToId(self, row: QtCore.QModelIndex) -> int: ...
    def masterModel(self) -> typing.Optional['QgsAttributeTableModel']: ...
    def layerCache(self) -> typing.Optional[_core.QgsVectorLayerCache]: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def filterMode(self) -> 'QgsAttributeTableFilterModel.FilterMode': ...
    def connectFilterModeConnections(self, filterMode: 'QgsAttributeTableFilterModel.FilterMode') -> None: ...
    def disconnectFilterModeConnections(self) -> None: ...
    def setFilterMode(self, filterMode: 'QgsAttributeTableFilterModel.FilterMode') -> None: ...
    def filteredFeatures(self) -> typing.Any: ...
    def setFilteredFeatures(self, ids: typing.Any) -> None: ...
    def selectedOnTop(self) -> bool: ...
    def setSelectedOnTop(self, selectedOnTop: bool) -> None: ...
    def setSourceModel(self, sourceModel: typing.Optional['QgsAttributeTableModel']) -> None: ...


class QgsAttributeTableModel(QtCore.QAbstractTableModel):

    class CustomRole(enum.IntEnum):
        FeatureId = ... # type: QgsAttributeTableModel.CustomRole
        FieldIndex = ... # type: QgsAttributeTableModel.CustomRole
        User = ... # type: QgsAttributeTableModel.CustomRole
        Sort = ... # type: QgsAttributeTableModel.CustomRole

    def __init__(self, layerCache: typing.Optional[_core.QgsVectorLayerCache], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    finished: typing.ClassVar[QtCore.pyqtSignal]
    modelChanged: typing.ClassVar[QtCore.pyqtSignal]
    def fieldConditionalStyleChanged(self, fieldName: typing.Optional[str]) -> None: ...
    def loadLayer(self) -> None: ...
    def setShowValidityState(self, show: bool) -> None: ...
    def showValidityState(self) -> bool: ...
    def setExtraColumns(self, extraColumns: int) -> None: ...
    def extraColumns(self) -> int: ...
    def editorContext(self) -> QgsAttributeEditorContext: ...
    def setEditorContext(self, context: QgsAttributeEditorContext) -> None: ...
    def request(self) -> _core.QgsFeatureRequest: ...
    def setRequest(self, request: _core.QgsFeatureRequest) -> None: ...
    def sortCacheExpression(self, cacheIndex: int = ...) -> str: ...
    def prefetchSortData(self, expression: typing.Optional[str], cacheIndex: int = ...) -> None: ...
    def prefetchColumnData(self, column: int) -> None: ...
    def feature(self, idx: QtCore.QModelIndex) -> _core.QgsFeature: ...
    def executeMapLayerAction(self, action: typing.Optional[QgsMapLayerAction], idx: QtCore.QModelIndex, context: QgsMapLayerActionContext = ...) -> None: ...
    def executeAction(self, action: QtCore.QUuid, idx: QtCore.QModelIndex) -> None: ...
    def layerCache(self) -> typing.Optional[_core.QgsVectorLayerCache]: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def swapRows(self, a: int, b: int) -> None: ...
    def rowToId(self, row: int) -> int: ...
    def fieldCol(self, idx: int) -> int: ...
    def fieldIdx(self, col: int) -> int: ...
    def idToIndexList(self, id: int) -> list[QtCore.QModelIndex]: ...
    def idToIndex(self, id: int) -> QtCore.QModelIndex: ...
    def idToRow(self, id: int) -> int: ...
    def resetModel(self) -> None: ...
    def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
    def reload(self, index1: QtCore.QModelIndex, index2: QtCore.QModelIndex) -> None: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...


class QgsAttributeTableView(QgsTableView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def _q_selectRow(self, row: int) -> None: ...
    def selectRow(self, row: int) -> None: ...
    def selectAll(self) -> None: ...
    @typing.overload
    def repaintRequested(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> None: ...
    @typing.overload
    def repaintRequested(self) -> None: ...
    finished: typing.ClassVar[QtCore.pyqtSignal]
    columnResized: typing.ClassVar[QtCore.pyqtSignal]
    willShowContextMenu: typing.ClassVar[QtCore.pyqtSignal]
    def closeEvent(self, event: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def contextMenuEvent(self, event: typing.Optional[QtGui.QContextMenuEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def closeCurrentEditor(self) -> None: ...
    def scrollToFeature(self, fid: int, column: int = ...) -> None: ...
    def selectedFeaturesIds(self) -> list[int]: ...
    def setAttributeTableConfig(self, config: _core.QgsAttributeTableConfig) -> None: ...
    def eventFilter(self, object: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setFeatureSelectionManager(self, featureSelectionManager: typing.Optional['QgsIFeatureSelectionManager']) -> None: ...
    def setModel(self, filterModel: typing.Optional[QgsAttributeTableFilterModel]) -> None: ...


class QgsDualView(QtWidgets.QStackedWidget):

    class FeatureListBrowsingAction(enum.IntEnum):
        NoAction = ... # type: QgsDualView.FeatureListBrowsingAction
        PanToFeature = ... # type: QgsDualView.FeatureListBrowsingAction
        ZoomToFeature = ... # type: QgsDualView.FeatureListBrowsingAction

    class ViewMode(enum.IntEnum):
        AttributeTable = ... # type: QgsDualView.ViewMode
        AttributeEditor = ... # type: QgsDualView.ViewMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def hideEvent(self, event: typing.Optional[QtGui.QHideEvent]) -> None: ...
    showContextMenuExternally: typing.ClassVar[QtCore.pyqtSignal]
    formModeChanged: typing.ClassVar[QtCore.pyqtSignal]
    filterExpressionSet: typing.ClassVar[QtCore.pyqtSignal]
    filterChanged: typing.ClassVar[QtCore.pyqtSignal]
    displayExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def parentFormValueChanged(self, attribute: typing.Optional[str], value: typing.Any) -> None: ...
    def cancelProgress(self) -> None: ...
    def copyCellContent(self) -> None: ...
    def toggleSearchMode(self, enabled: bool) -> None: ...
    def setMultiEditEnabled(self, enabled: bool) -> None: ...
    def openConditionalStyles(self) -> None: ...
    def saveEditChanges(self) -> bool: ...
    def setCurrentEditSelection(self, fids: typing.Any) -> None: ...
    @staticmethod
    def requiredAttributes(layer: typing.Optional[_core.QgsVectorLayer]) -> list[int]: ...
    def attributeTableConfig(self) -> _core.QgsAttributeTableConfig: ...
    def sortExpression(self) -> str: ...
    def setSortExpression(self, sortExpression: typing.Optional[str], sortOrder: QtCore.Qt.SortOrder = ...) -> None: ...
    def setAttributeTableConfig(self, config: _core.QgsAttributeTableConfig) -> None: ...
    def tableView(self) -> typing.Optional[QgsAttributeTableView]: ...
    def setFeatureSelectionManager(self, featureSelectionManager: typing.Optional['QgsIFeatureSelectionManager']) -> None: ...
    def setRequest(self, request: _core.QgsFeatureRequest) -> None: ...
    def masterModel(self) -> typing.Optional[QgsAttributeTableModel]: ...
    def filteredFeatures(self) -> typing.Any: ...
    def filterFeatures(self, filterExpression: _core.QgsExpression, context: _core.QgsExpressionContext) -> None: ...
    def setFilteredFeatures(self, filteredFeatures: typing.Any) -> None: ...
    def filteredFeatureCount(self) -> int: ...
    def featureCount(self) -> int: ...
    def setSelectedOnTop(self, selectedOnTop: bool) -> None: ...
    def filterMode(self) -> QgsAttributeTableFilterModel.FilterMode: ...
    def setFilterMode(self, filterMode: QgsAttributeTableFilterModel.FilterMode) -> None: ...
    def view(self) -> 'QgsDualView.ViewMode': ...
    def setView(self, view: 'QgsDualView.ViewMode') -> None: ...
    def init(self, layer: typing.Optional[_core.QgsVectorLayer], mapCanvas: typing.Optional[QgsMapCanvas], request: _core.QgsFeatureRequest = ..., context: QgsAttributeEditorContext = ..., loadFeatures: bool = ..., showFirstFeature: bool = ...) -> None: ...


class QgsAttributeTableAction(QtGui.QAction):

    def __init__(self, name: typing.Optional[str], dualView: typing.Optional[QgsDualView], action: QtCore.QUuid, fieldIdx: QtCore.QModelIndex) -> None: ...

    def featureForm(self) -> None: ...
    def execute(self) -> None: ...


class QgsAttributeTableMapLayerAction(QtGui.QAction):

    def __init__(self, name: typing.Optional[str], dualView: typing.Optional[QgsDualView], action: typing.Optional[QgsMapLayerAction], fieldIdx: QtCore.QModelIndex) -> None: ...

    def execute(self) -> None: ...


class QgsFeatureListModel(QtCore.QSortFilterProxyModel, QgsFeatureModel):

    class Role(enum.IntEnum):
        FeatureInfoRole = ... # type: QgsFeatureListModel.Role
        FeatureRole = ... # type: QgsFeatureListModel.Role
        FeatureWithGeometryRole = ... # type: QgsFeatureListModel.Role

    class FeatureInfo(PyQt6.sip.wrapper):

        isEdited = ... # type: bool
        isNew = ... # type: bool

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsFeatureListModel.FeatureInfo') -> None: ...

    def __init__(self, sourceModel: typing.Optional[QgsAttributeTableFilterModel], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def onEndInsertRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
    def onBeginInsertRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
    def onEndRemoveRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
    def onBeginRemoveRows(self, parent: QtCore.QModelIndex, first: int, last: int) -> None: ...
    def setSortByDisplayExpression(self, sortByDisplayExpression: bool, order: QtCore.Qt.SortOrder = ...) -> None: ...
    def sortByDisplayExpression(self) -> bool: ...
    def fidToIndexList(self, fid: int) -> list[QtCore.QModelIndex]: ...
    def fidToIndex(self, fid: int) -> QtCore.QModelIndex: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapSelectionToMaster(self, selection: QtCore.QItemSelection) -> QtCore.QItemSelection: ...
    def mapSelectionFromMaster(self, selection: QtCore.QItemSelection) -> QtCore.QItemSelection: ...
    def mapFromMaster(self, sourceIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapToMaster(self, proxyIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapFromSource(self, sourceIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def mapToSource(self, proxyIndex: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def fidToIdx(self, fid: int) -> QtCore.QModelIndex: ...
    def idxToFid(self, index: QtCore.QModelIndex) -> int: ...
    def featureByIndex(self, index: QtCore.QModelIndex, feat: _core.QgsFeature) -> bool: ...
    def displayExpression(self) -> str: ...
    def parserErrorString(self) -> str: ...
    def setDisplayExpression(self, expression: typing.Optional[str]) -> bool: ...
    def masterModel(self) -> typing.Optional[QgsAttributeTableModel]: ...
    def injectNull(self) -> bool: ...
    def setInjectNull(self, injectNull: bool) -> None: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def layerCache(self) -> typing.Optional[_core.QgsVectorLayerCache]: ...
    def setSourceModel(self, sourceModel: typing.Optional[QgsAttributeTableFilterModel]) -> None: ...


class QgsFeatureListView(QtWidgets.QListView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def editLastFeature(self) -> None: ...
    def editPreviousFeature(self) -> None: ...
    def editNextFeature(self) -> None: ...
    def editFirstFeature(self) -> None: ...
    @typing.overload
    def repaintRequested(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> None: ...
    @typing.overload
    def repaintRequested(self) -> None: ...
    def selectAll(self) -> None: ...
    @typing.overload
    def setEditSelection(self, fids: typing.Any) -> None: ...
    @typing.overload
    def setEditSelection(self, index: QtCore.QModelIndex, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ...
    willShowContextMenu: typing.ClassVar[QtCore.pyqtSignal]
    displayExpressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    currentEditSelectionProgressChanged: typing.ClassVar[QtCore.pyqtSignal]
    currentEditSelectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def contextMenuEvent(self, event: typing.Optional[QtGui.QContextMenuEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def setFeatureSelectionManager(self, featureSelectionManager: typing.Optional['QgsIFeatureSelectionManager']) -> None: ...
    def setCurrentFeatureEdited(self, state: bool) -> None: ...
    def currentEditSelection(self) -> typing.Any: ...
    def parserErrorString(self) -> str: ...
    def displayExpression(self) -> str: ...
    def setDisplayExpression(self, displayExpression: typing.Optional[str]) -> bool: ...
    def featureListModel(self) -> typing.Optional[QgsFeatureListModel]: ...
    def setModel(self, featureListModel: typing.Optional[QgsFeatureListModel]) -> None: ...
    def layerCache(self) -> typing.Optional[_core.QgsVectorLayerCache]: ...


class QgsFeatureListViewDelegate(QtWidgets.QItemDelegate):

    class Element(enum.IntEnum):
        EditElement = ... # type: QgsFeatureListViewDelegate.Element
        SelectionElement = ... # type: QgsFeatureListViewDelegate.Element

    ICON_SIZE = ... # type: int

    def __init__(self, listModel: typing.Optional[QgsFeatureListModel], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def paint(self, painter: typing.Optional[QtGui.QPainter], option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> None: ...
    def sizeHint(self, option: QtWidgets.QStyleOptionViewItem, index: QtCore.QModelIndex) -> QtCore.QSize: ...
    editButtonClicked: typing.ClassVar[QtCore.pyqtSignal]
    def setCurrentFeatureEdited(self, state: bool) -> None: ...
    def setFeatureSelectionModel(self, featureSelectionModel: typing.Optional['QgsFeatureSelectionModel']) -> None: ...
    def positionToElement(self, pos: QtCore.QPoint) -> 'QgsFeatureListViewDelegate.Element': ...
    def setEditSelectionModel(self, editSelectionModel: typing.Optional[QtCore.QItemSelectionModel]) -> None: ...


class QgsFeatureSelectionModel(QtCore.QItemSelectionModel):

    def __init__(self, model: typing.Optional[QtCore.QAbstractItemModel], featureModel: typing.Optional[QgsFeatureModel], featureSelectionHandler: typing.Optional['QgsIFeatureSelectionManager'], parent: typing.Optional[QtCore.QObject]) -> None: ...

    def setFeatureSelectionManager(self, featureSelectionManager: typing.Optional['QgsIFeatureSelectionManager']) -> None: ...
    def selectFeatures(self, selection: QtCore.QItemSelection, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ...
    @typing.overload
    def select(self, index: QtCore.QModelIndex, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ...
    @typing.overload
    def select(self, selection: QtCore.QItemSelection, command: QtCore.QItemSelectionModel.SelectionFlag) -> None: ...
    requestRepaint: typing.ClassVar[QtCore.pyqtSignal]
    @typing.overload
    def isSelected(self, fid: int) -> bool: ...
    @typing.overload
    def isSelected(self, index: QtCore.QModelIndex) -> bool: ...
    def enableSync(self, enable: bool) -> None: ...


class QgsFieldConditionalFormatWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    rulesUpdated: typing.ClassVar[QtCore.pyqtSignal]
    @staticmethod
    def defaultPresets() -> list[_core.QgsConditionalStyle]: ...
    def setPresets(self, styles: collections.abc.Iterable[_core.QgsConditionalStyle]) -> None: ...
    @deprecated("""""")
    def reset(self) -> None: ...
    @deprecated("""""")
    def loadStyle(self, style: _core.QgsConditionalStyle) -> None: ...
    def editStyle(self, index: int, style: _core.QgsConditionalStyle) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    @deprecated("""""")
    def viewRules(self) -> None: ...


class QgsEditConditionalFormatRuleWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    canceled: typing.ClassVar[QtCore.pyqtSignal]
    ruleDeleted: typing.ClassVar[QtCore.pyqtSignal]
    ruleSaved: typing.ClassVar[QtCore.pyqtSignal]
    def setRule(self, rule: typing.Optional[str]) -> None: ...
    def currentStyle(self) -> _core.QgsConditionalStyle: ...
    def loadStyle(self, style: _core.QgsConditionalStyle) -> None: ...
    def setPresets(self, styles: collections.abc.Iterable[_core.QgsConditionalStyle]) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class QgsIFeatureSelectionManager(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...

    selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def selectedFeatureIds(self) -> typing.Any: ...
    def setSelectedFeatures(self, ids: typing.Any) -> None: ...
    def deselect(self, ids: typing.Any) -> None: ...
    def select(self, ids: typing.Any) -> None: ...
    def selectedFeatureCount(self) -> int: ...


class QgsOrganizeTableColumnsDialog(QtWidgets.QDialog):

    @typing.overload
    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], config: _core.QgsAttributeTableConfig, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...
    @typing.overload
    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def toggleSelection(self) -> None: ...
    def hideAll(self) -> None: ...
    def showAll(self) -> None: ...
    def config(self) -> _core.QgsAttributeTableConfig: ...


class QgsAuthAuthoritiesEditor(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsAuthCertInfo(QtWidgets.QWidget):

    def __init__(self, cert: QtNetwork.QSslCertificate, manageCertTrust: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., connectionCAs: collections.abc.Iterable[QtNetwork.QSslCertificate] = ...) -> None: ...

    def trustCacheRebuilt(self) -> bool: ...


class QgsAuthCertInfoDialog(QtWidgets.QDialog):

    def __init__(self, cert: QtNetwork.QSslCertificate, manageCertTrust: bool, parent: typing.Optional[QtWidgets.QWidget] = ..., connectionCAs: collections.abc.Iterable[QtNetwork.QSslCertificate] = ...) -> None: ...

    def trustCacheRebuilt(self) -> bool: ...
    def certInfoWidget(self) -> typing.Optional[QgsAuthCertInfo]: ...


class QgsAuthCertEditors(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsAuthCertManager(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def certEditorsWidget(self) -> typing.Optional[QgsAuthCertEditors]: ...


class QgsAuthCertTrustPolicyComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., policy: _core.QgsAuthCertUtils.CertTrustPolicy = ..., defaultpolicy: _core.QgsAuthCertUtils.CertTrustPolicy = ...) -> None: ...

    def setDefaultTrustPolicy(self, defaultpolicy: _core.QgsAuthCertUtils.CertTrustPolicy) -> None: ...
    def setTrustPolicy(self, policy: _core.QgsAuthCertUtils.CertTrustPolicy) -> None: ...
    def trustPolicyForIndex(self, indx: int) -> _core.QgsAuthCertUtils.CertTrustPolicy: ...
    def trustPolicy(self) -> _core.QgsAuthCertUtils.CertTrustPolicy: ...


class QgsAuthConfigEditor(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., showUtilities: bool = ..., relayMessages: bool = ...) -> None: ...

    def setRelayMessages(self, relay: bool = ...) -> None: ...
    def setShowUtilitiesButton(self, show: bool = ...) -> None: ...
    def selectedAuthenticationConfigIds(self) -> list[str]: ...
    def toggleTitleVisibility(self, visible: bool) -> None: ...


class QgsAuthConfigSelect(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., dataprovider: typing.Optional[str] = ...) -> None: ...

    def clearMessage(self) -> None: ...
    def showMessage(self, msg: typing.Optional[str]) -> None: ...
    selectedConfigIdRemoved: typing.ClassVar[QtCore.pyqtSignal]
    selectedConfigIdChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDataProviderKey(self, key: typing.Optional[str]) -> None: ...
    def configId(self) -> str: ...
    def setConfigId(self, authcfg: typing.Optional[str]) -> None: ...


class QgsAuthConfigUriEdit(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., datauri: typing.Optional[str] = ..., dataprovider: typing.Optional[str] = ...) -> None: ...

    @staticmethod
    def hasConfigId(txt: typing.Optional[str]) -> bool: ...
    def dataSourceUri(self) -> str: ...
    def setDataSourceUri(self, datauri: typing.Optional[str]) -> None: ...


class QgsAuthMethodPlugins(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsAuthEditorWidgets(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsAuthIdentitiesEditor(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsAuthImportCertDialog(QtWidgets.QDialog):

    class CertInput(enum.IntEnum):
        AllInputs = ... # type: QgsAuthImportCertDialog.CertInput
        FileInput = ... # type: QgsAuthImportCertDialog.CertInput
        TextInput = ... # type: QgsAuthImportCertDialog.CertInput

    class CertFilter(enum.IntEnum):
        NoFilter = ... # type: QgsAuthImportCertDialog.CertFilter
        CaFilter = ... # type: QgsAuthImportCertDialog.CertFilter

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., filter: 'QgsAuthImportCertDialog.CertFilter' = ..., input: 'QgsAuthImportCertDialog.CertInput' = ...) -> None: ...

    def certTrustPolicy(self) -> _core.QgsAuthCertUtils.CertTrustPolicy: ...
    def allowInvalidCerts(self) -> bool: ...
    def certTextToImport(self) -> str: ...
    def certFileToImport(self) -> str: ...
    def certificatesToImport(self) -> list[QtNetwork.QSslCertificate]: ...


class QgsAuthImportIdentityDialog(QtWidgets.QDialog):

    class Validity(enum.IntEnum):
        Valid = ... # type: QgsAuthImportIdentityDialog.Validity
        Invalid = ... # type: QgsAuthImportIdentityDialog.Validity
        Unknown = ... # type: QgsAuthImportIdentityDialog.Validity

    class BundleTypes(enum.IntEnum):
        PkiPaths = ... # type: QgsAuthImportIdentityDialog.BundleTypes
        PkiPkcs12 = ... # type: QgsAuthImportIdentityDialog.BundleTypes

    class IdentityType(enum.IntEnum):
        CertIdentity = ... # type: QgsAuthImportIdentityDialog.IdentityType

    def __init__(self, identitytype: 'QgsAuthImportIdentityDialog.IdentityType', parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def pkiBundleToImport(self) -> _core.QgsPkiBundle: ...
    def identityType(self) -> 'QgsAuthImportIdentityDialog.IdentityType': ...


class QgsAuthMethodEdit(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def clearConfig(self) -> None: ...
    def resetConfig(self) -> None: ...
    def loadConfig(self, configmap: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
    validityChanged: typing.ClassVar[QtCore.pyqtSignal]
    def configMap(self) -> dict[str, str]: ...
    def validateConfig(self) -> bool: ...


class QgsAuthServersEditor(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsAuthSettingsWidget(QtWidgets.QWidget):

    class WarningType(enum.IntEnum):
        ProjectFile = ... # type: QgsAuthSettingsWidget.WarningType
        UserSettings = ... # type: QgsAuthSettingsWidget.WarningType

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., configId: typing.Optional[str] = ..., username: typing.Optional[str] = ..., password: typing.Optional[str] = ..., dataprovider: typing.Optional[str] = ...) -> None: ...

    configIdChanged: typing.ClassVar[QtCore.pyqtSignal]
    passwordChanged: typing.ClassVar[QtCore.pyqtSignal]
    usernameChanged: typing.ClassVar[QtCore.pyqtSignal]
    def convertToEncrypted(self) -> bool: ...
    def configurationTabIsSelected(self) -> bool: ...
    def storeUsernameIsChecked(self) -> bool: ...
    def storePasswordIsChecked(self) -> bool: ...
    def setStorePasswordChecked(self, checked: bool) -> None: ...
    def setStoreUsernameChecked(self, checked: bool) -> None: ...
    def showStoreCheckboxes(self, enabled: bool) -> None: ...
    def btnConvertToEncryptedIsEnabled(self) -> bool: ...
    @staticmethod
    def formattedWarning(warning: 'QgsAuthSettingsWidget.WarningType') -> str: ...
    def dataprovider(self) -> str: ...
    def setDataprovider(self, dataprovider: typing.Optional[str]) -> None: ...
    def setConfigId(self, configId: typing.Optional[str]) -> None: ...
    def configId(self) -> str: ...
    def setPassword(self, password: typing.Optional[str]) -> None: ...
    def password(self) -> str: ...
    def setUsername(self, username: typing.Optional[str]) -> None: ...
    def username(self) -> str: ...
    def setBasicText(self, basicText: typing.Optional[str]) -> None: ...
    def setWarningText(self, warningText: typing.Optional[str]) -> None: ...
    def removeBasicSettings(self) -> None: ...


class QgsAuthSslConfigWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., cert: QtNetwork.QSslCertificate = ..., hostport: typing.Optional[str] = ..., connectionCAs: collections.abc.Iterable[QtNetwork.QSslCertificate] = ...) -> None: ...

    readyToSaveChanged: typing.ClassVar[QtCore.pyqtSignal]
    hostPortValidityChanged: typing.ClassVar[QtCore.pyqtSignal]
    certFoundInAuthDatabase: typing.ClassVar[QtCore.pyqtSignal]
    configEnabledChanged: typing.ClassVar[QtCore.pyqtSignal]
    def readyToSave(self) -> bool: ...
    def validateHostPortText(self, txt: typing.Optional[str]) -> None: ...
    def setConfigCheckable(self, checkable: bool) -> None: ...
    def setSslHost(self, host: typing.Optional[str]) -> None: ...
    def resetSslPeerVerify(self) -> None: ...
    def setSslPeerVerify(self, mode: QtNetwork.QSslSocket.PeerVerifyMode, modedepth: int) -> None: ...
    def resetSslIgnoreErrors(self) -> None: ...
    def setSslIgnoreErrors(self, errors: collections.abc.Iterable[QtNetwork.QSslError]) -> None: ...
    def setSslIgnoreErrorEnums(self, errorenums: typing.Any) -> None: ...
    def appendSslIgnoreErrors(self, errors: collections.abc.Iterable[QtNetwork.QSslError]) -> None: ...
    def resetSslProtocol(self) -> None: ...
    def setSslProtocol(self, protocol: QtNetwork.QSsl.SslProtocol) -> None: ...
    def resetSslCertConfig(self) -> None: ...
    def saveSslCertConfig(self) -> None: ...
    def loadSslCustomConfig(self, config: _core.QgsAuthConfigSslServer = ...) -> None: ...
    def setSslCertificate(self, cert: QtNetwork.QSslCertificate, hostport: typing.Optional[str] = ...) -> None: ...
    def enableSslCustomOptions(self, enable: bool) -> None: ...
    def sslPeerVerifyDepth(self) -> int: ...
    def sslPeerVerifyMode(self) -> QtNetwork.QSslSocket.PeerVerifyMode: ...
    def sslIgnoreErrorEnums(self) -> typing.Any: ...
    def sslProtocol(self) -> QtNetwork.QSsl.SslProtocol: ...
    def sslHost(self) -> str: ...
    def sslCertificate(self) -> QtNetwork.QSslCertificate: ...
    def sslCustomConfig(self) -> _core.QgsAuthConfigSslServer: ...
    def sslConfigGroupBox(self) -> typing.Optional[QtWidgets.QGroupBox]: ...
    def certificateGroupBox(self) -> typing.Optional[QtWidgets.QGroupBox]: ...


class QgsAuthSslConfigDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., cert: QtNetwork.QSslCertificate = ..., hostport: typing.Optional[str] = ...) -> None: ...

    def accept(self) -> None: ...
    def sslCustomConfigWidget(self) -> typing.Optional[QgsAuthSslConfigWidget]: ...


class QgsAuthSslErrorsDialog(QtWidgets.QDialog):

    def __init__(self, reply: typing.Optional[QtNetwork.QNetworkReply], sslErrors: collections.abc.Iterable[QtNetwork.QSslError], parent: typing.Optional[QtWidgets.QWidget] = ..., digest: typing.Optional[str] = ..., hostport: typing.Optional[str] = ...) -> None: ...


class QgsAuthSslImportDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def accept(self) -> None: ...


class QgsAuthTrustedCAsDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., trustedCAs: collections.abc.Iterable[QtNetwork.QSslCertificate] = ...) -> None: ...

    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...


class QgsCalloutPanelWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    calloutChanged: typing.ClassVar[QtCore.pyqtSignal]
    def callout(self) -> typing.Optional[_core.QgsCallout]: ...
    def setCallout(self, callout: typing.Optional[_core.QgsCallout]) -> None: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def geometryType(self) -> _core.Qgis.GeometryType: ...
    def setGeometryType(self, type: _core.Qgis.GeometryType) -> None: ...


class QgsCalloutWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], vl: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsCallout.Property) -> None: ...
    def setGeometryType(self, type: _core.Qgis.GeometryType) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    @deprecated("""""")
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def callout(self) -> typing.Optional[_core.QgsCallout]: ...
    def setCallout(self, callout: typing.Optional[_core.QgsCallout]) -> None: ...


class QgsCodeInterpreter(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsCodeInterpreter') -> None: ...

    def execCommandImpl(self, command: typing.Optional[str]) -> int: ...
    def promptForState(self, state: int) -> str: ...
    def currentState(self) -> int: ...
    def exec(self, command: typing.Optional[str]) -> int: ...


class QgsCodeEditor(Qsci.QsciScintilla):

    class Flag(enum.IntFlag):
        CodeFolding = ... # type: QgsCodeEditor.Flag
        ImmediatelyUpdateHistory = ... # type: QgsCodeEditor.Flag

    class MarginRole(enum.IntEnum):
        LineNumbers = ... # type: QgsCodeEditor.MarginRole
        ErrorIndicators = ... # type: QgsCodeEditor.MarginRole
        FoldingControls = ... # type: QgsCodeEditor.MarginRole

    class Mode(enum.Enum):
        ScriptEditor = ... # type: QgsCodeEditor.Mode
        OutputDisplay = ... # type: QgsCodeEditor.Mode
        CommandInput = ... # type: QgsCodeEditor.Mode

    SEARCH_RESULT_INDICATOR = ... # type: int

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., title: typing.Optional[str] = ..., folding: bool = ..., margin: bool = ..., flags: 'QgsCodeEditor.Flag' = ..., mode: 'QgsCodeEditor.Mode' = ...) -> None: ...

    def toggleLineComments(self, commentPrefix: typing.Optional[str]) -> None: ...
    def showMessage(self, title: typing.Optional[str], message: typing.Optional[str], level: _core.Qgis.MessageLevel) -> None: ...
    def reformatCodeString(self, string: typing.Optional[str]) -> str: ...
    def populateContextMenu(self, menu: typing.Optional[QtWidgets.QMenu]) -> None: ...
    def updatePrompt(self) -> None: ...
    def updateSoftHistory(self) -> None: ...
    def runPostLexerConfigurationTasks(self) -> None: ...
    def lexerFont(self) -> QtGui.QFont: ...
    def lexerColor(self, role: 'QgsCodeEditorColorScheme.ColorRole') -> QtGui.QColor: ...
    def initializeLexer(self) -> None: ...
    def eventFilter(self, watched: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def contextMenuEvent(self, event: typing.Optional[QtGui.QContextMenuEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    @staticmethod
    def isFixedPitch(font: QtGui.QFont) -> bool: ...
    editingTimeout: typing.ClassVar[QtCore.pyqtSignal]
    helpRequested: typing.ClassVar[QtCore.pyqtSignal]
    persistentHistoryCleared: typing.ClassVar[QtCore.pyqtSignal]
    sessionHistoryCleared: typing.ClassVar[QtCore.pyqtSignal]
    def setEditingTimeoutInterval(self, timeout: int) -> None: ...
    def setText(self, text: typing.Optional[str]) -> None: ...
    def adjustScrollWidth(self) -> None: ...
    def toggleComment(self) -> None: ...
    def checkSyntax(self) -> bool: ...
    def reformatCode(self) -> None: ...
    def writeHistoryFile(self) -> bool: ...
    def clearPersistentHistory(self) -> None: ...
    def clearSessionHistory(self) -> None: ...
    def removeHistoryCommand(self, index: int) -> None: ...
    def showHistory(self) -> None: ...
    def showNextCommand(self) -> None: ...
    def showPreviousCommand(self) -> None: ...
    def moveCursorToEnd(self) -> None: ...
    def moveCursorToStart(self) -> None: ...
    def runCommand(self, command: typing.Optional[str], skipHistory: bool = ...) -> None: ...
    def editingTimeoutInterval(self) -> int: ...
    def wrapPosition(self, line: int = ...) -> int: ...
    def callTip(self) -> None: ...
    def setLinearSelection(self, start: int, end: int) -> None: ...
    def selectionEnd(self) -> int: ...
    def selectionStart(self) -> int: ...
    def setLinearPosition(self, position: int) -> None: ...
    def linearPosition(self) -> int: ...
    def setInterpreter(self, newInterpreter: typing.Optional[QgsCodeInterpreter]) -> None: ...
    def interpreter(self) -> typing.Optional[QgsCodeInterpreter]: ...
    def history(self) -> list[str]: ...
    def setHistoryFilePath(self, path: typing.Optional[str]) -> None: ...
    def isCursorOnLastLine(self) -> bool: ...
    def mode(self) -> 'QgsCodeEditor.Mode': ...
    def clearWarnings(self) -> None: ...
    def addWarning(self, lineNumber: int, warning: typing.Optional[str]) -> None: ...
    @staticmethod
    def getMonospaceFont() -> QtGui.QFont: ...
    @staticmethod
    def setColor(role: 'QgsCodeEditorColorScheme.ColorRole', color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    @staticmethod
    def color(role: 'QgsCodeEditorColorScheme.ColorRole') -> QtGui.QColor: ...
    @staticmethod
    def defaultColor(role: 'QgsCodeEditorColorScheme.ColorRole', theme: typing.Optional[str] = ...) -> QtGui.QColor: ...
    def insertText(self, text: typing.Optional[str]) -> None: ...
    def foldingVisible(self) -> bool: ...
    def setFoldingVisible(self, folding: bool) -> None: ...
    def lineNumbersVisible(self) -> bool: ...
    def setLineNumbersVisible(self, visible: bool) -> None: ...
    @deprecated("""""")
    def marginVisible(self) -> bool: ...
    @deprecated("""""")
    def setMarginVisible(self, margin: bool) -> None: ...
    @staticmethod
    def languageToString(language: _core.Qgis.ScriptLanguage) -> str: ...
    def languageCapabilities(self) -> _core.Qgis.ScriptLanguageCapability: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...


class QgsCodeEditorColorScheme(PyQt6.sip.wrapper):

    class ColorRole(enum.Enum):
        Default = ... # type: QgsCodeEditorColorScheme.ColorRole
        Keyword = ... # type: QgsCodeEditorColorScheme.ColorRole
        Class = ... # type: QgsCodeEditorColorScheme.ColorRole
        Method = ... # type: QgsCodeEditorColorScheme.ColorRole
        Decoration = ... # type: QgsCodeEditorColorScheme.ColorRole
        Number = ... # type: QgsCodeEditorColorScheme.ColorRole
        Comment = ... # type: QgsCodeEditorColorScheme.ColorRole
        CommentLine = ... # type: QgsCodeEditorColorScheme.ColorRole
        CommentBlock = ... # type: QgsCodeEditorColorScheme.ColorRole
        Background = ... # type: QgsCodeEditorColorScheme.ColorRole
        Cursor = ... # type: QgsCodeEditorColorScheme.ColorRole
        CaretLine = ... # type: QgsCodeEditorColorScheme.ColorRole
        SingleQuote = ... # type: QgsCodeEditorColorScheme.ColorRole
        DoubleQuote = ... # type: QgsCodeEditorColorScheme.ColorRole
        TripleSingleQuote = ... # type: QgsCodeEditorColorScheme.ColorRole
        TripleDoubleQuote = ... # type: QgsCodeEditorColorScheme.ColorRole
        Operator = ... # type: QgsCodeEditorColorScheme.ColorRole
        QuotedOperator = ... # type: QgsCodeEditorColorScheme.ColorRole
        Identifier = ... # type: QgsCodeEditorColorScheme.ColorRole
        QuotedIdentifier = ... # type: QgsCodeEditorColorScheme.ColorRole
        Tag = ... # type: QgsCodeEditorColorScheme.ColorRole
        UnknownTag = ... # type: QgsCodeEditorColorScheme.ColorRole
        MarginBackground = ... # type: QgsCodeEditorColorScheme.ColorRole
        MarginForeground = ... # type: QgsCodeEditorColorScheme.ColorRole
        SelectionBackground = ... # type: QgsCodeEditorColorScheme.ColorRole
        SelectionForeground = ... # type: QgsCodeEditorColorScheme.ColorRole
        MatchedBraceBackground = ... # type: QgsCodeEditorColorScheme.ColorRole
        MatchedBraceForeground = ... # type: QgsCodeEditorColorScheme.ColorRole
        Edge = ... # type: QgsCodeEditorColorScheme.ColorRole
        Fold = ... # type: QgsCodeEditorColorScheme.ColorRole
        Error = ... # type: QgsCodeEditorColorScheme.ColorRole
        ErrorBackground = ... # type: QgsCodeEditorColorScheme.ColorRole
        FoldIconForeground = ... # type: QgsCodeEditorColorScheme.ColorRole
        FoldIconHalo = ... # type: QgsCodeEditorColorScheme.ColorRole
        IndentationGuide = ... # type: QgsCodeEditorColorScheme.ColorRole
        SearchMatchBackground = ... # type: QgsCodeEditorColorScheme.ColorRole

    @typing.overload
    def __init__(self, id: typing.Optional[str] = ..., name: typing.Optional[str] = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsCodeEditorColorScheme') -> None: ...

    def setColor(self, role: 'QgsCodeEditorColorScheme.ColorRole', color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def color(self, role: 'QgsCodeEditorColorScheme.ColorRole') -> QtGui.QColor: ...
    def name(self) -> str: ...
    def id(self) -> str: ...


class QgsCodeEditorColorSchemeRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsCodeEditorColorSchemeRegistry') -> None: ...

    def scheme(self, id: typing.Optional[str]) -> QgsCodeEditorColorScheme: ...
    def schemes(self) -> list[str]: ...
    def removeColorScheme(self, id: typing.Optional[str]) -> bool: ...
    def addColorScheme(self, scheme: QgsCodeEditorColorScheme) -> bool: ...


class QgsCodeEditorCSS(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorDockWidget(QtWidgets.QWidget):

    def __init__(self, dockId: typing.Optional[str] = ..., usePersistentWidget: bool = ...) -> None: ...

    visibilityChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setUserVisible(self, visible: bool) -> None: ...
    def isUserVisible(self) -> bool: ...
    def setDockObjectName(self, name: typing.Optional[str]) -> None: ...
    def dockToggleButton(self) -> typing.Optional[QtWidgets.QToolButton]: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...


class QgsCodeEditorExpression(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def toggleComment(self) -> None: ...
    def setFields(self, fields: _core.QgsFields) -> None: ...
    def setExpressionContext(self, context: _core.QgsExpressionContext) -> None: ...
    def languageCapabilities(self) -> _core.Qgis.ScriptLanguageCapability: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorHTML(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def reformatCodeString(self, string: typing.Optional[str]) -> str: ...
    def initializeLexer(self) -> None: ...
    def toggleComment(self) -> None: ...
    def languageCapabilities(self) -> _core.Qgis.ScriptLanguageCapability: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorJavascript(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorJson(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorPython(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., filenames: collections.abc.Iterable[typing.Optional[str]] = ..., mode: QgsCodeEditor.Mode = ..., flags: QgsCodeEditor.Flag = ...) -> None: ...

    def autoComplete(self) -> None: ...
    def populateContextMenu(self, menu: typing.Optional[QtWidgets.QMenu]) -> None: ...
    def reformatCodeString(self, string: typing.Optional[str]) -> str: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def initializeLexer(self) -> None: ...
    def toggleComment(self) -> None: ...
    def showApiDocumentation(self, item: typing.Optional[str]) -> None: ...
    def searchSelectedTextInPyQGISDocs(self) -> None: ...
    def checkSyntax(self) -> bool: ...
    def updateCapabilities(self) -> None: ...
    def characterAfterCursor(self) -> str: ...
    def characterBeforeCursor(self) -> str: ...
    def isCursorInsideStringLiteralOrComment(self) -> bool: ...
    def loadScript(self, script: typing.Optional[str]) -> bool: ...
    def loadAPIs(self, filenames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def languageCapabilities(self) -> _core.Qgis.ScriptLanguageCapability: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorR(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., mode: QgsCodeEditor.Mode = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorShell(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., mode: QgsCodeEditor.Mode = ..., language: _core.Qgis.ScriptLanguage = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorSQL(QgsCodeEditor):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def initializeLexer(self) -> None: ...
    def extraKeywords(self) -> list[str]: ...
    def setExtraKeywords(self, extraKeywords: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def fieldNames(self) -> list[str]: ...
    def setFieldNames(self, fieldNames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setFields(self, fields: _core.QgsFields) -> None: ...
    def language(self) -> _core.Qgis.ScriptLanguage: ...


class QgsCodeEditorWidget(QgsPanelWidget):

    def __init__(self, editor: typing.Optional[QgsCodeEditor], messageBar: typing.Optional[QgsMessageBar] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    loadedExternalChanges: typing.ClassVar[QtCore.pyqtSignal]
    filePathChanged: typing.ClassVar[QtCore.pyqtSignal]
    searchBarToggled: typing.ClassVar[QtCore.pyqtSignal]
    def shareOnGist(self, isPublic: bool) -> bool: ...
    def openInExternalEditor(self, line: int = ..., column: int = ...) -> bool: ...
    def setFilePath(self, path: typing.Optional[str]) -> None: ...
    def loadFile(self, path: typing.Optional[str]) -> bool: ...
    def triggerFind(self) -> None: ...
    def setReplaceBarVisible(self, visible: bool) -> None: ...
    def setSearchBarVisible(self, visible: bool) -> None: ...
    def hideSearchBar(self) -> None: ...
    def showSearchBar(self) -> None: ...
    def save(self, path: typing.Optional[str] = ...) -> bool: ...
    def filePath(self) -> str: ...
    def clearWarnings(self) -> None: ...
    def addWarning(self, lineNumber: int, warning: typing.Optional[str]) -> None: ...
    def scrollbarHighlightController(self) -> typing.Optional[QgsScrollBarHighlightController]: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def isSearchBarVisible(self) -> bool: ...
    def editor(self) -> typing.Optional[QgsCodeEditor]: ...
    def eventFilter(self, obj: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...


class QgsDevToolWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsDevToolWidgetFactory(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, title: typing.Optional[str] = ..., icon: QtGui.QIcon = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsDevToolWidgetFactory') -> None: ...

    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QgsDevToolWidget]: ...
    def setTitle(self, title: typing.Optional[str]) -> None: ...
    def title(self) -> str: ...
    def setIcon(self, icon: QtGui.QIcon) -> None: ...
    def icon(self) -> QtGui.QIcon: ...


class QgsEditorConfigWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def updateDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton]) -> None: ...
    def updateDataDefinedButtons(self) -> None: ...
    def initializeDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: 'QgsWidgetWrapper.Property') -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def field(self) -> int: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def config(self) -> dict[str, typing.Any]: ...


class QgsEditorWidgetAutoConfPlugin(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsEditorWidgetAutoConfPlugin') -> None: ...

    def editorWidgetSetup(self, vl: typing.Optional[_core.QgsVectorLayer], fieldName: typing.Optional[str]) -> typing.Tuple[_core.QgsEditorWidgetSetup, int]: ...


class QgsEditorWidgetFactory(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, name: typing.Optional[str]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsEditorWidgetFactory') -> None: ...

    def fieldScore(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int) -> int: ...
    def supportsField(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int) -> bool: ...
    def configWidget(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QgsEditorConfigWidget]: ...
    def isReadOnly(self) -> bool: ...
    def name(self) -> str: ...
    def createSearchWidget(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsSearchWidgetWrapper']: ...
    def create(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsEditorWidgetWrapper']: ...


class QgsEditorWidgetRegistry(QtCore.QObject):

    def __init__(self) -> None: ...

    def registerAutoConfPlugin(self, plugin: typing.Optional[QgsEditorWidgetAutoConfPlugin]) -> None: ...
    def registerWidget(self, widgetId: typing.Optional[str], widgetFactory: typing.Optional[QgsEditorWidgetFactory]) -> bool: ...
    def factory(self, widgetId: typing.Optional[str]) -> typing.Optional[QgsEditorWidgetFactory]: ...
    def factories(self) -> typing.Any: ...
    def isReadOnly(self, widgetId: typing.Optional[str]) -> bool: ...
    def name(self, widgetId: typing.Optional[str]) -> str: ...
    def createConfigWidget(self, widgetId: typing.Optional[str], vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QgsEditorConfigWidget]: ...
    def createSearchWidget(self, widgetId: typing.Optional[str], vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, config: dict[typing.Optional[str], typing.Any], parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsSearchWidgetWrapper']: ...
    @typing.overload
    def create(self, widgetId: typing.Optional[str], vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, config: dict[typing.Optional[str], typing.Any], editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsEditorWidgetWrapper']: ...
    @typing.overload
    def create(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsEditorWidgetWrapper']: ...
    def findBest(self, vl: typing.Optional[_core.QgsVectorLayer], fieldName: typing.Optional[str]) -> _core.QgsEditorWidgetSetup: ...
    def initEditors(self, mapCanvas: typing.Optional[QgsMapCanvas] = ..., messageBar: typing.Optional[QgsMessageBar] = ...) -> None: ...


class QgsWidgetWrapper(QtCore.QObject):

    class Property(enum.IntEnum):
        RootPath = ... # type: QgsWidgetWrapper.Property
        DocumentViewerContent = ... # type: QgsWidgetWrapper.Property
        StorageUrl = ... # type: QgsWidgetWrapper.Property

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setEnabled(self, enabled: bool) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    contextChanged: typing.ClassVar[QtCore.pyqtSignal]
    def notifyAboutToSave(self) -> None: ...
    def setDataDefinedProperties(self, collection: _core.QgsPropertyCollection) -> None: ...
    def dataDefinedProperties(self) -> _core.QgsPropertyCollection: ...
    def valid(self) -> bool: ...
    @staticmethod
    def fromWidget(widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsWidgetWrapper']: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> QgsAttributeEditorContext: ...
    @typing.overload
    def config(self, key: typing.Optional[str], defaultVal: typing.Any = ...) -> typing.Any: ...
    @typing.overload
    def config(self) -> dict[str, typing.Any]: ...
    def setContext(self, context: QgsAttributeEditorContext) -> None: ...
    def setConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    def widget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    @staticmethod
    def propertyDefinitions() -> dict[int, _core.QgsPropertyDefinition]: ...


class QgsEditorWidgetWrapper(QgsWidgetWrapper):

    class ConstraintResult(enum.IntEnum):
        ConstraintResultPass = ... # type: QgsEditorWidgetWrapper.ConstraintResult
        ConstraintResultFailHard = ... # type: QgsEditorWidgetWrapper.ConstraintResult
        ConstraintResultFailSoft = ... # type: QgsEditorWidgetWrapper.ConstraintResult

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, editor: typing.Optional[QtWidgets.QWidget] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setFormFeatureAttribute(self, attributeName: typing.Optional[str], attributeValue: typing.Any) -> bool: ...
    def setFormFeature(self, feature: _core.QgsFeature) -> None: ...
    def formFeature(self) -> _core.QgsFeature: ...
    def updateConstraintWidgetStatus(self) -> None: ...
    def parentFormValueChanged(self, attribute: typing.Optional[str], value: typing.Any) -> None: ...
    def emitValueChanged(self) -> None: ...
    def setValues(self, value: typing.Any, additionalValues: collections.abc.Iterable[typing.Any]) -> None: ...
    @deprecated("""""")
    def setValue(self, value: typing.Any) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    constraintResultVisibleChanged: typing.ClassVar[QtCore.pyqtSignal]
    constraintStatusChanged: typing.ClassVar[QtCore.pyqtSignal]
    valuesChanged: typing.ClassVar[QtCore.pyqtSignal]
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setConstraintResultVisible(self, constraintResultVisible: bool) -> None: ...
    def constraintResultVisible(self) -> bool: ...
    def constraintResult(self) -> 'QgsEditorWidgetWrapper.ConstraintResult': ...
    def setHint(self, hintText: typing.Optional[str]) -> None: ...
    def constraintFailureReason(self) -> str: ...
    def isBlockingCommit(self) -> bool: ...
    def isValidConstraint(self) -> bool: ...
    @typing.overload
    def updateConstraint(self, featureContext: _core.QgsFeature, constraintOrigin: _core.QgsFieldConstraints.ConstraintOrigin = ...) -> None: ...
    @typing.overload
    def updateConstraint(self, layer: typing.Optional[_core.QgsVectorLayer], index: int, feature: _core.QgsFeature, constraintOrigin: _core.QgsFieldConstraints.ConstraintOrigin = ...) -> None: ...
    @typing.overload
    def updateConstraint(self, constraintResult: 'QgsEditorWidgetWrapper.ConstraintResult', constraintFailureReason: typing.Optional[str]) -> None: ...
    def showIndeterminateState(self) -> None: ...
    def setEnabled(self, enabled: bool) -> None: ...
    @staticmethod
    def isInTable(parent: typing.Optional[QtWidgets.QWidget]) -> bool: ...
    @staticmethod
    def fromWidget(widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsEditorWidgetWrapper']: ...
    def defaultValue(self) -> typing.Any: ...
    def field(self) -> _core.QgsField: ...
    def fieldIdx(self) -> int: ...
    def additionalFieldValues(self) -> list[typing.Any]: ...
    def additionalFields(self) -> list[str]: ...
    def value(self) -> typing.Any: ...


class QgsSearchWidgetWrapper(QgsWidgetWrapper):

    class FilterFlag(enum.IntEnum):
        EqualTo = ... # type: QgsSearchWidgetWrapper.FilterFlag
        NotEqualTo = ... # type: QgsSearchWidgetWrapper.FilterFlag
        GreaterThan = ... # type: QgsSearchWidgetWrapper.FilterFlag
        LessThan = ... # type: QgsSearchWidgetWrapper.FilterFlag
        GreaterThanOrEqualTo = ... # type: QgsSearchWidgetWrapper.FilterFlag
        LessThanOrEqualTo = ... # type: QgsSearchWidgetWrapper.FilterFlag
        Between = ... # type: QgsSearchWidgetWrapper.FilterFlag
        CaseInsensitive = ... # type: QgsSearchWidgetWrapper.FilterFlag
        Contains = ... # type: QgsSearchWidgetWrapper.FilterFlag
        DoesNotContain = ... # type: QgsSearchWidgetWrapper.FilterFlag
        IsNull = ... # type: QgsSearchWidgetWrapper.FilterFlag
        IsNotBetween = ... # type: QgsSearchWidgetWrapper.FilterFlag
        IsNotNull = ... # type: QgsSearchWidgetWrapper.FilterFlag
        StartsWith = ... # type: QgsSearchWidgetWrapper.FilterFlag
        EndsWith = ... # type: QgsSearchWidgetWrapper.FilterFlag

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def clearExpression(self) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def setExpression(self, expression: typing.Optional[str]) -> None: ...
    valueCleared: typing.ClassVar[QtCore.pyqtSignal]
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    expressionChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def fieldIndex(self) -> int: ...
    def setAggregate(self, aggregate: typing.Optional[str]) -> None: ...
    def aggregate(self) -> str: ...
    def createFieldIdentifier(self) -> str: ...
    def createExpression(self, flags: 'QgsSearchWidgetWrapper.FilterFlag') -> str: ...
    def applyDirectly(self) -> bool: ...
    def expression(self) -> str: ...
    def defaultFlags(self) -> 'QgsSearchWidgetWrapper.FilterFlag': ...
    def supportedFlags(self) -> 'QgsSearchWidgetWrapper.FilterFlag': ...
    @staticmethod
    def toString(flag: 'QgsSearchWidgetWrapper.FilterFlag') -> str: ...
    @staticmethod
    def nonExclusiveFilterFlags() -> typing.Any: ...
    @staticmethod
    def exclusiveFilterFlags() -> typing.Any: ...


class QgsActionWidgetWrapper(QgsWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def setEnabled(self, enabled: bool) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def valid(self) -> bool: ...
    def setAction(self, action: _core.QgsAction) -> None: ...


class QgsCheckboxSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setExpression(self, expression: typing.Optional[str]) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...
    def applyDirectly(self) -> bool: ...
    def value(self) -> typing.Any: ...


class QgsDateTimeEdit(QtWidgets.QDateTimeEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def isNull(self) -> bool: ...
    def emitValueChanged(self, value: typing.Any) -> None: ...
    def displayNull(self, updateCalendar: bool = ...) -> None: ...
    def showEvent(self, event: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def focusInEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def event(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setNullRepresentation(self, null: typing.Optional[str]) -> None: ...
    def nullRepresentation(self) -> str: ...
    def setEmpty(self) -> None: ...
    def clear(self) -> None: ...
    def date(self) -> QtCore.QDate: ...
    def time(self) -> QtCore.QTime: ...
    def dateTime(self) -> QtCore.QDateTime: ...
    def setDateTime(self, dateTime: typing.Union[QtCore.QDateTime, datetime.datetime]) -> None: ...
    def allowNull(self) -> bool: ...
    def setAllowNull(self, allowNull: bool) -> None: ...


class QgsTimeEdit(QgsDateTimeEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def emitValueChanged(self, value: typing.Any) -> None: ...
    timeValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setTime(self, time: typing.Union[QtCore.QTime, datetime.time]) -> None: ...


class QgsDateEdit(QgsDateTimeEdit):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def emitValueChanged(self, value: typing.Any) -> None: ...
    dateValueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDate(self, date: typing.Union[QtCore.QDate, datetime.date]) -> None: ...


class QgsDateTimeSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setExpression(self, exp: typing.Optional[str]) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...
    def applyDirectly(self) -> bool: ...
    def value(self) -> typing.Any: ...


class QgsDefaultSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def caseSensitiveCheckBox(self) -> typing.Optional[QtWidgets.QCheckBox]: ...
    def lineEdit(self) -> typing.Optional[QgsFilterLineEdit]: ...
    def valid(self) -> bool: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setExpression(self, exp: typing.Optional[str]) -> None: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def applyDirectly(self) -> bool: ...
    def expression(self) -> str: ...


class QgsDoubleSpinBox(QtWidgets.QDoubleSpinBox):

    class ClearValueMode(enum.IntEnum):
        MinimumValue = ... # type: QgsDoubleSpinBox.ClearValueMode
        MaximumValue = ... # type: QgsDoubleSpinBox.ClearValueMode
        CustomValue = ... # type: QgsDoubleSpinBox.ClearValueMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def timerEvent(self, event: typing.Optional[QtCore.QTimerEvent]) -> None: ...
    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    editingTimeout: typing.ClassVar[QtCore.pyqtSignal]
    textEdited: typing.ClassVar[QtCore.pyqtSignal]
    returnPressed: typing.ClassVar[QtCore.pyqtSignal]
    def setEditingTimeoutInterval(self, timeout: int) -> None: ...
    def editingTimeoutInterval(self) -> int: ...
    def stepBy(self, steps: int) -> None: ...
    def paintEvent(self, e: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def validate(self, input: typing.Optional[str]) -> typing.Tuple[QtGui.QValidator.State, int]: ...
    def valueFromText(self, text: typing.Optional[str]) -> float: ...
    def setSpecialValueText(self, txt: typing.Optional[str]) -> None: ...
    def setLineEditAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
    def isCleared(self) -> bool: ...
    def clearValue(self) -> float: ...
    def setClearValueMode(self, mode: 'QgsDoubleSpinBox.ClearValueMode', clearValueText: typing.Optional[str] = ...) -> None: ...
    def setClearValue(self, customValue: float, clearValueText: typing.Optional[str] = ...) -> None: ...
    def clear(self) -> None: ...
    def expressionsEnabled(self) -> bool: ...
    def setExpressionsEnabled(self, enabled: bool) -> None: ...
    def showClearButton(self) -> bool: ...
    def setShowClearButton(self, showClearButton: bool) -> None: ...


class QgsHtmlWidgetWrapper(QgsWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def needsGeometry(self) -> bool: ...
    def setHtmlCode(self, htmlCode: typing.Optional[str]) -> None: ...
    def reinitWidget(self) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def valid(self) -> bool: ...


class QgsJsonEditWidget(QtWidgets.QWidget):

    class FormatJson(enum.IntEnum):
        Indented = ... # type: QgsJsonEditWidget.FormatJson
        Compact = ... # type: QgsJsonEditWidget.FormatJson
        Disabled = ... # type: QgsJsonEditWidget.FormatJson

    class View(enum.IntEnum):
        Text = ... # type: QgsJsonEditWidget.View
        Tree = ... # type: QgsJsonEditWidget.View

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setControlsVisible(self, visible: bool) -> None: ...
    def setFormatJsonMode(self, formatJson: 'QgsJsonEditWidget.FormatJson') -> None: ...
    def setView(self, view: 'QgsJsonEditWidget.View') -> None: ...
    def jsonText(self) -> str: ...
    def setJsonText(self, jsonText: typing.Optional[str]) -> None: ...
    def jsonEditor(self) -> typing.Optional[QgsCodeEditorJson]: ...


class QgsMultiEditToolButton(QtWidgets.QToolButton):

    class State(enum.IntEnum):
        Default = ... # type: QgsMultiEditToolButton.State
        MixedValues = ... # type: QgsMultiEditToolButton.State
        Changed = ... # type: QgsMultiEditToolButton.State

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    resetFieldValueTriggered: typing.ClassVar[QtCore.pyqtSignal]
    setFieldValueTriggered: typing.ClassVar[QtCore.pyqtSignal]
    def changesCommitted(self) -> None: ...
    def resetChanges(self) -> None: ...
    def setIsChanged(self, changed: bool) -> None: ...
    def setIsMixed(self, mixed: bool) -> None: ...
    def setField(self, field: _core.QgsField) -> None: ...
    def state(self) -> 'QgsMultiEditToolButton.State': ...


class QgsQmlWidgetWrapper(QgsWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def setQmlCode(self, qmlCode: typing.Optional[str]) -> None: ...
    def reinitWidget(self) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def valid(self) -> bool: ...


class QgsRelationAggregateSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], wrapper: typing.Optional['QgsRelationWidgetWrapper'], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def eventFilter(self, watched: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def setExpression(self, value: typing.Optional[str]) -> None: ...
    def applyDirectly(self) -> bool: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...


class QgsRelationReferenceSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setExpression(self, exp: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def onValueChanged(self, value: typing.Any) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...
    def applyDirectly(self) -> bool: ...
    def value(self) -> typing.Any: ...


class QgsRelationReferenceWidget(QtWidgets.QWidget):

    class CanvasExtent(enum.IntEnum):
        Fixed = ... # type: QgsRelationReferenceWidget.CanvasExtent
        Pan = ... # type: QgsRelationReferenceWidget.CanvasExtent
        Scale = ... # type: QgsRelationReferenceWidget.CanvasExtent

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    foreignKeysChanged: typing.ClassVar[QtCore.pyqtSignal]
    foreignKeyChanged: typing.ClassVar[QtCore.pyqtSignal]
    def init(self) -> None: ...
    def showEvent(self, e: typing.Optional[QtGui.QShowEvent]) -> None: ...
    def saveReferencedAttributeForm(self) -> bool: ...
    def deleteForeignKeys(self) -> None: ...
    def mapIdentification(self) -> None: ...
    def openForm(self) -> None: ...
    def setFetchLimit(self, fetchLimit: int) -> None: ...
    def fetchLimit(self) -> int: ...
    def setReferencedLayerName(self, referencedLayerName: typing.Optional[str]) -> None: ...
    def referencedLayerName(self) -> str: ...
    def setReferencedLayerId(self, referencedLayerId: typing.Optional[str]) -> None: ...
    def referencedLayerId(self) -> str: ...
    def setReferencedLayerProviderKey(self, referencedLayerProviderKey: typing.Optional[str]) -> None: ...
    def referencedLayerProviderKey(self) -> str: ...
    def setReferencedLayerDataSource(self, referencedLayerDataSource: typing.Optional[str]) -> None: ...
    def referencedLayerDataSource(self) -> str: ...
    def setParentFormFeature(self, parentFormFeature: _core.QgsFeature) -> None: ...
    def setFormFeature(self, formFeature: _core.QgsFeature) -> None: ...
    def relation(self) -> _core.QgsRelation: ...
    def setAllowAddFeatures(self, allowAddFeatures: bool) -> None: ...
    def allowAddFeatures(self) -> bool: ...
    def showIndeterminateState(self) -> None: ...
    def referencedFeature(self) -> _core.QgsFeature: ...
    def setFilterExpression(self, filterExpression: typing.Optional[str]) -> None: ...
    def filterExpression(self) -> str: ...
    def setChainFilters(self, chainFilters: bool) -> None: ...
    def chainFilters(self) -> bool: ...
    def setOpenFormButtonVisible(self, openFormButtonVisible: bool) -> None: ...
    def openFormButtonVisible(self) -> bool: ...
    def setFilterFields(self, filterFields: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setAllowMapIdentification(self, allowMapIdentification: bool) -> None: ...
    def allowMapIdentification(self) -> bool: ...
    def setReadOnlySelector(self, readOnly: bool) -> None: ...
    def readOnlySelector(self) -> bool: ...
    def setEmbedForm(self, display: bool) -> None: ...
    def embedForm(self) -> bool: ...
    def setEditorContext(self, context: QgsAttributeEditorContext, canvas: typing.Optional[QgsMapCanvas], messageBar: typing.Optional[QgsMessageBar]) -> None: ...
    def foreignKeys(self) -> list[typing.Any]: ...
    @deprecated("""""")
    def foreignKey(self) -> typing.Any: ...
    def setForeignKeys(self, values: collections.abc.Iterable[typing.Any]) -> None: ...
    @deprecated("""""")
    def setForeignKey(self, value: typing.Any) -> None: ...
    def setRelationEditable(self, editable: bool) -> None: ...
    def setRelation(self, relation: _core.QgsRelation, allowNullValue: bool) -> None: ...


class QgsRelationReferenceWidgetWrapper(QgsEditorWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, editor: typing.Optional[QtWidgets.QWidget], canvas: typing.Optional[QgsMapCanvas], messageBar: typing.Optional[QgsMessageBar], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def widgetValueChanged(self, attribute: typing.Optional[str], newValue: typing.Any, attributeChanged: bool) -> None: ...
    def updateConstraintWidgetStatus(self) -> None: ...
    def parentFormValueChanged(self, attribute: typing.Optional[str], value: typing.Any) -> None: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def additionalFields(self) -> list[str]: ...
    def additionalFieldValues(self) -> list[typing.Any]: ...
    def showIndeterminateState(self) -> None: ...
    def valid(self) -> bool: ...
    def value(self) -> typing.Any: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...


class QgsRelationWidgetWrapper(QgsWidgetWrapper):

    @typing.overload
    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], relation: _core.QgsRelation, editor: typing.Optional[QtWidgets.QWidget] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, relationEditorName: typing.Optional[str], vl: typing.Optional[_core.QgsVectorLayer], relation: _core.QgsRelation, editor: typing.Optional[QtWidgets.QWidget] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setVisible(self, visible: bool) -> None: ...
    def setMultiEditFeatureIds(self, fids: typing.Any) -> None: ...
    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    relatedFeaturesChanged: typing.ClassVar[QtCore.pyqtSignal]
    def valid(self) -> bool: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def widgetValueChanged(self, attribute: typing.Optional[str], newValue: typing.Any, attributeChanged: bool) -> None: ...
    def relation(self) -> _core.QgsRelation: ...
    @deprecated("""""")
    def setLabel(self, label: typing.Optional[str] = ...) -> None: ...
    @deprecated("""""")
    def label(self) -> str: ...
    def setNmRelationId(self, nmRelationId: typing.Any = ...) -> None: ...
    def nmRelationId(self) -> typing.Any: ...
    def setForceSuppressFormPopup(self, forceSuppressFormPopup: bool) -> None: ...
    def forceSuppressFormPopup(self) -> bool: ...
    def widgetConfig(self) -> dict[str, typing.Any]: ...
    def setWidgetConfig(self, config: dict[typing.Optional[str], typing.Any]) -> None: ...
    @deprecated("""""")
    def visibleButtons(self) -> _core.QgsAttributeEditorRelation.Button: ...
    @deprecated("""""")
    def setVisibleButtons(self, buttons: _core.QgsAttributeEditorRelation.Button) -> None: ...
    @deprecated("""""")
    def showSaveChildEditsButton(self) -> bool: ...
    @deprecated("""""")
    def setShowSaveChildEditsButton(self, showChildEdits: bool) -> None: ...
    @deprecated("""""")
    def setShowUnlinkButton(self, showUnlinkButton: bool) -> None: ...
    @deprecated("""""")
    def showUnlinkButton(self) -> bool: ...
    @deprecated("""""")
    def setShowLinkButton(self, showLinkButton: bool) -> None: ...
    @deprecated("""""")
    def showLinkButton(self) -> bool: ...
    @deprecated("""""")
    def setShowLabel(self, showLabel: bool) -> None: ...
    @deprecated("""""")
    def showLabel(self) -> bool: ...


class QgsSearchWidgetToolButton(QtWidgets.QToolButton):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    activeFlagsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setActive(self) -> None: ...
    def setInactive(self) -> None: ...
    def isActive(self) -> bool: ...
    def activeFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def toggleFlag(self, flag: QgsSearchWidgetWrapper.FilterFlag) -> None: ...
    def setActiveFlags(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> None: ...
    def availableFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def setDefaultFlags(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> None: ...
    def setAvailableFlags(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> None: ...


class QgsSpacerWidgetWrapper(QgsWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setDrawLine(self, drawLine: bool) -> None: ...
    def drawLine(self) -> bool: ...
    def valid(self) -> bool: ...


class QgsSpinBox(QtWidgets.QSpinBox):

    class ClearValueMode(enum.IntEnum):
        MinimumValue = ... # type: QgsSpinBox.ClearValueMode
        MaximumValue = ... # type: QgsSpinBox.ClearValueMode
        CustomValue = ... # type: QgsSpinBox.ClearValueMode

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def focusOutEvent(self, event: typing.Optional[QtGui.QFocusEvent]) -> None: ...
    def timerEvent(self, event: typing.Optional[QtCore.QTimerEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def changeEvent(self, event: typing.Optional[QtCore.QEvent]) -> None: ...
    editingTimeout: typing.ClassVar[QtCore.pyqtSignal]
    textEdited: typing.ClassVar[QtCore.pyqtSignal]
    returnPressed: typing.ClassVar[QtCore.pyqtSignal]
    def setEditingTimeoutInterval(self, timeout: int) -> None: ...
    def editingTimeoutInterval(self) -> int: ...
    def stepBy(self, steps: int) -> None: ...
    def validate(self, input: typing.Optional[str]) -> typing.Tuple[QtGui.QValidator.State, int]: ...
    def valueFromText(self, text: typing.Optional[str]) -> int: ...
    def setSpecialValueText(self, txt: typing.Optional[str]) -> None: ...
    def setLineEditAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
    def clearValue(self) -> int: ...
    def setClearValueMode(self, mode: 'QgsSpinBox.ClearValueMode', clearValueText: typing.Optional[str] = ...) -> None: ...
    def setClearValue(self, customValue: int, clearValueText: typing.Optional[str] = ...) -> None: ...
    def clear(self) -> None: ...
    def expressionsEnabled(self) -> bool: ...
    def setExpressionsEnabled(self, enabled: bool) -> None: ...
    def showClearButton(self) -> bool: ...
    def setShowClearButton(self, showClearButton: bool) -> None: ...


class QgsTextWidgetWrapper(QgsWidgetWrapper):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], editor: typing.Optional[QtWidgets.QWidget], parent: typing.Optional[QtWidgets.QWidget]) -> None: ...

    def setFeature(self, feature: _core.QgsFeature) -> None: ...
    def needsGeometry(self) -> bool: ...
    def setText(self, text: typing.Optional[str]) -> None: ...
    def reinitWidget(self) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def valid(self) -> bool: ...


class QgsValueMapSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setExpression(self, exp: typing.Optional[str]) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...
    def applyDirectly(self) -> bool: ...


class QgsValueRelationSearchWidgetWrapper(QgsSearchWidgetWrapper):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], fieldIdx: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setExpression(self, exp: typing.Optional[str]) -> None: ...
    def onValueChanged(self) -> None: ...
    def initWidget(self, editor: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def createWidget(self, parent: typing.Optional[QtWidgets.QWidget]) -> typing.Optional[QtWidgets.QWidget]: ...
    def setEnabled(self, enabled: bool) -> None: ...
    def clearWidget(self) -> None: ...
    def createExpression(self, flags: QgsSearchWidgetWrapper.FilterFlag) -> str: ...
    def defaultFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def supportedFlags(self) -> QgsSearchWidgetWrapper.FilterFlag: ...
    def value(self) -> typing.Any: ...
    def valid(self) -> bool: ...
    def expression(self) -> str: ...
    def applyDirectly(self) -> bool: ...


class QgsEffectDrawModeComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setDrawMode(self, drawMode: _core.QgsPaintEffect.DrawMode) -> None: ...
    def drawMode(self) -> _core.QgsPaintEffect.DrawMode: ...


class QgsEffectStackPropertiesWidget(QgsPanelWidget):

    def __init__(self, stack: typing.Optional[_core.QgsEffectStack], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def moveEffectByOffset(self, offset: int) -> None: ...
    def updateUi(self) -> None: ...
    @typing.overload
    def loadStack(self) -> None: ...
    @typing.overload
    def loadStack(self, stack: typing.Optional[_core.QgsEffectStack]) -> None: ...
    def changeEffect(self, newEffect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    def updatePreview(self) -> None: ...
    def effectChanged(self) -> None: ...
    def removeEffect(self) -> None: ...
    def addEffect(self) -> None: ...
    def moveEffectUp(self) -> None: ...
    def moveEffectDown(self) -> None: ...
    def setPreviewPicture(self, picture: QtGui.QPicture) -> None: ...
    def stack(self) -> typing.Optional[_core.QgsEffectStack]: ...


class QgsEffectStackPropertiesDialog(QgsDialog):

    def __init__(self, stack: typing.Optional[_core.QgsEffectStack], parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def setPreviewPicture(self, picture: QtGui.QPicture) -> None: ...
    def stack(self) -> typing.Optional[_core.QgsEffectStack]: ...


class QgsEffectStackCompactWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., effect: typing.Optional[_core.QgsPaintEffect] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setPreviewPicture(self, picture: QtGui.QPicture) -> None: ...
    def paintEffect(self) -> typing.Optional[_core.QgsPaintEffect]: ...
    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...


class QgsPaintEffectPropertiesWidget(QtWidgets.QWidget):

    def __init__(self, effect: typing.Optional[_core.QgsPaintEffect], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changeEffect: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def emitSignalChanged(self) -> None: ...
    def effectTypeChanged(self) -> None: ...


class QgsPaintEffectWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...


class QgsDrawSourceWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsBlurWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsShadowEffectWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsGlowWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsTransformWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsColorEffectWidget(QgsPaintEffectWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPaintEffect(self, effect: typing.Optional[_core.QgsPaintEffect]) -> None: ...
    @staticmethod
    def create() -> typing.Optional[QgsPaintEffectWidget]: ...


class QgsElevationControllerSettingsAction(QtWidgets.QWidgetAction):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def sizeSpin(self) -> typing.Optional[QgsDoubleSpinBox]: ...


class QgsElevationControllerWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    invertedChanged: typing.ClassVar[QtCore.pyqtSignal]
    fixedRangeSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
    rangeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setSignificantElevations(self, elevations: collections.abc.Iterable[float]) -> None: ...
    def setInverted(self, inverted: bool) -> None: ...
    def setFixedRangeSize(self, size: float) -> None: ...
    def setRangeLimits(self, limits: _core.QgsDoubleRange) -> None: ...
    def setRange(self, range: _core.QgsDoubleRange) -> None: ...
    def fixedRangeSize(self) -> float: ...
    def menu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def slider(self) -> typing.Optional[QgsRangeSlider]: ...
    def rangeLimits(self) -> _core.QgsDoubleRange: ...
    def range(self) -> _core.QgsDoubleRange: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...


class QgsPlotCanvas(QtWidgets.QGraphicsView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def wheelZoom(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def viewportEvent(self, event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def resizeEvent(self, e: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def wheelEvent(self, e: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def mouseReleaseEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseDoubleClickEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def keyReleaseEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def event(self, e: typing.Optional[QtCore.QEvent]) -> bool: ...
    willBeDeleted: typing.ClassVar[QtCore.pyqtSignal]
    contextMenuAboutToShow: typing.ClassVar[QtCore.pyqtSignal]
    plotAreaChanged: typing.ClassVar[QtCore.pyqtSignal]
    toolChanged: typing.ClassVar[QtCore.pyqtSignal]
    def refresh(self) -> None: ...
    def snapToPlot(self, point: QtCore.QPoint) -> _core.QgsPointXY: ...
    def zoomToRect(self, rect: QtCore.QRectF) -> None: ...
    def scalePlot(self, factor: float) -> None: ...
    def centerPlotOn(self, x: float, y: float) -> None: ...
    def panContentsBy(self, dx: float, dy: float) -> None: ...
    def toCanvasCoordinates(self, point: _core.QgsPoint) -> _core.QgsPointXY: ...
    def toMapCoordinates(self, point: _core.QgsPointXY) -> _core.QgsPoint: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def tool(self) -> typing.Optional['QgsPlotTool']: ...
    def unsetTool(self, tool: typing.Optional['QgsPlotTool']) -> None: ...
    def setTool(self, tool: typing.Optional['QgsPlotTool']) -> None: ...


class QgsElevationProfileCanvas(QgsPlotCanvas):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setSnappingEnabled(self, enabled: bool) -> None: ...
    def clear(self) -> None: ...
    def zoomFull(self) -> None: ...
    canvasPointHovered: typing.ClassVar[QtCore.pyqtSignal]
    activeJobCountChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setSubsectionsSymbol(self, symbol: typing.Optional[_core.QgsLineSymbol]) -> None: ...
    def subsectionsSymbol(self) -> typing.Optional[_core.QgsLineSymbol]: ...
    def setBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setDistanceUnit(self, unit: _core.Qgis.DistanceUnit) -> None: ...
    def distanceUnit(self) -> _core.Qgis.DistanceUnit: ...
    def setLockAxisScales(self, lock: bool) -> None: ...
    def lockAxisScales(self) -> bool: ...
    def plotPointToCanvasPoint(self, point: _core.QgsProfilePoint) -> _core.QgsPointXY: ...
    def canvasPointToPlotPoint(self, point: QtCore.QPointF) -> _core.QgsProfilePoint: ...
    @typing.overload
    def identify(self, point: QtCore.QPointF) -> list[_core.QgsProfileIdentifyResults]: ...
    @typing.overload
    def identify(self, rect: QtCore.QRectF) -> list[_core.QgsProfileIdentifyResults]: ...
    def render(self, context: _core.QgsRenderContext, width: float, height: float, plotSettings: _core.Qgs2DPlot) -> None: ...
    def visibleElevationRange(self) -> _core.QgsDoubleRange: ...
    def visibleDistanceRange(self) -> _core.QgsDoubleRange: ...
    def setVisiblePlotRange(self, minimumDistance: float, maximumDistance: float, minimumElevation: float, maximumElevation: float) -> None: ...
    def tolerance(self) -> float: ...
    def setTolerance(self, tolerance: float) -> None: ...
    def profileCurve(self) -> typing.Optional[_core.QgsCurve]: ...
    def setProfileCurve(self, curve: typing.Optional[_core.QgsCurve]) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def layers(self) -> list[_core.QgsMapLayer]: ...
    def setLayers(self, layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def invalidateCurrentPlotExtent(self) -> None: ...
    def refresh(self) -> None: ...
    def plotArea(self) -> QtCore.QRectF: ...
    def mouseMoveEvent(self, e: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def wheelZoom(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def zoomToRect(self, rect: QtCore.QRectF) -> None: ...
    def snapToPlot(self, point: QtCore.QPoint) -> _core.QgsPointXY: ...
    @typing.overload
    def scalePlot(self, factor: float) -> None: ...
    @typing.overload
    def scalePlot(self, xFactor: float, yFactor: float) -> None: ...
    def centerPlotOn(self, x: float, y: float) -> None: ...
    def panContentsBy(self, dx: float, dy: float) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def toCanvasCoordinates(self, point: _core.QgsPoint) -> _core.QgsPointXY: ...
    def toMapCoordinates(self, point: _core.QgsPointXY) -> _core.QgsPoint: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsHistoryEntry(PyQt6.sip.wrapper):

    entry = ... # type: dict[typing.Optional[str], typing.Any]
    id = ... # type: int
    providerId = ... # type: typing.Optional[str]
    timestamp = ... # type: typing.Union[QtCore.QDateTime, datetime.datetime]

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, providerId: typing.Optional[str], timestamp: typing.Union[QtCore.QDateTime, datetime.datetime], entry: dict[typing.Optional[str], typing.Any]) -> None: ...
    @typing.overload
    def __init__(self, entry: dict[typing.Optional[str], typing.Any]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsHistoryEntry') -> None: ...

    def __repr__(self) -> typing.Any: ...
    def isValid(self) -> bool: ...


class QgsHistoryEntryModel(QtCore.QAbstractItemModel):

    def __init__(self, providerId: typing.Optional[str] = ..., backends: _core.Qgis.HistoryProviderBackend = ..., registry: typing.Optional['QgsHistoryProviderRegistry'] = ..., context: 'QgsHistoryWidgetContext' = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def index2node(self, index: QtCore.QModelIndex) -> typing.Optional['QgsHistoryEntryNode']: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...


class QgsHistoryEntryNode(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def matchesString(self, searchString: typing.Optional[str]) -> bool: ...
    def populateContextMenu(self, menu: typing.Optional[QtWidgets.QMenu], context: 'QgsHistoryWidgetContext') -> None: ...
    def doubleClicked(self, context: 'QgsHistoryWidgetContext') -> bool: ...
    def createWidget(self, context: 'QgsHistoryWidgetContext') -> typing.Optional[QtWidgets.QWidget]: ...
    def html(self, context: 'QgsHistoryWidgetContext') -> str: ...
    def childCount(self) -> int: ...
    def data(self, role: int = ...) -> typing.Any: ...
    def parent(self) -> typing.Optional['QgsHistoryEntryGroup']: ...


class QgsHistoryEntryGroup(QgsHistoryEntryNode):

    def __init__(self) -> None: ...

    def childCount(self) -> int: ...
    def clear(self) -> None: ...
    def removeChildAt(self, index: int) -> None: ...
    def childAt(self, index: int) -> typing.Optional[QgsHistoryEntryNode]: ...
    def indexOf(self, child: typing.Optional[QgsHistoryEntryNode]) -> int: ...
    def insertChild(self, index: int, child: typing.Optional[QgsHistoryEntryNode]) -> None: ...
    def addChild(self, child: typing.Optional[QgsHistoryEntryNode]) -> None: ...


class QgsAbstractHistoryProvider(QtCore.QObject):

    def __init__(self) -> None: ...

    def updateNodeForEntry(self, node: typing.Optional[QgsHistoryEntryNode], entry: QgsHistoryEntry, context: 'QgsHistoryWidgetContext') -> None: ...
    def createNodeForEntry(self, entry: QgsHistoryEntry, context: 'QgsHistoryWidgetContext') -> typing.Optional[QgsHistoryEntryNode]: ...
    def id(self) -> str: ...


class QgsHistoryProviderRegistry(QtCore.QObject):

    class HistoryEntryOptions(PyQt6.sip.wrapper):

        storageBackends = ... # type: _core.Qgis.HistoryProviderBackend

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsHistoryProviderRegistry.HistoryEntryOptions') -> None: ...

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., useMemoryDatabase: bool = ...) -> None: ...

    historyCleared: typing.ClassVar[QtCore.pyqtSignal]
    entryUpdated: typing.ClassVar[QtCore.pyqtSignal]
    entryAdded: typing.ClassVar[QtCore.pyqtSignal]
    def clearHistory(self, backend: _core.Qgis.HistoryProviderBackend, providerId: typing.Optional[str] = ...) -> bool: ...
    @staticmethod
    def userHistoryDbPath() -> str: ...
    def queryEntries(self, start: typing.Union[QtCore.QDateTime, datetime.datetime] = ..., end: typing.Union[QtCore.QDateTime, datetime.datetime] = ..., providerId: typing.Optional[str] = ..., backends: _core.Qgis.HistoryProviderBackend = ...) -> list[QgsHistoryEntry]: ...
    def updateEntry(self, id: int, entry: dict[typing.Optional[str], typing.Any], backend: _core.Qgis.HistoryProviderBackend = ...) -> bool: ...
    def entry(self, id: int, backend: _core.Qgis.HistoryProviderBackend = ...) -> typing.Tuple[QgsHistoryEntry, bool]: ...
    def addEntries(self, entries: collections.abc.Iterable[QgsHistoryEntry], options: 'QgsHistoryProviderRegistry.HistoryEntryOptions' = ...) -> bool: ...
    @typing.overload
    def addEntry(self, providerId: typing.Optional[str], entry: dict[typing.Optional[str], typing.Any], options: 'QgsHistoryProviderRegistry.HistoryEntryOptions' = ...) -> typing.Tuple[int, bool]: ...
    @typing.overload
    def addEntry(self, entry: QgsHistoryEntry, options: 'QgsHistoryProviderRegistry.HistoryEntryOptions' = ...) -> typing.Tuple[int, bool]: ...
    def providerIds(self) -> list[str]: ...
    def removeProvider(self, id: typing.Optional[str]) -> bool: ...
    def providerById(self, id: typing.Optional[str]) -> typing.Optional[QgsAbstractHistoryProvider]: ...
    def addProvider(self, provider: typing.Optional[QgsAbstractHistoryProvider]) -> bool: ...


class QgsHistoryWidget(QgsPanelWidget):

    def __init__(self, providerId: typing.Optional[str] = ..., backends: _core.Qgis.HistoryProviderBackend = ..., registry: typing.Optional[QgsHistoryProviderRegistry] = ..., context: 'QgsHistoryWidgetContext' = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsHistoryWidgetContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsHistoryWidgetContext') -> None: ...

    def historyWidget(self) -> typing.Optional[QgsHistoryWidget]: ...
    def setHistoryWidget(self, widget: typing.Optional[QgsHistoryWidget]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...


class QgsAbstractInputController(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def type(self) -> _core.Qgis.InputControllerType: ...
    def deviceId(self) -> str: ...
    def clone(self) -> typing.Optional['QgsAbstractInputController']: ...


class QgsAbstract2DMapController(QgsAbstractInputController):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def type(self) -> _core.Qgis.InputControllerType: ...


class QgsAbstract3DMapController(QgsAbstractInputController):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def type(self) -> _core.Qgis.InputControllerType: ...


class QgsInputControllerManager(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def register3DMapController(self, controller: typing.Optional[QgsAbstract3DMapController]) -> bool: ...
    def create3DMapController(self, deviceId: typing.Optional[str]) -> typing.Optional[QgsAbstract3DMapController]: ...
    def available3DMapControllers(self) -> list[str]: ...
    def register2DMapController(self, controller: typing.Optional[QgsAbstract2DMapController]) -> bool: ...
    def create2DMapController(self, deviceId: typing.Optional[str]) -> typing.Optional[QgsAbstract2DMapController]: ...
    def available2DMapControllers(self) -> list[str]: ...


class QgsLabelingEngineRuleWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def rule(self) -> typing.Optional[_core.QgsAbstractLabelingEngineRule]: ...
    def setRule(self, rule: typing.Optional[_core.QgsAbstractLabelingEngineRule]) -> None: ...


class QgsLabelingEngineRulesWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def rules(self) -> list[_core.QgsAbstractLabelingEngineRule]: ...
    def setRules(self, rules: collections.abc.Iterable[_core.QgsAbstractLabelingEngineRule]) -> None: ...


class QgsLabelingEngineRulesDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def rules(self) -> list[_core.QgsAbstractLabelingEngineRule]: ...
    def setRules(self, rules: collections.abc.Iterable[_core.QgsAbstractLabelingEngineRule]) -> None: ...


class QgsLabelSettingsWidgetBase(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., vl: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsPalLayerSettings.Property) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    auxiliaryFieldCreated: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def updateDataDefinedProperties(self, properties: _core.QgsPropertyCollection) -> None: ...
    def setDataDefinedProperties(self, dataDefinedProperties: _core.QgsPropertyCollection) -> None: ...
    def dataDefinedProperties(self) -> _core.QgsPropertyCollection: ...
    def setGeometryType(self, type: _core.Qgis.GeometryType) -> None: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsLabelLineAnchorWidget(QgsLabelSettingsWidgetBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., vl: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def updateDataDefinedProperties(self, properties: _core.QgsPropertyCollection) -> None: ...
    def settings(self) -> _core.QgsLabelLineSettings: ...
    def setSettings(self, settings: _core.QgsLabelLineSettings) -> None: ...


class QgsLabelObstacleSettingsWidget(QgsLabelSettingsWidgetBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., vl: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def updateDataDefinedProperties(self, properties: _core.QgsPropertyCollection) -> None: ...
    def setGeometryType(self, type: _core.Qgis.GeometryType) -> None: ...
    def settings(self) -> _core.QgsLabelObstacleSettings: ...
    def setSettings(self, settings: _core.QgsLabelObstacleSettings) -> None: ...


class QgsLabelSettingsWidgetDialog(QtWidgets.QDialog):

    def __init__(self, widget: typing.Optional[QgsLabelSettingsWidgetBase], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...


class QgsLabelRemoveDuplicatesSettingsWidget(QgsLabelSettingsWidgetBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsMapLayer] = ...) -> None: ...

    def updateDataDefinedProperties(self, properties: _core.QgsPropertyCollection) -> None: ...
    def setGeometryType(self, type: _core.Qgis.GeometryType) -> None: ...
    def settings(self) -> _core.QgsLabelThinningSettings: ...
    def setSettings(self, settings: _core.QgsLabelThinningSettings) -> None: ...


class QgsTabPositionWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    positionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setUnit(self, unit: _core.Qgis.RenderUnit) -> None: ...
    def positions(self) -> list[_core.QgsTextFormat.Tab]: ...
    def setPositions(self, positions: collections.abc.Iterable[_core.QgsTextFormat.Tab]) -> None: ...


class QgsTabPositionDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def setUnit(self, unit: _core.Qgis.RenderUnit) -> None: ...
    def positions(self) -> list[_core.QgsTextFormat.Tab]: ...
    def setPositions(self, positions: collections.abc.Iterable[_core.QgsTextFormat.Tab]) -> None: ...


class QgsCustomLayerOrderWidget(QtWidgets.QWidget):

    def __init__(self, bridge: typing.Optional['QgsLayerTreeMapCanvasBridge'], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsLayerTreeEmbeddedConfigWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def applyToLayer(self) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...


class QgsLayerTreeEmbeddedWidgetProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsLayerTreeEmbeddedWidgetProvider') -> None: ...

    def supportsLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> bool: ...
    def createWidget(self, layer: typing.Optional[_core.QgsMapLayer], widgetIndex: int) -> typing.Optional[QtWidgets.QWidget]: ...
    def name(self) -> str: ...
    def id(self) -> str: ...


class QgsLayerTreeEmbeddedWidgetRegistry(PyQt6.sip.wrapper):

    def __init__(self) -> None: ...

    def removeProvider(self, providerId: typing.Optional[str]) -> bool: ...
    def addProvider(self, provider: typing.Optional[QgsLayerTreeEmbeddedWidgetProvider]) -> bool: ...
    def provider(self, providerId: typing.Optional[str]) -> typing.Optional[QgsLayerTreeEmbeddedWidgetProvider]: ...
    def providers(self) -> list[str]: ...


class QgsLayerTreeMapCanvasBridge(QtCore.QObject):

    def __init__(self, root: typing.Optional[_core.QgsLayerTree], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    canvasLayersChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setCanvasLayers(self) -> None: ...
    def autoSetupOnFirstLayer(self) -> bool: ...
    def setAutoSetupOnFirstLayer(self, enabled: bool) -> None: ...
    def overviewCanvas(self) -> typing.Optional[QgsMapOverviewCanvas]: ...
    @deprecated("""""")
    def setOvervewCanvas(self, overviewCanvas: typing.Optional[QgsMapOverviewCanvas]) -> None: ...
    def setOverviewCanvas(self, overviewCanvas: typing.Optional[QgsMapOverviewCanvas]) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def rootGroup(self) -> typing.Optional[_core.QgsLayerTree]: ...


class QgsLayerTreeProxyModel(QtCore.QSortFilterProxyModel):

    def __init__(self, treeModel: typing.Optional[_core.QgsLayerTreeModel], parent: typing.Optional[QtCore.QObject]) -> None: ...

    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    def setHideValidLayers(self, hideValid: bool) -> None: ...
    def hideValidLayers(self) -> bool: ...
    def setShowPrivateLayers(self, showPrivate: bool) -> None: ...
    def showPrivateLayers(self) -> bool: ...
    def setFilterText(self, filterText: typing.Optional[str] = ...) -> None: ...


class QgsLayerTreeView(QtWidgets.QTreeView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def onModelReset(self) -> None: ...
    def onExpandedChanged(self, node: typing.Optional[_core.QgsLayerTreeNode], expanded: bool) -> None: ...
    def onCurrentChanged(self) -> None: ...
    def updateExpandedStateToNode(self, index: QtCore.QModelIndex) -> None: ...
    def modelRowsRemoved(self) -> None: ...
    def modelRowsInserted(self, index: QtCore.QModelIndex, start: int, end: int) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragMoveEvent(self, event: typing.Optional[QtGui.QDragMoveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseDoubleClickEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def layerForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsMapLayer]: ...
    def updateExpandedStateFromNode(self, node: typing.Optional[_core.QgsLayerTreeNode]) -> None: ...
    def contextMenuEvent(self, event: typing.Optional[QtGui.QContextMenuEvent]) -> None: ...
    contextMenuAboutToShow: typing.ClassVar[QtCore.pyqtSignal]
    datasetsDropped: typing.ClassVar[QtCore.pyqtSignal]
    currentLayerChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setHideValidLayers(self, hideValid: bool) -> None: ...
    def setShowPrivateLayers(self, showPrivate: bool) -> None: ...
    def setMessageBar(self, messageBar: typing.Optional[QgsMessageBar]) -> None: ...
    def setLayerMarkWidth(self, width: int) -> None: ...
    def collapseAllNodes(self) -> None: ...
    def expandAllNodes(self) -> None: ...
    def refreshLayerSymbology(self, layerId: typing.Optional[str]) -> None: ...
    def hideValidLayers(self) -> bool: ...
    def showPrivateLayers(self) -> bool: ...
    def layerMarkWidth(self) -> int: ...
    def indicators(self, node: typing.Optional[_core.QgsLayerTreeNode]) -> list['QgsLayerTreeViewIndicator']: ...
    def removeIndicator(self, node: typing.Optional[_core.QgsLayerTreeNode], indicator: typing.Optional['QgsLayerTreeViewIndicator']) -> None: ...
    def addIndicator(self, node: typing.Optional[_core.QgsLayerTreeNode], indicator: typing.Optional['QgsLayerTreeViewIndicator']) -> None: ...
    def selectedLayersRecursive(self) -> list[_core.QgsMapLayer]: ...
    def selectedLegendNodes(self) -> list[_core.QgsLayerTreeModelLegendNode]: ...
    def selectedLayers(self) -> list[_core.QgsMapLayer]: ...
    def selectedLayerNodes(self) -> list[_core.QgsLayerTreeLayer]: ...
    def selectedNodes(self, skipInternal: bool = ...) -> list[_core.QgsLayerTreeNode]: ...
    def currentLegendNode(self) -> typing.Optional[_core.QgsLayerTreeModelLegendNode]: ...
    def currentGroupNode(self) -> typing.Optional[_core.QgsLayerTreeGroup]: ...
    def currentNode(self) -> typing.Optional[_core.QgsLayerTreeNode]: ...
    def setCurrentLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setCurrentNode(self, node: typing.Optional[_core.QgsLayerTreeNode]) -> None: ...
    def setLayerVisible(self, layer: typing.Optional[_core.QgsMapLayer], visible: bool) -> None: ...
    def currentLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def menuProvider(self) -> typing.Optional['QgsLayerTreeViewMenuProvider']: ...
    def setMenuProvider(self, menuProvider: typing.Optional['QgsLayerTreeViewMenuProvider']) -> None: ...
    def defaultActions(self) -> typing.Optional['QgsLayerTreeViewDefaultActions']: ...
    def legendNode2sourceIndex(self, legendNode: typing.Optional[_core.QgsLayerTreeModelLegendNode]) -> QtCore.QModelIndex: ...
    def legendNode2index(self, legendNode: typing.Optional[_core.QgsLayerTreeModelLegendNode]) -> QtCore.QModelIndex: ...
    def index2legendNode(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsLayerTreeModelLegendNode]: ...
    def node2sourceIndex(self, node: typing.Optional[_core.QgsLayerTreeNode]) -> QtCore.QModelIndex: ...
    def node2index(self, node: typing.Optional[_core.QgsLayerTreeNode]) -> QtCore.QModelIndex: ...
    def index2node(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsLayerTreeNode]: ...
    def proxyModel(self) -> typing.Optional[QgsLayerTreeProxyModel]: ...
    def layerTreeModel(self) -> typing.Optional[_core.QgsLayerTreeModel]: ...
    def setModel(self, model: typing.Optional[QtCore.QAbstractItemModel]) -> None: ...


class QgsLayerTreeViewMenuProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsLayerTreeViewMenuProvider') -> None: ...

    def createContextMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...


class QgsLayerTreeViewDefaultActions(QtCore.QObject):

    def __init__(self, view: typing.Optional[QgsLayerTreeView]) -> None: ...

    def uniqueGroupName(self, parentGroup: typing.Optional[_core.QgsLayerTreeGroup]) -> str: ...
    def mutuallyExclusiveGroup(self) -> None: ...
    def groupSelected(self) -> None: ...
    def moveToBottom(self) -> None: ...
    def moveToTop(self) -> None: ...
    def moveOutOfGroup(self) -> None: ...
    @deprecated("""""")
    def makeTopLevel(self) -> None: ...
    def showFeatureCount(self) -> None: ...
    def renameGroupOrLayer(self) -> None: ...
    def removeGroupOrLayer(self) -> None: ...
    def addGroup(self) -> None: ...
    def showInOverview(self) -> None: ...
    @typing.overload
    def zoomToGroup(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    @typing.overload
    def zoomToGroup(self) -> None: ...
    @typing.overload
    def zoomToSelection(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    @typing.overload
    def zoomToSelection(self) -> None: ...
    @typing.overload
    def zoomToLayers(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    @typing.overload
    def zoomToLayers(self) -> None: ...
    @typing.overload
    def zoomToLayers(self, canvas: typing.Optional[QgsMapCanvas], layers: collections.abc.Iterable[_core.QgsMapLayer]) -> None: ...
    @typing.overload
    @deprecated("""""")
    def zoomToLayer(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    @typing.overload
    @deprecated("""""")
    def zoomToLayer(self) -> None: ...
    def actionMutuallyExclusiveGroup(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionGroupSelected(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionMoveToBottom(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionMoveToTop(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionMoveOutOfGroup(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionMakeTopLevel(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomToGroup(self, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomToSelection(self, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionZoomToLayers(self, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    @deprecated("""""")
    def actionZoomToLayer(self, canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionCheckAndAllParents(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionUncheckAndAllChildren(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionCheckAndAllChildren(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionShowFeatureCount(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionRenameGroupOrLayer(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionShowInOverview(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionRemoveGroupOrLayer(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...
    def actionAddGroup(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QtGui.QAction]: ...


class QgsLayerTreeViewIndicator(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    clicked: typing.ClassVar[QtCore.pyqtSignal]
    def setToolTip(self, tip: typing.Optional[str]) -> None: ...
    def toolTip(self) -> str: ...
    def setIcon(self, icon: QtGui.QIcon) -> None: ...
    def icon(self) -> QtGui.QIcon: ...


class QgsLayoutComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., manager: typing.Optional[_core.QgsLayoutManager] = ...) -> None: ...

    layoutChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setCurrentLayout(self, layout: typing.Optional[_core.QgsMasterLayoutInterface]) -> None: ...
    def layout(self, index: int) -> typing.Optional[_core.QgsMasterLayoutInterface]: ...
    def currentLayout(self) -> typing.Optional[_core.QgsMasterLayoutInterface]: ...
    def allowEmptyLayout(self) -> bool: ...
    def setAllowEmptyLayout(self, allowEmpty: bool) -> None: ...
    def setFilters(self, filters: _core.QgsLayoutManagerProxyModel.Filter) -> None: ...
    def filters(self) -> _core.QgsLayoutManagerProxyModel.Filter: ...
    def setLayoutManager(self, manager: typing.Optional[_core.QgsLayoutManager]) -> None: ...


class QgsLayoutCustomDropHandler(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def handlePaste(self, iface: typing.Optional['QgsLayoutDesignerInterface'], pastePoint: QtCore.QPointF, data: typing.Optional[QtCore.QMimeData]) -> typing.Tuple[bool, list[_core.QgsLayoutItem]]: ...
    @typing.overload
    @deprecated("""""")
    def handleFileDrop(self, iface: typing.Optional['QgsLayoutDesignerInterface'], file: typing.Optional[str]) -> bool: ...
    @typing.overload
    def handleFileDrop(self, iface: typing.Optional['QgsLayoutDesignerInterface'], dropPoint: QtCore.QPointF, file: typing.Optional[str]) -> bool: ...


class QgsLayoutDesignerInterface(QtCore.QObject):

    class StandardTool(enum.IntEnum):
        ToolMoveItemContent = ... # type: QgsLayoutDesignerInterface.StandardTool
        ToolMoveItemNodes = ... # type: QgsLayoutDesignerInterface.StandardTool

    class ExportResults(PyQt6.sip.wrapper):

        labelingResults = ... # type: typing.Any
        result = ... # type: _core.QgsLayoutExporter.ExportResult

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsLayoutDesignerInterface.ExportResults') -> None: ...

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    mapPreviewRefreshed: typing.ClassVar[QtCore.pyqtSignal]
    layoutExported: typing.ClassVar[QtCore.pyqtSignal]
    def showRulers(self, visible: bool) -> None: ...
    def close(self) -> None: ...
    def lastExportResults(self) -> typing.Optional['QgsLayoutDesignerInterface.ExportResults']: ...
    def activateTool(self, tool: 'QgsLayoutDesignerInterface.StandardTool') -> None: ...
    def removeDockWidget(self, dock: typing.Optional[QtWidgets.QDockWidget]) -> None: ...
    def addDockWidget(self, area: QtCore.Qt.DockWidgetArea, dock: typing.Optional[QtWidgets.QDockWidget]) -> None: ...
    def atlasToolbar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def actionsToolbar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def navigationToolbar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def layoutToolbar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def settingsMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def reportMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def atlasMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def itemsMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def viewMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def editMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def layoutMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...
    def showItemOptions(self, item: typing.Optional[_core.QgsLayoutItem], bringPanelToFront: bool = ...) -> None: ...
    def setAtlasFeature(self, feature: _core.QgsFeature) -> None: ...
    def atlasPreviewEnabled(self) -> bool: ...
    def setAtlasPreviewEnabled(self, enabled: bool) -> None: ...
    def selectItems(self, items: collections.abc.Iterable[_core.QgsLayoutItem]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def view(self) -> typing.Optional['QgsLayoutView']: ...
    def window(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def masterLayout(self) -> typing.Optional[_core.QgsMasterLayoutInterface]: ...
    def layout(self) -> typing.Optional[_core.QgsLayout]: ...


class QgsLayoutItemComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layout: typing.Optional[_core.QgsLayout] = ...) -> None: ...

    itemChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setItem(self, item: typing.Optional[_core.QgsLayoutItem]) -> None: ...
    def currentItem(self) -> typing.Optional[_core.QgsLayoutItem]: ...
    def item(self, index: int) -> typing.Optional[_core.QgsLayoutItem]: ...
    def itemFlags(self) -> _core.QgsLayoutItem.Flag: ...
    def setItemFlags(self, flags: _core.QgsLayoutItem.Flag) -> None: ...
    def allowEmptyItem(self) -> bool: ...
    def setAllowEmptyItem(self, allowEmpty: bool) -> None: ...
    def exceptedItemList(self) -> list[_core.QgsLayoutItem]: ...
    def setExceptedItemList(self, exceptList: collections.abc.Iterable[_core.QgsLayoutItem]) -> None: ...
    def itemType(self) -> _core.QgsLayoutItemRegistry.ItemType: ...
    def setItemType(self, itemType: _core.QgsLayoutItemRegistry.ItemType) -> None: ...
    def currentLayout(self) -> typing.Optional[_core.QgsLayout]: ...
    def setCurrentLayout(self, layout: typing.Optional[_core.QgsLayout]) -> None: ...


class QgsLayoutItemAbstractGuiMetadata(PyQt6.sip.wrapper):

    class Flag(enum.IntEnum):
        FlagNoCreationTools = ... # type: QgsLayoutItemAbstractGuiMetadata.Flag

    @typing.overload
    def __init__(self, type: int, visibleName: typing.Optional[str], groupId: typing.Optional[str] = ..., isNodeBased: bool = ..., flags: 'QgsLayoutItemAbstractGuiMetadata.Flag' = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsLayoutItemAbstractGuiMetadata') -> None: ...

    def handleDoubleClick(self, item: typing.Optional[_core.QgsLayoutItem], action: _core.Qgis.MouseHandlesAction) -> None: ...
    def newItemAddedToLayout(self, item: typing.Optional[_core.QgsLayoutItem]) -> None: ...
    def createItem(self, layout: typing.Optional[_core.QgsLayout]) -> typing.Optional[_core.QgsLayoutItem]: ...
    def createNodeRubberBand(self, view: typing.Optional['QgsLayoutView']) -> typing.Optional[QtWidgets.QGraphicsItem]: ...
    def createRubberBand(self, view: typing.Optional['QgsLayoutView']) -> typing.Optional['QgsLayoutViewRubberBand']: ...
    def createItemWidget(self, item: typing.Optional[_core.QgsLayoutItem]) -> typing.Optional['QgsLayoutItemBaseWidget']: ...
    def creationIcon(self) -> QtGui.QIcon: ...
    def visibleName(self) -> str: ...
    def isNodeBased(self) -> bool: ...
    def groupId(self) -> str: ...
    def flags(self) -> 'QgsLayoutItemAbstractGuiMetadata.Flag': ...
    def type(self) -> int: ...


class QgsLayoutItemGuiGroup(PyQt6.sip.wrapper):

    icon = ... # type: QtGui.QIcon
    id = ... # type: typing.Optional[str]
    name = ... # type: typing.Optional[str]

    @typing.overload
    def __init__(self, id: typing.Optional[str] = ..., name: typing.Optional[str] = ..., icon: QtGui.QIcon = ...) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsLayoutItemGuiGroup') -> None: ...


class QgsLayoutItemGuiRegistry(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    typeAdded: typing.ClassVar[QtCore.pyqtSignal]
    def itemMetadataIds(self) -> list[int]: ...
    def createItemWidget(self, item: typing.Optional[_core.QgsLayoutItem]) -> typing.Optional['QgsLayoutItemBaseWidget']: ...
    def newItemAddedToLayout(self, metadataId: int, item: typing.Optional[_core.QgsLayoutItem], properties: dict[typing.Optional[str], typing.Any] = ...) -> None: ...
    def createItem(self, metadataId: int, layout: typing.Optional[_core.QgsLayout]) -> typing.Optional[_core.QgsLayoutItem]: ...
    def itemGroup(self, id: typing.Optional[str]) -> QgsLayoutItemGuiGroup: ...
    def addItemGroup(self, group: QgsLayoutItemGuiGroup) -> bool: ...
    def addLayoutItemGuiMetadata(self, metadata: typing.Optional[QgsLayoutItemAbstractGuiMetadata]) -> bool: ...
    def metadataIdForItemType(self, type: int) -> int: ...
    def itemMetadata(self, metadataId: int) -> typing.Optional[QgsLayoutItemAbstractGuiMetadata]: ...


class QgsLayoutConfigObject(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], layoutObject: typing.Optional[_core.QgsLayoutObject]) -> None: ...

    def layoutAtlas(self) -> typing.Optional[_core.QgsLayoutAtlas]: ...
    def coverageLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def updateDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton]) -> None: ...
    def initializeDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsLayoutObject.DataDefinedProperty) -> None: ...


class QgsLayoutItemBaseWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], layoutObject: typing.Optional[_core.QgsLayoutObject]) -> None: ...

    def layoutAtlas(self) -> typing.Optional[_core.QgsLayoutAtlas]: ...
    def setNewItem(self, item: typing.Optional[_core.QgsLayoutItem]) -> bool: ...
    def coverageLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def updateDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton]) -> None: ...
    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], property: _core.QgsLayoutObject.DataDefinedProperty) -> None: ...
    def setMasterLayout(self, masterLayout: typing.Optional[_core.QgsMasterLayoutInterface]) -> None: ...
    def setDesignerInterface(self, iface: typing.Optional[QgsLayoutDesignerInterface]) -> None: ...
    def setReportTypeString(self, string: typing.Optional[str]) -> None: ...
    def setItem(self, item: typing.Optional[_core.QgsLayoutItem]) -> bool: ...
    def layoutObject(self) -> typing.Optional[_core.QgsLayoutObject]: ...


class QgsLayoutItemPropertiesWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], item: typing.Optional[_core.QgsLayoutItem]) -> None: ...

    def populateDataDefinedButtons(self) -> None: ...
    def initializeDataDefinedButtons(self) -> None: ...
    def updateVariables(self) -> None: ...
    def setMasterLayout(self, masterLayout: typing.Optional[_core.QgsMasterLayoutInterface]) -> None: ...
    def setItem(self, item: typing.Optional[_core.QgsLayoutItem]) -> None: ...
    def showFrameGroup(self, showGroup: bool) -> None: ...
    def showBackgroundGroup(self, showGroup: bool) -> None: ...
    def positionMode(self) -> _core.QgsLayoutItem.ReferencePoint: ...


class QgsLayoutItemPropertiesDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def setLayout(self, layout: typing.Optional[_core.QgsLayout]) -> None: ...
    def setReferencePoint(self, point: _core.QgsLayoutItem.ReferencePoint) -> None: ...
    def referencePoint(self) -> _core.QgsLayoutItem.ReferencePoint: ...
    def itemSize(self) -> _core.QgsLayoutSize: ...
    def setItemSize(self, size: _core.QgsLayoutSize) -> None: ...
    def page(self) -> int: ...
    def itemPosition(self) -> _core.QgsLayoutPoint: ...
    def setItemPosition(self, position: _core.QgsLayoutPoint) -> None: ...


class QgsLayoutRuler(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., orientation: QtCore.Qt.Orientation = ...) -> None: ...

    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    cursorPosChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setCursorPosition(self, position: QtCore.QPointF) -> None: ...
    def setContextMenu(self, menu: typing.Optional[QtWidgets.QMenu]) -> None: ...
    def rulerSize(self) -> int: ...
    def setLayoutView(self, view: typing.Optional['QgsLayoutView']) -> None: ...
    def layoutView(self) -> typing.Optional['QgsLayoutView']: ...
    def setSceneTransform(self, transform: QtGui.QTransform) -> None: ...
    def minimumSizeHint(self) -> QtCore.QSize: ...


class QgsLayoutUnitsComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setConverter(self, converter: typing.Optional[_core.QgsLayoutMeasurementConverter]) -> None: ...
    def converter(self) -> typing.Optional[_core.QgsLayoutMeasurementConverter]: ...
    def linkToWidget(self, widget: typing.Optional[QtWidgets.QDoubleSpinBox]) -> None: ...
    def setUnit(self, unit: _core.Qgis.LayoutUnit) -> None: ...
    def unit(self) -> _core.Qgis.LayoutUnit: ...


class QgsLayoutView(QtWidgets.QGraphicsView):

    class PasteMode(enum.IntEnum):
        PasteModeCursor = ... # type: QgsLayoutView.PasteMode
        PasteModeCenter = ... # type: QgsLayoutView.PasteMode
        PasteModeInPlace = ... # type: QgsLayoutView.PasteMode

    class ClipboardOperation(enum.IntEnum):
        ClipboardCut = ... # type: QgsLayoutView.ClipboardOperation
        ClipboardCopy = ... # type: QgsLayoutView.ClipboardOperation

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def dragEnterEvent(self, e: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def scrollContentsBy(self, dx: int, dy: int) -> None: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def mouseDoubleClickEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    willBeDeleted: typing.ClassVar[QtCore.pyqtSignal]
    itemFocused: typing.ClassVar[QtCore.pyqtSignal]
    statusMessage: typing.ClassVar[QtCore.pyqtSignal]
    pageChanged: typing.ClassVar[QtCore.pyqtSignal]
    cursorPosChanged: typing.ClassVar[QtCore.pyqtSignal]
    zoomLevelChanged: typing.ClassVar[QtCore.pyqtSignal]
    toolSet: typing.ClassVar[QtCore.pyqtSignal]
    layoutSet: typing.ClassVar[QtCore.pyqtSignal]
    def pushStatusMessage(self, message: typing.Optional[str]) -> None: ...
    def viewChanged(self) -> None: ...
    def ungroupSelectedItems(self) -> None: ...
    def groupSelectedItems(self) -> None: ...
    def deleteItems(self, items: collections.abc.Iterable[_core.QgsLayoutItem]) -> None: ...
    def deleteSelectedItems(self) -> None: ...
    def unlockAllItems(self) -> None: ...
    def lockSelectedItems(self) -> None: ...
    def moveSelectedItemsToBottom(self) -> None: ...
    def moveSelectedItemsToTop(self) -> None: ...
    def lowerSelectedItems(self) -> None: ...
    def raiseSelectedItems(self) -> None: ...
    def selectNextItemBelow(self) -> None: ...
    def selectNextItemAbove(self) -> None: ...
    def invertSelection(self) -> None: ...
    def deselectAll(self) -> None: ...
    def selectAll(self) -> None: ...
    def emitZoomLevelChanged(self) -> None: ...
    def zoomActual(self) -> None: ...
    def zoomOut(self) -> None: ...
    def zoomIn(self) -> None: ...
    def zoomWidth(self) -> None: ...
    def zoomFull(self) -> None: ...
    def setSectionLabel(self, label: typing.Optional[str]) -> None: ...
    def deltaForKeyEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> QtCore.QPointF: ...
    def hasItemsInClipboard(self) -> bool: ...
    @typing.overload
    def pasteItems(self, mode: 'QgsLayoutView.PasteMode') -> list[_core.QgsLayoutItem]: ...
    @typing.overload
    def pasteItems(self, layoutPoint: QtCore.QPointF) -> list[_core.QgsLayoutItem]: ...
    def copyItems(self, items: collections.abc.Iterable[_core.QgsLayoutItem], operation: 'QgsLayoutView.ClipboardOperation') -> None: ...
    def copySelectedItems(self, operation: 'QgsLayoutView.ClipboardOperation') -> None: ...
    def resizeSelectedItems(self, resize: _core.QgsLayoutAligner.Resize) -> None: ...
    def distributeSelectedItems(self, distribution: _core.QgsLayoutAligner.Distribution) -> None: ...
    def alignSelectedItems(self, alignment: _core.QgsLayoutAligner.Alignment) -> None: ...
    def visiblePageNumbers(self) -> list[int]: ...
    def visiblePages(self) -> list[_core.QgsLayoutItemPage]: ...
    def currentPage(self) -> int: ...
    def menuProvider(self) -> typing.Optional['QgsLayoutViewMenuProvider']: ...
    def setMenuProvider(self, provider: typing.Optional['QgsLayoutViewMenuProvider']) -> None: ...
    def setVerticalRuler(self, ruler: typing.Optional[QgsLayoutRuler]) -> None: ...
    def setHorizontalRuler(self, ruler: typing.Optional[QgsLayoutRuler]) -> None: ...
    def setZoomLevel(self, level: float) -> None: ...
    def scaleSafe(self, scale: float) -> None: ...
    def previewMode(self) -> QgsPreviewEffect.PreviewMode: ...
    def setPreviewMode(self, mode: QgsPreviewEffect.PreviewMode) -> None: ...
    def previewModeEnabled(self) -> bool: ...
    def setPreviewModeEnabled(self, enabled: bool) -> None: ...
    def unsetTool(self, tool: typing.Optional['QgsLayoutViewTool']) -> None: ...
    def setTool(self, tool: typing.Optional['QgsLayoutViewTool']) -> None: ...
    def tool(self) -> typing.Optional['QgsLayoutViewTool']: ...
    def setCurrentLayout(self, layout: typing.Optional[_core.QgsLayout]) -> None: ...
    def currentLayout(self) -> typing.Optional[_core.QgsLayout]: ...


class QgsLayoutViewMenuProvider(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsLayoutViewMenuProvider') -> None: ...

    def createContextMenu(self, parent: typing.Optional[QtWidgets.QWidget], layout: typing.Optional[_core.QgsLayout], layoutPoint: QtCore.QPointF) -> typing.Optional[QtWidgets.QMenu]: ...


class QgsLayoutViewMouseEvent(QtGui.QMouseEvent):

    def __init__(self, view: typing.Optional[QgsLayoutView], event: typing.Optional[QtGui.QMouseEvent], snap: bool = ...) -> None: ...

    def isSnapped(self) -> bool: ...
    def snappedPoint(self) -> QtCore.QPointF: ...
    def layoutPoint(self) -> QtCore.QPointF: ...
    def snapPoint(self, horizontalSnapLine: typing.Optional[QtWidgets.QGraphicsLineItem] = ..., verticalSnapLine: typing.Optional[QtWidgets.QGraphicsLineItem] = ..., ignoreItems: collections.abc.Iterable[_core.QgsLayoutItem] = ...) -> None: ...


class QgsLayoutViewRubberBand(QtCore.QObject):

    def __init__(self, view: typing.Optional[QgsLayoutView] = ...) -> None: ...

    def updateRect(self, start: QtCore.QPointF, position: QtCore.QPointF, constrainSquare: bool, fromCenter: bool) -> QtCore.QRectF: ...
    sizeChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setPen(self, pen: typing.Union[QtGui.QPen, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]]) -> None: ...
    def pen(self) -> QtGui.QPen: ...
    def setBrush(self, brush: typing.Union[QtGui.QBrush, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], QtGui.QGradient]) -> None: ...
    def brush(self) -> QtGui.QBrush: ...
    def layout(self) -> typing.Optional[_core.QgsLayout]: ...
    def view(self) -> typing.Optional[QgsLayoutView]: ...
    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def create(self, view: typing.Optional[QgsLayoutView]) -> typing.Optional['QgsLayoutViewRubberBand']: ...


class QgsLayoutViewRectangularRubberBand(QgsLayoutViewRubberBand):

    def __init__(self, view: typing.Optional[QgsLayoutView] = ...) -> None: ...

    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def create(self, view: typing.Optional[QgsLayoutView]) -> typing.Optional['QgsLayoutViewRectangularRubberBand']: ...


class QgsLayoutViewEllipticalRubberBand(QgsLayoutViewRubberBand):

    def __init__(self, view: typing.Optional[QgsLayoutView] = ...) -> None: ...

    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def create(self, view: typing.Optional[QgsLayoutView]) -> typing.Optional['QgsLayoutViewEllipticalRubberBand']: ...


class QgsLayoutViewTriangleRubberBand(QgsLayoutViewRubberBand):

    def __init__(self, view: typing.Optional[QgsLayoutView] = ...) -> None: ...

    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def create(self, view: typing.Optional[QgsLayoutView]) -> typing.Optional['QgsLayoutViewTriangleRubberBand']: ...


class QgsLayoutViewTool(QtCore.QObject):

    class Flag(enum.IntEnum):
        FlagSnaps = ... # type: QgsLayoutViewTool.Flag

    def __init__(self, view: typing.Optional[QgsLayoutView], name: typing.Optional[str]) -> None: ...

    def isClickAndDrag(self, startViewPoint: QtCore.QPoint, endViewPoint: QtCore.QPoint) -> bool: ...
    def setFlags(self, flags: 'QgsLayoutViewTool.Flag') -> None: ...
    itemFocused: typing.ClassVar[QtCore.pyqtSignal]
    deactivated: typing.ClassVar[QtCore.pyqtSignal]
    activated: typing.ClassVar[QtCore.pyqtSignal]
    def ignoredSnapItems(self) -> list[_core.QgsLayoutItem]: ...
    def layout(self) -> typing.Optional[_core.QgsLayout]: ...
    def view(self) -> typing.Optional[QgsLayoutView]: ...
    def toolName(self) -> str: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ...
    def action(self) -> typing.Optional[QtGui.QAction]: ...
    def setAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutDoubleClickEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def flags(self) -> 'QgsLayoutViewTool.Flag': ...


class QgsLayoutViewToolAddItem(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    createdItem: typing.ClassVar[QtCore.pyqtSignal]
    def setCustomProperties(self, properties: dict[typing.Optional[str], typing.Any]) -> None: ...
    def customProperties(self) -> dict[str, typing.Any]: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def setItemMetadataId(self, metadataId: int) -> None: ...
    def itemMetadataId(self) -> int: ...


class QgsLayoutViewToolAddNodeItem(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    createdItem: typing.ClassVar[QtCore.pyqtSignal]
    def deactivate(self) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def setItemMetadataId(self, metadataId: int) -> None: ...
    def itemMetadataId(self) -> int: ...


class QgsLayoutViewToolEditNodes(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def ignoredSnapItems(self) -> list[_core.QgsLayoutItem]: ...
    def deactivate(self) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def layoutDoubleClickEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def activate(self) -> None: ...
    def deleteSelectedNode(self) -> None: ...


class QgsLayoutViewToolMoveItemContent(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolPan(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def deactivate(self) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolSelect(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def searchToleranceInLayoutUnits(self) -> float: ...
    def setLayout(self, layout: typing.Optional[_core.QgsLayout]) -> None: ...
    def deactivate(self) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolTemporaryKeyPan(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def activate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolZoom(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def deactivate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutPressEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolTemporaryKeyZoom(QgsLayoutViewToolZoom):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def activate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLayoutViewToolTemporaryMousePan(QgsLayoutViewTool):

    def __init__(self, view: typing.Optional[QgsLayoutView]) -> None: ...

    def activate(self) -> None: ...
    def layoutReleaseEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...
    def layoutMoveEvent(self, event: typing.Optional[QgsLayoutViewMouseEvent]) -> None: ...


class QgsLocatorWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def eventFilter(self, obj: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    configTriggered: typing.ClassVar[QtCore.pyqtSignal]
    def invalidateResults(self) -> None: ...
    def search(self, string: typing.Optional[str]) -> None: ...
    def setResultContainerAnchors(self, anchorPoint: QgsFloatingWidget.AnchorPoint, anchorWidgetPoint: QgsFloatingWidget.AnchorPoint) -> None: ...
    def setPlaceholderText(self, text: typing.Optional[str]) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def locator(self) -> typing.Optional[_core.QgsLocator]: ...


class QgsMapTool(QtCore.QObject):

    class Flag(enum.IntEnum):
        Transient = ... # type: QgsMapTool.Flag
        EditTool = ... # type: QgsMapTool.Flag
        AllowZoomRect = ... # type: QgsMapTool.Flag
        ShowContextMenu = ... # type: QgsMapTool.Flag

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def setToolName(self, name: typing.Optional[str]) -> None: ...
    def layer(self, id: typing.Optional[str]) -> typing.Optional[_core.QgsMapLayer]: ...
    def toCanvasCoordinates(self, point: _core.QgsPointXY) -> QtCore.QPoint: ...
    def toMapCoordinatesV2(self, layer: typing.Optional[_core.QgsMapLayer], point: _core.QgsPoint) -> _core.QgsPoint: ...
    @typing.overload
    def toLayerCoordinates(self, layer: typing.Optional[_core.QgsMapLayer], point: QtCore.QPoint) -> _core.QgsPointXY: ...
    @typing.overload
    def toLayerCoordinates(self, layer: typing.Optional[_core.QgsMapLayer], point: _core.QgsPointXY) -> _core.QgsPointXY: ...
    @typing.overload
    def toLayerCoordinates(self, layer: typing.Optional[_core.QgsMapLayer], rect: _core.QgsRectangle) -> _core.QgsRectangle: ...
    def toLayerCoordinatesV2(self, layer: typing.Optional[_core.QgsMapLayer], point: _core.QgsPoint) -> _core.QgsPoint: ...
    reactivated: typing.ClassVar[QtCore.pyqtSignal]
    deactivated: typing.ClassVar[QtCore.pyqtSignal]
    activated: typing.ClassVar[QtCore.pyqtSignal]
    messageDiscarded: typing.ClassVar[QtCore.pyqtSignal]
    messageEmitted: typing.ClassVar[QtCore.pyqtSignal]
    @typing.overload
    def toMapCoordinates(self, point: QtCore.QPoint) -> _core.QgsPointXY: ...
    @typing.overload
    def toMapCoordinates(self, layer: typing.Optional[_core.QgsMapLayer], point: _core.QgsPointXY) -> _core.QgsPointXY: ...
    def populateContextMenuWithEvent(self, menu: typing.Optional[QtWidgets.QMenu], event: typing.Optional[QgsMapMouseEvent]) -> bool: ...
    def populateContextMenu(self, menu: typing.Optional[QtWidgets.QMenu]) -> None: ...
    @typing.overload
    @staticmethod
    def searchRadiusMU(context: _core.QgsRenderContext) -> float: ...
    @typing.overload
    @staticmethod
    def searchRadiusMU(canvas: typing.Optional[QgsMapCanvas]) -> float: ...
    @staticmethod
    def searchRadiusMM() -> float: ...
    def toolName(self) -> str: ...
    def canvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def clean(self) -> None: ...
    def reactivate(self) -> None: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ...
    def button(self) -> typing.Optional[QtWidgets.QAbstractButton]: ...
    def setButton(self, button: typing.Optional[QtWidgets.QAbstractButton]) -> None: ...
    def isActive(self) -> bool: ...
    def action(self) -> typing.Optional[QtGui.QAction]: ...
    def setAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def canvasToolTipEvent(self, e: typing.Optional[QtGui.QHelpEvent]) -> bool: ...
    def gestureEvent(self, e: typing.Optional[QtWidgets.QGestureEvent]) -> bool: ...
    def keyReleaseEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def wheelEvent(self, e: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasDoubleClickEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> 'QgsMapTool.Flag': ...


class QgsMapToolEdit(QgsMapTool):

    class TopologicalResult(enum.IntEnum):
        Success = ... # type: QgsMapToolEdit.TopologicalResult
        InvalidCanvas = ... # type: QgsMapToolEdit.TopologicalResult
        InvalidLayer = ... # type: QgsMapToolEdit.TopologicalResult

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def notifyNotEditableLayer(self) -> None: ...
    def notifyNotVectorLayer(self) -> None: ...
    @typing.overload
    @deprecated("""""")
    def addTopologicalPoints(self, vertices: collections.abc.Iterable[_core.QgsPointXY]) -> 'QgsMapToolEdit.TopologicalResult': ...
    @typing.overload
    def addTopologicalPoints(self, vertices: collections.abc.Iterable[_core.QgsPoint]) -> 'QgsMapToolEdit.TopologicalResult': ...
    def currentVectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def createRubberBand(self, geometryType: _core.Qgis.GeometryType = ..., alternativeBand: bool = ...) -> typing.Optional[QgsRubberBand]: ...
    @staticmethod
    def digitizingFillColor() -> QtGui.QColor: ...
    @staticmethod
    def digitizingStrokeWidth() -> int: ...
    @staticmethod
    def digitizingStrokeColor() -> QtGui.QColor: ...
    def createGeometryRubberBand(self, geometryType: _core.Qgis.GeometryType = ..., alternativeBand: bool = ...) -> typing.Optional[QgsGeometryRubberBand]: ...
    @staticmethod
    def defaultMValue() -> float: ...
    @staticmethod
    def defaultZValue() -> float: ...
    def flags(self) -> QgsMapTool.Flag: ...


class QgsMapToolAdvancedDigitizing(QgsMapToolEdit):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget]) -> None: ...

    def setSnapToLayerGridEnabled(self, snapToLayerGridEnabled: bool) -> None: ...
    def snapToLayerGridEnabled(self) -> bool: ...
    def cadCanvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def cadCanvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def cadCanvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def setUseSnappingIndicator(self, enabled: bool) -> None: ...
    def setAutoSnapEnabled(self, enabled: bool) -> None: ...
    def setAdvancedDigitizingAllowed(self, allowed: bool) -> None: ...
    def useSnappingIndicator(self) -> bool: ...
    def isAutoSnapEnabled(self) -> bool: ...
    def isAdvancedDigitizingAllowed(self) -> bool: ...
    def layer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def cadDockWidget(self) -> typing.Optional[QgsAdvancedDigitizingDockWidget]: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...


class QgsMapToolCapture(QgsMapToolAdvancedDigitizing):

    class Capability(enum.IntEnum):
        NoCapabilities = ... # type: QgsMapToolCapture.Capability
        SupportsCurves = ... # type: QgsMapToolCapture.Capability
        ValidateGeometries = ... # type: QgsMapToolCapture.Capability

    class CaptureMode(enum.IntEnum):
        CaptureNone = ... # type: QgsMapToolCapture.CaptureMode
        CapturePoint = ... # type: QgsMapToolCapture.CaptureMode
        CaptureLine = ... # type: QgsMapToolCapture.CaptureMode
        CapturePolygon = ... # type: QgsMapToolCapture.CaptureMode

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget], mode: 'QgsMapToolCapture.CaptureMode') -> None: ...

    def stopCapturing(self) -> None: ...
    def polygonCaptured(self, polygon: typing.Optional[_core.QgsCurvePolygon]) -> None: ...
    def lineCaptured(self, line: typing.Optional[_core.QgsCurve]) -> None: ...
    def pointCaptured(self, point: _core.QgsPoint) -> None: ...
    def geometryCaptured(self, geometry: _core.QgsGeometry) -> None: ...
    def closePolygon(self) -> None: ...
    @typing.overload
    @deprecated("""""")
    def setPoints(self, pointList: collections.abc.Iterable[_core.QgsPointXY]) -> None: ...
    @typing.overload
    def setPoints(self, pointList: collections.abc.Iterable[_core.QgsPoint]) -> None: ...
    def pointsZM(self) -> list[_core.QgsPoint]: ...
    @deprecated("""""")
    def points(self) -> list[_core.QgsPointXY]: ...
    def size(self) -> int: ...
    def isCapturing(self) -> bool: ...
    def startCapturing(self) -> None: ...
    def undo(self, isAutoRepeat: bool = ...) -> None: ...
    @typing.overload
    def addVertex(self, point: _core.QgsPointXY) -> int: ...
    @typing.overload
    def addVertex(self, mapPoint: _core.QgsPointXY, match: _core.QgsPointLocator.Match) -> int: ...
    def fetchLayerPoint(self, match: _core.QgsPointLocator.Match, layerPoint: _core.QgsPoint) -> int: ...
    @typing.overload
    def nextPoint(self, mapPoint: _core.QgsPoint, layerPoint: _core.QgsPoint) -> int: ...
    @typing.overload
    def nextPoint(self, p: QtCore.QPoint, layerPoint: _core.QgsPoint, mapPoint: _core.QgsPoint) -> int: ...
    @deprecated("""""")
    def setStreamDigitizingEnabled(self, enable: bool) -> None: ...
    @deprecated("""""")
    def setCircularDigitizingEnabled(self, enable: bool) -> None: ...
    @typing.overload
    def mapPoint(self, e: QgsMapMouseEvent) -> _core.QgsPoint: ...
    @typing.overload
    def mapPoint(self, point: _core.QgsPointXY) -> _core.QgsPoint: ...
    def takeRubberBand(self) -> typing.Optional[QgsRubberBand]: ...
    def clean(self) -> None: ...
    def deleteTempRubberBand(self) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def cadCanvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def cadCanvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def snappingMatches(self) -> list[_core.QgsPointLocator.Match]: ...
    def captureCurve(self) -> typing.Optional[_core.QgsCompoundCurve]: ...
    def clearCurve(self) -> None: ...
    def addCurve(self, c: typing.Optional[_core.QgsCurve]) -> int: ...
    def mode(self) -> 'QgsMapToolCapture.CaptureMode': ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def currentCaptureTechnique(self) -> _core.Qgis.CaptureTechnique: ...
    def setCurrentCaptureTechnique(self, technique: _core.Qgis.CaptureTechnique) -> None: ...
    def supportsTechnique(self, technique: _core.Qgis.CaptureTechnique) -> bool: ...
    def capabilities(self) -> 'QgsMapToolCapture.Capability': ...


class QgsMapToolCaptureLayerGeometry(QgsMapToolCapture):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget], mode: QgsMapToolCapture.CaptureMode) -> None: ...

    def geometryCaptured(self, geometry: _core.QgsGeometry) -> None: ...
    def layerPolygonCaptured(self, polygon: typing.Optional[_core.QgsCurvePolygon]) -> None: ...
    def layerLineCaptured(self, line: typing.Optional[_core.QgsCurve]) -> None: ...
    def layerPointCaptured(self, point: _core.QgsPoint) -> None: ...
    def layerGeometryCaptured(self, geometry: _core.QgsGeometry) -> None: ...


class QgsMapToolDigitizeFeature(QgsMapToolCaptureLayerGeometry):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], cadDockWidget: typing.Optional[QgsAdvancedDigitizingDockWidget], mode: QgsMapToolCapture.CaptureMode = ...) -> None: ...

    def featureDigitized(self, feature: _core.QgsFeature) -> None: ...
    def layerGeometryCaptured(self, geometry: _core.QgsGeometry) -> None: ...
    def setCheckGeometryType(self, checkGeometryType: bool) -> None: ...
    def checkGeometryType(self) -> bool: ...
    digitizingCanceled: typing.ClassVar[QtCore.pyqtSignal]
    digitizingFinished: typing.ClassVar[QtCore.pyqtSignal]
    digitizingCompleted: typing.ClassVar[QtCore.pyqtSignal]
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def reactivate(self) -> None: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def setLayer(self, vl: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def cadCanvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def supportsTechnique(self, technique: _core.Qgis.CaptureTechnique) -> bool: ...
    def capabilities(self) -> QgsMapToolCapture.Capability: ...


class QgsMapToolEmitPoint(QgsMapTool):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    canvasClicked: typing.ClassVar[QtCore.pyqtSignal]
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> QgsMapTool.Flag: ...


class QgsMapToolExtent(QgsMapTool):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    extentChanged: typing.ClassVar[QtCore.pyqtSignal]
    def clearRubberBand(self) -> None: ...
    def extent(self) -> _core.QgsRectangle: ...
    def ratio(self) -> QtCore.QSize: ...
    def setRatio(self, ratio: QtCore.QSize) -> None: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> QgsMapTool.Flag: ...


class QgsMapToolIdentify(QgsMapTool):

    class Type(enum.IntEnum):
        VectorLayer = ... # type: QgsMapToolIdentify.Type
        RasterLayer = ... # type: QgsMapToolIdentify.Type
        MeshLayer = ... # type: QgsMapToolIdentify.Type
        VectorTileLayer = ... # type: QgsMapToolIdentify.Type
        PointCloudLayer = ... # type: QgsMapToolIdentify.Type
        AllLayers = ... # type: QgsMapToolIdentify.Type

    class IdentifyMode(enum.IntEnum):
        DefaultQgsSetting = ... # type: QgsMapToolIdentify.IdentifyMode
        ActiveLayer = ... # type: QgsMapToolIdentify.IdentifyMode
        TopDownStopAtFirst = ... # type: QgsMapToolIdentify.IdentifyMode
        TopDownAll = ... # type: QgsMapToolIdentify.IdentifyMode
        LayerSelection = ... # type: QgsMapToolIdentify.IdentifyMode

    class IdentifyResult(PyQt6.sip.wrapper):

        mAttributes = ... # type: dict[typing.Optional[str], typing.Optional[str]]
        mDerivedAttributes = ... # type: dict[typing.Optional[str], typing.Optional[str]]
        mFeature = ... # type: _core.QgsFeature
        mFields = ... # type: _core.QgsFields
        mLabel = ... # type: typing.Optional[str]
        mLayer = ... # type: _core.QgsMapLayer
        mParams = ... # type: dict[typing.Optional[str], typing.Any]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer], feature: _core.QgsFeature, derivedAttributes: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer], label: typing.Optional[str], attributes: dict[typing.Optional[str], typing.Optional[str]], derivedAttributes: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer], label: typing.Optional[str], fields: _core.QgsFields, feature: _core.QgsFeature, derivedAttributes: dict[typing.Optional[str], typing.Optional[str]]) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsMapToolIdentify.IdentifyResult') -> None: ...

    class IdentifyProperties(PyQt6.sip.wrapper):

        searchRadiusMapUnits = ... # type: float
        skip3DLayers = ... # type: bool

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsMapToolIdentify.IdentifyProperties') -> None: ...

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    def restorePropertiesOverrides(self) -> None: ...
    def setPropertiesOverrides(self, overrides: 'QgsMapToolIdentify.IdentifyProperties') -> None: ...
    @deprecated("""""")
    def restoreCanvasPropertiesOverrides(self) -> None: ...
    @deprecated("""""")
    def setCanvasPropertiesOverrides(self, searchRadiusMapUnits: float) -> None: ...
    def derivedAttributesForPoint(self, point: _core.QgsPoint) -> dict[str, str]: ...
    def identifyMeshLayer(self, results: typing.Optional[collections.abc.Iterable['QgsMapToolIdentify.IdentifyResult']], layer: typing.Optional[_core.QgsMeshLayer], point: _core.QgsPointXY, identifyContext: _core.QgsIdentifyContext = ...) -> bool: ...
    def identifyVectorLayer(self, results: typing.Optional[collections.abc.Iterable['QgsMapToolIdentify.IdentifyResult']], layer: typing.Optional[_core.QgsVectorLayer], point: _core.QgsPointXY, identifyContext: _core.QgsIdentifyContext = ...) -> bool: ...
    def identifyRasterLayer(self, results: typing.Optional[collections.abc.Iterable['QgsMapToolIdentify.IdentifyResult']], layer: typing.Optional[_core.QgsRasterLayer], point: _core.QgsPointXY, viewExtent: _core.QgsRectangle, mapUnitsPerPixel: float, identifyContext: _core.QgsIdentifyContext = ...) -> bool: ...
    def identifyLayer(self, results: typing.Optional[collections.abc.Iterable['QgsMapToolIdentify.IdentifyResult']], layer: typing.Optional[_core.QgsMapLayer], point: _core.QgsPointXY, viewExtent: _core.QgsRectangle, mapUnitsPerPixel: float, layerType: 'QgsMapToolIdentify.Type' = ..., identifyContext: _core.QgsIdentifyContext = ...) -> bool: ...
    changedRasterResults: typing.ClassVar[QtCore.pyqtSignal]
    identifyMessage: typing.ClassVar[QtCore.pyqtSignal]
    identifyProgress: typing.ClassVar[QtCore.pyqtSignal]
    def formatChanged(self, layer: typing.Optional[_core.QgsRasterLayer]) -> None: ...
    def identifyMenu(self) -> typing.Optional[QgsIdentifyMenu]: ...
    @typing.overload
    def identify(self, x: int, y: int, layerList: collections.abc.Iterable[_core.QgsMapLayer] = ..., mode: 'QgsMapToolIdentify.IdentifyMode' = ..., identifyContext: _core.QgsIdentifyContext = ...) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    @typing.overload
    def identify(self, x: int, y: int, mode: 'QgsMapToolIdentify.IdentifyMode', layerType: 'QgsMapToolIdentify.Type' = ..., identifyContext: _core.QgsIdentifyContext = ...) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    @typing.overload
    def identify(self, geometry: _core.QgsGeometry, mode: 'QgsMapToolIdentify.IdentifyMode', layerType: 'QgsMapToolIdentify.Type', identifyContext: _core.QgsIdentifyContext = ...) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    @typing.overload
    def identify(self, geometry: _core.QgsGeometry, mode: 'QgsMapToolIdentify.IdentifyMode', layerList: collections.abc.Iterable[_core.QgsMapLayer], layerType: 'QgsMapToolIdentify.Type', identifyContext: _core.QgsIdentifyContext = ...) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    @typing.overload
    def identify(self, x: int, y: int, mode: 'QgsMapToolIdentify.IdentifyMode', layerList: collections.abc.Iterable[_core.QgsMapLayer], layerType: 'QgsMapToolIdentify.Type' = ..., identifyContext: _core.QgsIdentifyContext = ...) -> list['QgsMapToolIdentify.IdentifyResult']: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> QgsMapTool.Flag: ...


class QgsMapToolIdentifyFeature(QgsMapToolIdentify):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], vl: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    featureIdentified: typing.ClassVar[QtCore.pyqtSignal]
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def setLayer(self, vl: typing.Optional[_core.QgsVectorLayer]) -> None: ...


class QgsMapToolPan(QgsMapTool):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...

    panDistanceBearingChanged: typing.ClassVar[QtCore.pyqtSignal]
    def isDragging(self) -> bool: ...
    def gestureEvent(self, e: typing.Optional[QtWidgets.QGestureEvent]) -> bool: ...
    def canvasDoubleClickEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> QgsMapTool.Flag: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...


class QgsMapToolZoom(QgsMapTool):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], zoomOut: bool) -> None: ...

    def deactivate(self) -> None: ...
    def keyReleaseEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def canvasReleaseEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasPressEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def canvasMoveEvent(self, e: typing.Optional[QgsMapMouseEvent]) -> None: ...
    def flags(self) -> QgsMapTool.Flag: ...


class QgsMeshLayerProperties(QgsLayerPropertiesDialog):

    def __init__(self, lyr: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ..., a3: QtCore.Qt.WindowType = ...) -> None: ...

    def rollback(self) -> None: ...
    def apply(self) -> None: ...
    def syncToLayer(self) -> None: ...
    @deprecated("""""")
    def saveStyleAs(self) -> None: ...
    @deprecated("""""")
    def loadStyle(self) -> None: ...
    @deprecated("""""")
    def saveDefaultStyle(self) -> None: ...


class QgsNumericFormatSelectorWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsNumericFormatSelectorDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsNumericFormatWidget(QgsPanelWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsBasicNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsBearingNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsBearingNumericFormatDialog(QtWidgets.QDialog):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsBearingNumericFormat]: ...


class QgsGeographicCoordinateNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], hidePrecisionControl: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsGeographicCoordinateNumericFormatDialog(QtWidgets.QDialog):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], hidePrecisionControl: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsGeographicCoordinateNumericFormat]: ...


class QgsCurrencyNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsPercentageNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsScientificNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsFractionNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...


class QgsExpressionBasedNumericFormatWidget(QgsNumericFormatWidget):

    def __init__(self, format: typing.Optional[_core.QgsNumericFormat], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def format(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...


class QgsNumericFormatConfigurationWidgetFactory(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsNumericFormatConfigurationWidgetFactory') -> None: ...

    def create(self, format: typing.Optional[_core.QgsNumericFormat]) -> typing.Optional[QgsNumericFormatWidget]: ...


class QgsNumericFormatGuiRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsNumericFormatGuiRegistry') -> None: ...

    def formatConfigurationWidget(self, format: typing.Optional[_core.QgsNumericFormat]) -> typing.Optional[QgsNumericFormatWidget]: ...
    def removeFormatConfigurationWidgetFactory(self, id: typing.Optional[str]) -> None: ...
    def addFormatConfigurationWidgetFactory(self, id: typing.Optional[str], factory: typing.Optional[QgsNumericFormatConfigurationWidgetFactory]) -> None: ...


class QgsVectorLayerSaveAsDialog(QtWidgets.QDialog):

    class Option(enum.IntFlag):
        Symbology = ... # type: QgsVectorLayerSaveAsDialog.Option
        DestinationCrs = ... # type: QgsVectorLayerSaveAsDialog.Option
        Fields = ... # type: QgsVectorLayerSaveAsDialog.Option
        AddToCanvas = ... # type: QgsVectorLayerSaveAsDialog.Option
        SelectedOnly = ... # type: QgsVectorLayerSaveAsDialog.Option
        GeometryType = ... # type: QgsVectorLayerSaveAsDialog.Option
        Extent = ... # type: QgsVectorLayerSaveAsDialog.Option
        Metadata = ... # type: QgsVectorLayerSaveAsDialog.Option
        AllOptions = ... # type: QgsVectorLayerSaveAsDialog.Option

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], options: 'QgsVectorLayerSaveAsDialog.Option' = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def accept(self) -> None: ...
    def creationActionOnExistingFile(self) -> _core.QgsVectorFileWriter.ActionOnExistingFile: ...
    def setIncludeZ(self, checked: bool) -> None: ...
    def includeZ(self) -> bool: ...
    def setForceMulti(self, checked: bool) -> None: ...
    def forceMulti(self) -> bool: ...
    def automaticGeometryType(self) -> bool: ...
    def geometryType(self) -> _core.Qgis.WkbType: ...
    def persistMetadata(self) -> bool: ...
    def onlySelected(self) -> bool: ...
    def setOnlySelected(self, onlySelected: bool) -> None: ...
    def filterExtent(self) -> _core.QgsRectangle: ...
    def hasFilterExtent(self) -> bool: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def scale(self) -> float: ...
    def symbologyExport(self) -> _core.Qgis.FeatureSymbologyExport: ...
    def setAddToCanvas(self, checked: bool) -> None: ...
    def addToCanvas(self) -> bool: ...
    def attributesExportNames(self) -> list[str]: ...
    def attributesAsDisplayedValues(self) -> list[int]: ...
    def selectedAttributes(self) -> list[int]: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def layerOptions(self) -> list[str]: ...
    def datasourceOptions(self) -> list[str]: ...
    def layerName(self) -> str: ...
    def fileName(self) -> str: ...
    def encoding(self) -> str: ...
    def format(self) -> str: ...


class QgsPlotCanvasItem(QtWidgets.QGraphicsItem):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    @typing.overload
    def paint(self, painter: typing.Optional[QtGui.QPainter]) -> None: ...
    @typing.overload
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsPlotMouseEvent(QtGui.QMouseEvent):

    @typing.overload
    def __init__(self, canvas: typing.Optional[QgsPlotCanvas], event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    @typing.overload
    def __init__(self, canvas: typing.Optional[QgsPlotCanvas], type: QtCore.QEvent.Type, pos: QtCore.QPoint, button: QtCore.Qt.MouseButton = ..., buttons: QtCore.Qt.MouseButton = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> None: ...

    def isSnapped(self) -> bool: ...
    def snappedPoint(self) -> _core.QgsPointXY: ...
    def mapPoint(self) -> _core.QgsPoint: ...


class QgsPlotRubberBand(QtCore.QObject):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas] = ...) -> None: ...

    def updateRect(self, start: QtCore.QPointF, position: QtCore.QPointF, constrainSquare: bool, fromCenter: bool) -> QtCore.QRectF: ...
    def setPen(self, pen: typing.Union[QtGui.QPen, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]]) -> None: ...
    def pen(self) -> QtGui.QPen: ...
    def setBrush(self, brush: typing.Union[QtGui.QBrush, typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int], QtGui.QGradient]) -> None: ...
    def brush(self) -> QtGui.QBrush: ...
    def canvas(self) -> typing.Optional[QgsPlotCanvas]: ...
    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...


class QgsPlotRectangularRubberBand(QgsPlotRubberBand):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas] = ...) -> None: ...

    def finish(self, position: QtCore.QPointF = ..., modifiers: QtCore.Qt.KeyboardModifier = ...) -> QtCore.QRectF: ...
    def update(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...
    def start(self, position: QtCore.QPointF, modifiers: QtCore.Qt.KeyboardModifier) -> None: ...


class QgsPlotTool(QtCore.QObject):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas], name: typing.Optional[str]) -> None: ...

    @staticmethod
    def constrainPointToRect(point: QtCore.QPointF, rect: QtCore.QRectF) -> QtCore.QPointF: ...
    def isClickAndDrag(self, startViewPoint: QtCore.QPoint, endViewPoint: QtCore.QPoint) -> bool: ...
    def toCanvasCoordinates(self, point: _core.QgsPoint) -> _core.QgsPointXY: ...
    def toMapCoordinates(self, point: _core.QgsPointXY) -> _core.QgsPoint: ...
    deactivated: typing.ClassVar[QtCore.pyqtSignal]
    activated: typing.ClassVar[QtCore.pyqtSignal]
    def populateContextMenuWithEvent(self, menu: typing.Optional[QtWidgets.QMenu], event: typing.Optional[QgsPlotMouseEvent]) -> bool: ...
    def setCursor(self, cursor: typing.Union[QtGui.QCursor, QtCore.Qt.CursorShape]) -> None: ...
    def action(self) -> typing.Optional[QtGui.QAction]: ...
    def setAction(self, action: typing.Optional[QtGui.QAction]) -> None: ...
    def canvas(self) -> typing.Optional[QgsPlotCanvas]: ...
    def deactivate(self) -> None: ...
    def activate(self) -> None: ...
    def isActive(self) -> bool: ...
    def canvasToolTipEvent(self, event: typing.Optional[QtGui.QHelpEvent]) -> bool: ...
    def gestureEvent(self, event: typing.Optional[QtWidgets.QGestureEvent]) -> bool: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def plotReleaseEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotPressEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotDoubleClickEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotMoveEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def toolName(self) -> str: ...
    def flags(self) -> _core.Qgis.PlotToolFlag: ...


class QgsPlotToolPan(QgsPlotTool):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    def deactivate(self) -> None: ...
    def plotReleaseEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotPressEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotMoveEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def flags(self) -> _core.Qgis.PlotToolFlag: ...


class QgsPlotToolZoom(QgsPlotTool):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    def deactivate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def plotReleaseEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotMoveEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotPressEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...


class QgsPlotToolTemporaryKeyPan(QgsPlotTool):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    def activate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def plotMoveEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...


class QgsPlotToolTemporaryMousePan(QgsPlotTool):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    def activate(self) -> None: ...
    def plotReleaseEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...
    def plotMoveEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...


class QgsPlotToolTemporaryKeyZoom(QgsPlotToolZoom):

    def __init__(self, canvas: typing.Optional[QgsPlotCanvas]) -> None: ...

    def activate(self) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def plotReleaseEvent(self, event: typing.Optional[QgsPlotMouseEvent]) -> None: ...


class QgsPointCloudRendererWidget(QgsPanelWidget):

    def __init__(self, layer: typing.Optional[_core.QgsPointCloudLayer], style: typing.Optional[_core.QgsStyle]) -> None: ...

    def layer(self) -> typing.Optional[_core.QgsPointCloudLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsPointCloudRenderer]: ...


class QgsPointCloudRendererPropertiesWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsPointCloudLayer], style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def apply(self) -> None: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def syncToLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsAggregateMappingModel(QtCore.QAbstractTableModel):

    class ColumnDataIndex(enum.IntEnum):
        SourceExpression = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        Aggregate = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        Delimiter = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        DestinationName = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        DestinationType = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        DestinationLength = ... # type: QgsAggregateMappingModel.ColumnDataIndex
        DestinationPrecision = ... # type: QgsAggregateMappingModel.ColumnDataIndex

    class Aggregate(PyQt6.sip.wrapper):

        aggregate = ... # type: typing.Optional[str]
        delimiter = ... # type: typing.Optional[str]
        field = ... # type: _core.QgsField
        source = ... # type: typing.Optional[str]

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsAggregateMappingModel.Aggregate') -> None: ...

    def __init__(self, sourceFields: _core.QgsFields = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int) -> bool: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def setBaseExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def contextGenerator(self) -> typing.Optional[_core.QgsExpressionContextGenerator]: ...
    def setSourceFields(self, sourceFields: _core.QgsFields) -> None: ...
    def moveDown(self, index: QtCore.QModelIndex) -> bool: ...
    def moveUp(self, index: QtCore.QModelIndex) -> bool: ...
    def removeField(self, index: QtCore.QModelIndex) -> bool: ...
    def appendField(self, field: _core.QgsField, source: typing.Optional[str] = ..., aggregate: typing.Optional[str] = ...) -> None: ...
    def setMapping(self, mapping: collections.abc.Iterable['QgsAggregateMappingModel.Aggregate']) -> None: ...
    def mapping(self) -> list['QgsAggregateMappingModel.Aggregate']: ...
    def sourceFields(self) -> _core.QgsFields: ...


class QgsAggregateMappingWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., sourceFields: _core.QgsFields = ...) -> None: ...

    def moveSelectedFieldsDown(self) -> bool: ...
    def moveSelectedFieldsUp(self) -> bool: ...
    def removeSelectedFields(self) -> bool: ...
    def appendField(self, field: _core.QgsField, source: typing.Optional[str] = ..., aggregate: typing.Optional[str] = ...) -> None: ...
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def scrollTo(self, index: QtCore.QModelIndex) -> None: ...
    def sourceLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def setSourceLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def setSourceFields(self, sourceFields: _core.QgsFields) -> None: ...
    def selectionModel(self) -> typing.Optional[QtCore.QItemSelectionModel]: ...
    def setMapping(self, mapping: collections.abc.Iterable[QgsAggregateMappingModel.Aggregate]) -> None: ...
    def mapping(self) -> list[QgsAggregateMappingModel.Aggregate]: ...
    def model(self) -> typing.Optional[QgsAggregateMappingModel]: ...


class QgsProcessingAlgorithmConfigurationWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def registerProcessingContextGenerator(self, generator: typing.Optional['QgsProcessingContextGenerator']) -> None: ...
    def algorithm(self) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def setAlgorithm(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> None: ...
    def widgetContext(self) -> 'QgsProcessingParameterWidgetContext': ...
    def setWidgetContext(self, context: 'QgsProcessingParameterWidgetContext') -> None: ...
    def setConfiguration(self, configuration: dict[typing.Optional[str], typing.Any]) -> None: ...
    def configuration(self) -> dict[str, typing.Any]: ...


class QgsProcessingAlgorithmConfigurationWidgetFactory(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingAlgorithmConfigurationWidgetFactory') -> None: ...

    def canCreateFor(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> bool: ...
    def create(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> typing.Optional[QgsProcessingAlgorithmConfigurationWidget]: ...


class QgsProcessingParametersGenerator(PyQt6.sip.wrapper):

    class Flag(enum.IntFlag):
        SkipDefaultValueParameters = ... # type: QgsProcessingParametersGenerator.Flag
        SkipValidation = ... # type: QgsProcessingParametersGenerator.Flag

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingParametersGenerator') -> None: ...

    def createProcessingParameters(self, flags: 'QgsProcessingParametersGenerator.Flag' = ...) -> dict[str, typing.Any]: ...


class QgsProcessingContextGenerator(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingContextGenerator') -> None: ...

    def processingContext(self) -> typing.Optional[_core.QgsProcessingContext]: ...


class QgsProcessingAlgorithmDialogBase(QtWidgets.QDialog, QgsProcessingParametersGenerator, QgsProcessingContextGenerator):

    class DialogMode(enum.IntEnum):
        Single = ... # type: QgsProcessingAlgorithmDialogBase.DialogMode
        Batch = ... # type: QgsProcessingAlgorithmDialogBase.DialogMode

    class LogFormat(enum.IntEnum):
        FormatPlainText = ... # type: QgsProcessingAlgorithmDialogBase.LogFormat
        FormatHtml = ... # type: QgsProcessingAlgorithmDialogBase.LogFormat

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ..., mode: 'QgsProcessingAlgorithmDialogBase.DialogMode' = ...) -> None: ...

    def algExecuted(self, successful: bool, results: dict[typing.Optional[str], typing.Any]) -> None: ...
    def runAlgorithm(self) -> None: ...
    def finished(self, successful: bool, result: dict[typing.Optional[str], typing.Any], context: _core.QgsProcessingContext, feedback: typing.Optional[_core.QgsProcessingFeedback]) -> None: ...
    algorithmFinished: typing.ClassVar[QtCore.pyqtSignal]
    algorithmAboutToRun: typing.ClassVar[QtCore.pyqtSignal]
    def applyContextOverrides(self, context: typing.Optional[_core.QgsProcessingContext]) -> None: ...
    def isFinalized(self) -> bool: ...
    @staticmethod
    def formatStringForLog(string: typing.Optional[str]) -> str: ...
    def setCurrentTask(self, task: typing.Optional[_core.QgsProcessingAlgRunnerTask]) -> None: ...
    def hideShortHelp(self) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def blockAdditionalControlsWhileRunning(self) -> None: ...
    def blockControlsWhileRunning(self) -> None: ...
    def updateRunButtonVisibility(self) -> None: ...
    def resetAdditionalGui(self) -> None: ...
    def resetGui(self) -> None: ...
    def setInfo(self, message: typing.Optional[str], isError: bool = ..., escapeHtml: bool = ..., isWarning: bool = ...) -> None: ...
    def setResults(self, results: dict[typing.Optional[str], typing.Any]) -> None: ...
    def setExecutedAnyResult(self, executedAnyResult: bool) -> None: ...
    def setExecuted(self, executed: bool) -> None: ...
    def clearProgress(self) -> None: ...
    def tabWidget(self) -> typing.Optional[QtWidgets.QTabWidget]: ...
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def changeParametersButton(self) -> typing.Optional[QtWidgets.QPushButton]: ...
    def cancelButton(self) -> typing.Optional[QtWidgets.QPushButton]: ...
    def runButton(self) -> typing.Optional[QtWidgets.QPushButton]: ...
    def closeEvent(self, e: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    def reject(self) -> None: ...
    def showParameters(self) -> None: ...
    def copyLogToClipboard(self) -> None: ...
    def saveLog(self) -> None: ...
    def clearLog(self) -> None: ...
    def createProgressDialog(self) -> typing.Optional[QtWidgets.QDialog]: ...
    def pushConsoleInfo(self, info: typing.Optional[str]) -> None: ...
    def setProgressText(self, text: typing.Optional[str]) -> None: ...
    def setPercentage(self, percent: float) -> None: ...
    def pushCommandInfo(self, info: typing.Optional[str]) -> None: ...
    def pushDebugInfo(self, message: typing.Optional[str]) -> None: ...
    def pushFormattedMessage(self, html: typing.Optional[str]) -> None: ...
    def pushInfo(self, info: typing.Optional[str]) -> None: ...
    def pushWarning(self, warning: typing.Optional[str]) -> None: ...
    def reportError(self, error: typing.Optional[str], fatalError: bool) -> None: ...
    def setParameters(self, values: dict[typing.Optional[str], typing.Any]) -> None: ...
    def setLogLevel(self, level: _core.Qgis.ProcessingLogLevel) -> None: ...
    def logLevel(self) -> _core.Qgis.ProcessingLogLevel: ...
    def saveLogToFile(self, path: typing.Optional[str], format: 'QgsProcessingAlgorithmDialogBase.LogFormat' = ...) -> None: ...
    def createFeedback(self) -> typing.Optional[_core.QgsProcessingFeedback]: ...
    def results(self) -> dict[str, typing.Any]: ...
    def wasExecuted(self) -> bool: ...
    def showLog(self) -> None: ...
    def mainWidget(self) -> typing.Optional[QgsPanelWidget]: ...
    def setMainWidget(self, widget: typing.Optional[QgsPanelWidget]) -> None: ...
    def algorithm(self) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def setAlgorithm(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> None: ...


class QgsProcessingBatchAlgorithmDialogBase(QgsProcessingAlgorithmDialogBase):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def createSummaryTable(self, results: collections.abc.Iterable[dict[str, typing.Any]], errors: collections.abc.Iterable[dict[str, typing.Any]]) -> None: ...
    def loadHtmlResults(self, results: dict[typing.Optional[str], typing.Any], index: int) -> None: ...
    def handleAlgorithmResults(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm], context: _core.QgsProcessingContext, feedback: typing.Optional[_core.QgsProcessingFeedback], parameters: dict[typing.Optional[str], typing.Any]) -> None: ...
    def createContext(self, feedback: typing.Optional[_core.QgsProcessingFeedback]) -> typing.Optional[_core.QgsProcessingContext]: ...
    def execute(self, parameters: collections.abc.Iterable[dict[str, typing.Any]]) -> None: ...
    def isFinalized(self) -> bool: ...
    def algExecuted(self, successful: bool, results: dict[typing.Optional[str], typing.Any]) -> None: ...
    def runAsSingle(self) -> None: ...
    def blockAdditionalControlsWhileRunning(self) -> None: ...
    def resetAdditionalGui(self) -> None: ...


class QgsProcessingFavoriteAlgorithmManager(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def isFavorite(self, id: typing.Optional[str]) -> bool: ...
    def clear(self) -> None: ...
    def remove(self, id: typing.Optional[str]) -> None: ...
    def add(self, id: typing.Optional[str]) -> None: ...
    def favoriteAlgorithmIds(self) -> list[str]: ...


class QgsProcessingGui(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingGui') -> None: ...


class QgsProcessingGuiRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingGuiRegistry') -> None: ...

    def createParameterDefinitionWidget(self, type: typing.Optional[str], context: _core.QgsProcessingContext, widgetContext: 'QgsProcessingParameterWidgetContext', definition: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., algorithm: typing.Optional[_core.QgsProcessingAlgorithm] = ...) -> typing.Optional['QgsProcessingAbstractParameterDefinitionWidget']: ...
    def createModelerParameterWidget(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], childId: typing.Optional[str], parameter: typing.Optional[_core.QgsProcessingParameterDefinition], context: _core.QgsProcessingContext) -> typing.Optional['QgsProcessingModelerParameterWidget']: ...
    def createParameterWidgetWrapper(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition], type: _core.Qgis.ProcessingMode) -> typing.Optional['QgsAbstractProcessingParameterWidgetWrapper']: ...
    def removeParameterWidgetFactory(self, factory: typing.Optional['QgsProcessingParameterWidgetFactoryInterface']) -> None: ...
    def addParameterWidgetFactory(self, factory: typing.Optional['QgsProcessingParameterWidgetFactoryInterface']) -> bool: ...
    def algorithmConfigurationWidget(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> typing.Optional[QgsProcessingAlgorithmConfigurationWidget]: ...
    def removeAlgorithmConfigurationWidgetFactory(self, factory: typing.Optional[QgsProcessingAlgorithmConfigurationWidgetFactory]) -> None: ...
    def addAlgorithmConfigurationWidgetFactory(self, factory: typing.Optional[QgsProcessingAlgorithmConfigurationWidgetFactory]) -> None: ...


class QgsProcessingGuiUtils(PyQt6.sip.wrapper):

    class ResultLayerDetails(PyQt6.sip.wrapper):

        destinationProject = ... # type: _core.QgsProject
        layer = ... # type: _core.QgsMapLayer
        sortKey = ... # type: int
        targetLayerTreeGroup = ... # type: _core.QgsLayerTreeGroup

        @typing.overload
        def __init__(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsProcessingGuiUtils.ResultLayerDetails') -> None: ...

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingGuiUtils') -> None: ...

    @staticmethod
    def addResultLayers(layers: collections.abc.Iterable['QgsProcessingGuiUtils.ResultLayerDetails'], context: _core.QgsProcessingContext, view: typing.Optional[QgsLayerTreeView] = ...) -> None: ...
    @staticmethod
    def layerTreeResultsGroup(layerDetails: _core.QgsProcessingContext.LayerDetails, context: _core.QgsProcessingContext) -> typing.Optional[_core.QgsLayerTreeGroup]: ...
    @staticmethod
    def configureResultLayerTreeLayer(layerTreeLayer: typing.Optional[_core.QgsLayerTreeLayer]) -> None: ...


class QgsProcessingHistoryProvider(QgsAbstractHistoryProvider):

    def __init__(self) -> None: ...

    createTest: typing.ClassVar[QtCore.pyqtSignal]
    executePython: typing.ClassVar[QtCore.pyqtSignal]
    def updateNodeForEntry(self, node: typing.Optional[QgsHistoryEntryNode], entry: QgsHistoryEntry, context: QgsHistoryWidgetContext) -> None: ...
    def createNodeForEntry(self, entry: QgsHistoryEntry, context: QgsHistoryWidgetContext) -> typing.Optional[QgsHistoryEntryNode]: ...
    def portOldLog(self) -> None: ...
    def id(self) -> str: ...


class QgsProcessingHistoryWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def saveLog(self) -> None: ...
    def openHelp(self) -> None: ...
    def clearHistory(self) -> None: ...


class QgsProcessingHistoryDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsProcessingMapLayerComboBox(QtWidgets.QWidget):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition], type: _core.Qgis.ProcessingMode = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, event: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    valueChanged: typing.ClassVar[QtCore.pyqtSignal]
    def isEditable(self) -> bool: ...
    def setEditable(self, editable: bool) -> None: ...
    def setWidgetContext(self, context: 'QgsProcessingParameterWidgetContext') -> None: ...
    def value(self) -> typing.Any: ...
    def setValue(self, value: typing.Any, context: _core.QgsProcessingContext) -> None: ...
    def currentText(self) -> str: ...
    def currentLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...


class QgsProcessingModelerParameterWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], childId: typing.Optional[str], parameter: typing.Optional[_core.QgsProcessingParameterDefinition], context: _core.QgsProcessingContext, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setSourceType(self, type: _core.Qgis.ProcessingModelChildParameterSource) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setDialog(self, dialog: typing.Optional[QtWidgets.QDialog]) -> None: ...
    def value(self) -> typing.Any: ...
    def modelOutputName(self) -> str: ...
    def isModelOutput(self) -> bool: ...
    def setToModelOutput(self, value: typing.Optional[str]) -> None: ...
    @typing.overload
    def setWidgetValue(self, value: _core.QgsProcessingModelChildParameterSource) -> None: ...
    @typing.overload
    def setWidgetValue(self, values: collections.abc.Iterable[_core.QgsProcessingModelChildParameterSource]) -> None: ...
    def createLabel(self) -> typing.Optional[QtWidgets.QLabel]: ...
    def parameterDefinition(self) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...
    def setExpressionHelpText(self, text: typing.Optional[str]) -> None: ...
    def populateSources(self, compatibleParameterTypes: collections.abc.Iterable[typing.Optional[str]], compatibleOutputTypes: collections.abc.Iterable[typing.Optional[str]], compatibleDataTypes: collections.abc.Iterable[int]) -> None: ...
    def registerProcessingContextGenerator(self, generator: typing.Optional[QgsProcessingContextGenerator]) -> None: ...
    def setWidgetContext(self, context: 'QgsProcessingParameterWidgetContext') -> None: ...


class QgsProcessingMultipleSelectionPanelWidget(QgsPanelWidget):

    def __init__(self, availableOptions: collections.abc.Iterable[typing.Any] = ..., selectedOptions: collections.abc.Iterable[typing.Any] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def listView(self) -> typing.Optional[QtWidgets.QListView]: ...
    def addOption(self, value: typing.Any, title: typing.Optional[str], selected: bool, updateExistingTitle: bool = ...) -> None: ...
    selectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    acceptClicked: typing.ClassVar[QtCore.pyqtSignal]
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def selectedOptions(self) -> list[typing.Any]: ...
    def setValueFormatter(self, a0: typing.Callable[..., None]) -> None: ...


class QgsProcessingMultipleSelectionDialog(QtWidgets.QDialog):

    def __init__(self, availableOptions: collections.abc.Iterable[typing.Any] = ..., selectedOptions: collections.abc.Iterable[typing.Any] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def selectedOptions(self) -> list[typing.Any]: ...
    def setValueFormatter(self, a0: typing.Callable[..., None]) -> None: ...


class QgsProcessingMultipleInputPanelWidget(QgsProcessingMultipleSelectionPanelWidget):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingParameterMultipleLayers], selectedOptions: collections.abc.Iterable[typing.Any], modelSources: collections.abc.Iterable[_core.QgsProcessingModelChildParameterSource], model: typing.Optional[_core.QgsProcessingModelAlgorithm] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...


class QgsProcessingMultipleInputDialog(QtWidgets.QDialog):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingParameterMultipleLayers], selectedOptions: collections.abc.Iterable[typing.Any], modelSources: collections.abc.Iterable[_core.QgsProcessingModelChildParameterSource], model: typing.Optional[_core.QgsProcessingModelAlgorithm] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def selectedOptions(self) -> list[typing.Any]: ...


class QgsProcessingLayerOutputDestinationWidget(QtWidgets.QWidget):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingDestinationParameter], defaultSelection: bool, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, event: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    destinationChanged: typing.ClassVar[QtCore.pyqtSignal]
    skipOutputChanged: typing.ClassVar[QtCore.pyqtSignal]
    def openAfterRunning(self) -> bool: ...
    def addOpenAfterRunningOption(self) -> None: ...
    def registerProcessingParametersGenerator(self, generator: typing.Optional[QgsProcessingParametersGenerator]) -> None: ...
    def setContext(self, context: typing.Optional[_core.QgsProcessingContext]) -> None: ...
    def setWidgetContext(self, context: 'QgsProcessingParameterWidgetContext') -> None: ...
    def value(self) -> typing.Any: ...
    def setValue(self, value: typing.Any) -> None: ...
    def outputIsSkipped(self) -> bool: ...


class QgsProcessingAbstractParameterDefinitionWidget(QtWidgets.QWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, context: _core.QgsProcessingContext, widgetContext: 'QgsProcessingParameterWidgetContext', definition: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., algorithm: typing.Optional[_core.QgsProcessingAlgorithm] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def registerProcessingContextGenerator(self, generator: typing.Optional[QgsProcessingContextGenerator]) -> None: ...
    def widgetContext(self) -> 'QgsProcessingParameterWidgetContext': ...
    def setWidgetContext(self, context: 'QgsProcessingParameterWidgetContext') -> None: ...
    def createParameter(self, name: typing.Optional[str], description: typing.Optional[str], flags: _core.Qgis.ProcessingParameterFlag) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...


class QgsProcessingParameterDefinitionWidget(QtWidgets.QWidget):

    def __init__(self, type: typing.Optional[str], context: _core.QgsProcessingContext, widgetContext: 'QgsProcessingParameterWidgetContext', definition: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., algorithm: typing.Optional[_core.QgsProcessingAlgorithm] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def registerProcessingContextGenerator(self, generator: typing.Optional[QgsProcessingContextGenerator]) -> None: ...
    def createParameter(self, name: typing.Optional[str] = ...) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...


class QgsProcessingParameterDefinitionDialog(QtWidgets.QDialog):

    def __init__(self, type: typing.Optional[str], context: _core.QgsProcessingContext, widgetContext: 'QgsProcessingParameterWidgetContext', definition: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., algorithm: typing.Optional[_core.QgsProcessingAlgorithm] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def accept(self) -> None: ...
    def registerProcessingContextGenerator(self, generator: typing.Optional[QgsProcessingContextGenerator]) -> None: ...
    def switchToCommentTab(self) -> None: ...
    def commentColor(self) -> QtGui.QColor: ...
    def setCommentColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def comments(self) -> str: ...
    def setComments(self, comments: typing.Optional[str]) -> None: ...
    def createParameter(self, name: typing.Optional[str] = ...) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...


class QgsProcessingParametersWidget(QgsPanelWidget, QgsProcessingParametersGenerator):

    def __init__(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def addExtraWidget(self, widget: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def addOutputWidget(self, widget: typing.Optional[QtWidgets.QWidget], stretch: int = ...) -> None: ...
    def addOutputLabel(self, label: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def addParameterLabel(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition], label: typing.Optional[QtWidgets.QWidget]) -> None: ...
    def addParameterWidget(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition], widget: typing.Optional[QtWidgets.QWidget], stretch: int = ...) -> None: ...
    def initWidgets(self) -> None: ...
    def algorithm(self) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...


class QgsProcessingRecentAlgorithmLog(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def push(self, id: typing.Optional[str]) -> None: ...
    def recentAlgorithmIds(self) -> list[str]: ...


class QgsProcessingToolboxModelNode(QtCore.QObject):

    class NodeType(enum.IntEnum):
        Provider = ... # type: QgsProcessingToolboxModelNode.NodeType
        Group = ... # type: QgsProcessingToolboxModelNode.NodeType
        Algorithm = ... # type: QgsProcessingToolboxModelNode.NodeType
        Recent = ... # type: QgsProcessingToolboxModelNode.NodeType
        Parameter = ... # type: QgsProcessingToolboxModelNode.NodeType
        ParameterGroup = ... # type: QgsProcessingToolboxModelNode.NodeType
        Favorite = ... # type: QgsProcessingToolboxModelNode.NodeType

    def __init__(self) -> None: ...

    def deleteChildren(self) -> None: ...
    def addChildNode(self, node: typing.Optional['QgsProcessingToolboxModelNode']) -> None: ...
    def getChildGroupNode(self, id: typing.Optional[str]) -> typing.Optional['QgsProcessingToolboxModelGroupNode']: ...
    def takeChild(self, node: typing.Optional['QgsProcessingToolboxModelNode']) -> typing.Optional['QgsProcessingToolboxModelNode']: ...
    def children(self) -> list['QgsProcessingToolboxModelNode']: ...
    def parent(self) -> typing.Optional['QgsProcessingToolboxModelNode']: ...
    def nodeType(self) -> 'QgsProcessingToolboxModelNode.NodeType': ...


class QgsProcessingToolboxModelRecentNode(QgsProcessingToolboxModelNode):

    def __init__(self) -> None: ...

    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelFavoriteNode(QgsProcessingToolboxModelNode):

    def __init__(self) -> None: ...

    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelParameterGroupNode(QgsProcessingToolboxModelNode):

    def __init__(self) -> None: ...

    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelProviderNode(QgsProcessingToolboxModelNode):

    def __init__(self, provider: typing.Optional[_core.QgsProcessingProvider]) -> None: ...

    def providerId(self) -> str: ...
    def provider(self) -> typing.Optional[_core.QgsProcessingProvider]: ...
    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelGroupNode(QgsProcessingToolboxModelNode):

    def __init__(self, id: typing.Optional[str], name: typing.Optional[str]) -> None: ...

    def name(self) -> str: ...
    def id(self) -> str: ...
    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelAlgorithmNode(QgsProcessingToolboxModelNode):

    def __init__(self, algorithm: typing.Optional[_core.QgsProcessingAlgorithm]) -> None: ...

    def algorithm(self) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModelParameterNode(QgsProcessingToolboxModelNode):

    def __init__(self, paramType: typing.Optional[_core.QgsProcessingParameterType]) -> None: ...

    def parameterType(self) -> typing.Optional[_core.QgsProcessingParameterType]: ...
    def nodeType(self) -> QgsProcessingToolboxModelNode.NodeType: ...


class QgsProcessingToolboxModel(QtCore.QAbstractItemModel):

    class CustomRole(enum.IntEnum):
        NodeType = ... # type: QgsProcessingToolboxModel.CustomRole
        AlgorithmFlags = ... # type: QgsProcessingToolboxModel.CustomRole
        AlgorithmId = ... # type: QgsProcessingToolboxModel.CustomRole
        AlgorithmName = ... # type: QgsProcessingToolboxModel.CustomRole
        AlgorithmShortDescription = ... # type: QgsProcessingToolboxModel.CustomRole
        AlgorithmTags = ... # type: QgsProcessingToolboxModel.CustomRole
        ProviderFlags = ... # type: QgsProcessingToolboxModel.CustomRole
        ParameterTypeId = ... # type: QgsProcessingToolboxModel.CustomRole

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., registry: typing.Optional[_core.QgsProcessingRegistry] = ..., recentLog: typing.Optional[QgsProcessingRecentAlgorithmLog] = ..., favoriteManager: typing.Optional[QgsProcessingFavoriteAlgorithmManager] = ...) -> None: ...

    favoriteAlgorithmAdded: typing.ClassVar[QtCore.pyqtSignal]
    recentAlgorithmAdded: typing.ClassVar[QtCore.pyqtSignal]
    def indexOfParentTreeNode(self, parentNode: typing.Optional[QgsProcessingToolboxModelNode]) -> QtCore.QModelIndex: ...
    def indexForProvider(self, providerId: typing.Optional[str]) -> QtCore.QModelIndex: ...
    def isParameter(self, index: QtCore.QModelIndex) -> bool: ...
    def parameterTypeForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsProcessingParameterType]: ...
    def isAlgorithm(self, index: QtCore.QModelIndex) -> bool: ...
    def algorithmForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def providerIdForIndex(self, index: QtCore.QModelIndex) -> str: ...
    def providerForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsProcessingProvider]: ...
    def node2index(self, node: typing.Optional[QgsProcessingToolboxModelNode]) -> QtCore.QModelIndex: ...
    def index2node(self, index: QtCore.QModelIndex) -> typing.Optional[QgsProcessingToolboxModelNode]: ...
    def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> typing.Optional[QtCore.QMimeData]: ...
    def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
    def columnCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...


class QgsProcessingToolboxProxyModel(QtCore.QSortFilterProxyModel):

    class Filter(enum.IntFlag):
        Toolbox = ... # type: QgsProcessingToolboxProxyModel.Filter
        Modeler = ... # type: QgsProcessingToolboxProxyModel.Filter
        InPlace = ... # type: QgsProcessingToolboxProxyModel.Filter
        ShowKnownIssues = ... # type: QgsProcessingToolboxProxyModel.Filter

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ..., registry: typing.Optional[_core.QgsProcessingRegistry] = ..., recentLog: typing.Optional[QgsProcessingRecentAlgorithmLog] = ..., favoriteManager: typing.Optional[QgsProcessingFavoriteAlgorithmManager] = ...) -> None: ...

    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def lessThan(self, left: QtCore.QModelIndex, right: QtCore.QModelIndex) -> bool: ...
    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    def filterString(self) -> str: ...
    def setFilterString(self, filter: typing.Optional[str]) -> None: ...
    def setInPlaceLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def filters(self) -> 'QgsProcessingToolboxProxyModel.Filter': ...
    def setFilters(self, filters: 'QgsProcessingToolboxProxyModel.Filter') -> None: ...
    def toolboxModel(self) -> typing.Optional[QgsProcessingToolboxModel]: ...


class QgsProcessingToolboxTreeView(QtWidgets.QTreeView):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., registry: typing.Optional[_core.QgsProcessingRegistry] = ..., recentLog: typing.Optional[QgsProcessingRecentAlgorithmLog] = ..., favoriteManager: typing.Optional[QgsProcessingFavoriteAlgorithmManager] = ...) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def reset(self) -> None: ...
    def setFilterString(self, filter: typing.Optional[str]) -> None: ...
    def setInPlaceLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def filters(self) -> QgsProcessingToolboxProxyModel.Filter: ...
    def setFilters(self, filters: QgsProcessingToolboxProxyModel.Filter) -> None: ...
    def selectedParameterType(self) -> typing.Optional[_core.QgsProcessingParameterType]: ...
    def parameterTypeForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsProcessingParameterType]: ...
    def selectedAlgorithm(self) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def algorithmForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsProcessingAlgorithm]: ...
    def setToolboxProxyModel(self, model: typing.Optional[QgsProcessingToolboxProxyModel]) -> None: ...
    def setRegistry(self, registry: typing.Optional[_core.QgsProcessingRegistry], recentLog: typing.Optional[QgsProcessingRecentAlgorithmLog] = ..., favoriteManager: typing.Optional[QgsProcessingFavoriteAlgorithmManager] = ...) -> None: ...


class QgsProcessingParameterWidgetContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingParameterWidgetContext') -> None: ...

    def setActiveLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def activeLayer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def setModelChildAlgorithmId(self, id: typing.Optional[str]) -> None: ...
    def modelChildAlgorithmId(self) -> str: ...
    def setModel(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm]) -> None: ...
    def model(self) -> typing.Optional[_core.QgsProcessingModelAlgorithm]: ...
    def project(self) -> typing.Optional[_core.QgsProject]: ...
    def setProject(self, project: typing.Optional[_core.QgsProject]) -> None: ...
    def browserModel(self) -> typing.Optional[QgsBrowserGuiModel]: ...
    def setBrowserModel(self, model: typing.Optional[QgsBrowserGuiModel]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsAbstractProcessingParameterWidgetWrapper(QtCore.QObject, _core.QgsExpressionContextGenerator):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., type: _core.Qgis.ProcessingMode = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def linkedVectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def widgetValue(self) -> typing.Any: ...
    def setWidgetValue(self, value: typing.Any, context: _core.QgsProcessingContext) -> None: ...
    def createLabel(self) -> typing.Optional[QtWidgets.QLabel]: ...
    def createWidget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    widgetValueHasChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDialog(self, dialog: typing.Optional[QtWidgets.QDialog]) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def stretch(self) -> int: ...
    def postInitialize(self, wrappers: collections.abc.Iterable['QgsAbstractProcessingParameterWidgetWrapper']) -> None: ...
    def registerProcessingParametersGenerator(self, generator: typing.Optional[QgsProcessingParametersGenerator]) -> None: ...
    def registerProcessingContextGenerator(self, generator: typing.Optional[QgsProcessingContextGenerator]) -> None: ...
    def customProperties(self) -> dict[str, typing.Any]: ...
    def parameterValue(self) -> typing.Any: ...
    def setParameterValue(self, value: typing.Any, context: _core.QgsProcessingContext) -> None: ...
    def parameterDefinition(self) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...
    def wrappedLabel(self) -> typing.Optional[QtWidgets.QLabel]: ...
    def wrappedWidget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrappedLabel(self) -> typing.Optional[QtWidgets.QLabel]: ...
    def createWrappedWidget(self, context: _core.QgsProcessingContext) -> typing.Optional[QtWidgets.QWidget]: ...
    def widgetContext(self) -> QgsProcessingParameterWidgetContext: ...
    def setWidgetContext(self, context: QgsProcessingParameterWidgetContext) -> None: ...
    def type(self) -> _core.Qgis.ProcessingMode: ...
    @property
    def param(self) -> typing.Optional[_core.QgsProcessingParameterDefinition]: ...


class QgsProcessingParameterWidgetFactoryInterface(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsProcessingParameterWidgetFactoryInterface') -> None: ...

    def defaultModelSource(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition]) -> _core.Qgis.ProcessingModelChildParameterSource: ...
    def modelerExpressionFormatString(self) -> str: ...
    def compatibleDataTypes(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition]) -> list[int]: ...
    def compatibleOutputTypes(self) -> list[str]: ...
    def compatibleParameterTypes(self) -> list[str]: ...
    def createParameterDefinitionWidget(self, context: _core.QgsProcessingContext, widgetContext: QgsProcessingParameterWidgetContext, definition: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., algorithm: typing.Optional[_core.QgsProcessingAlgorithm] = ...) -> typing.Optional[QgsProcessingAbstractParameterDefinitionWidget]: ...
    def createModelerWidgetWrapper(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], childId: typing.Optional[str], parameter: typing.Optional[_core.QgsProcessingParameterDefinition], context: _core.QgsProcessingContext) -> typing.Optional[QgsProcessingModelerParameterWidget]: ...
    def createWidgetWrapper(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition], type: _core.Qgis.ProcessingMode) -> typing.Optional[QgsAbstractProcessingParameterWidgetWrapper]: ...
    def parameterType(self) -> str: ...


class QgsProcessingHiddenWidgetWrapper(QgsAbstractProcessingParameterWidgetWrapper):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingParameterDefinition] = ..., type: _core.Qgis.ProcessingMode = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def createLabel(self) -> typing.Optional[QtWidgets.QLabel]: ...
    def createWidget(self) -> typing.Optional[QtWidgets.QWidget]: ...
    def setLinkedVectorLayer(self, layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...
    def linkedVectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def widgetValue(self) -> typing.Any: ...
    def setWidgetValue(self, value: typing.Any, context: _core.QgsProcessingContext) -> None: ...


class QgsModelArrowItem(QtCore.QObject, QtWidgets.QGraphicsPathItem):

    class Marker(enum.IntEnum):
        Circle = ... # type: QgsModelArrowItem.Marker
        ArrowHead = ... # type: QgsModelArrowItem.Marker
        NoMarker = ... # type: QgsModelArrowItem.Marker

    @typing.overload
    def __init__(self, startItem: typing.Optional['QgsModelComponentGraphicItem'], startEdge: QtCore.Qt.Edge, startIndex: int, startIsOutgoing: bool, startMarker: 'QgsModelArrowItem.Marker', endItem: typing.Optional['QgsModelComponentGraphicItem'], endEdge: QtCore.Qt.Edge, endIndex: int, endIsIncoming: bool, endMarker: 'QgsModelArrowItem.Marker') -> None: ...
    @typing.overload
    def __init__(self, startItem: typing.Optional['QgsModelComponentGraphicItem'], startEdge: QtCore.Qt.Edge, startIndex: int, startMarker: 'QgsModelArrowItem.Marker', endItem: typing.Optional['QgsModelComponentGraphicItem'], endMarker: 'QgsModelArrowItem.Marker') -> None: ...
    @typing.overload
    def __init__(self, startItem: typing.Optional['QgsModelComponentGraphicItem'], startMarker: 'QgsModelArrowItem.Marker', endItem: typing.Optional['QgsModelComponentGraphicItem'], endEdge: QtCore.Qt.Edge, endIndex: int, endMarker: 'QgsModelArrowItem.Marker') -> None: ...
    @typing.overload
    def __init__(self, startItem: typing.Optional['QgsModelComponentGraphicItem'], startMarker: 'QgsModelArrowItem.Marker', endItem: typing.Optional['QgsModelComponentGraphicItem'], endMarker: 'QgsModelArrowItem.Marker') -> None: ...

    def updatePath(self) -> None: ...
    def setPenStyle(self, style: QtCore.Qt.PenStyle) -> None: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsModelComponentGraphicItem(QtWidgets.QGraphicsObject):

    class Flag(enum.IntEnum):
        Unused = ... # type: QgsModelComponentGraphicItem.Flag

    class State(enum.IntEnum):
        Normal = ... # type: QgsModelComponentGraphicItem.State
        Selected = ... # type: QgsModelComponentGraphicItem.State
        Hover = ... # type: QgsModelComponentGraphicItem.State

    def __init__(self, component: typing.Optional[_core.QgsProcessingModelComponent], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def updateButtonPositions(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def iconPixmap(self) -> QtGui.QPixmap: ...
    def iconPicture(self) -> QtGui.QPicture: ...
    def titleAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
    def strokeStyle(self, state: 'QgsModelComponentGraphicItem.State') -> QtCore.Qt.PenStyle: ...
    def textColor(self, state: 'QgsModelComponentGraphicItem.State') -> QtGui.QColor: ...
    def strokeColor(self, state: 'QgsModelComponentGraphicItem.State') -> QtGui.QColor: ...
    def fillColor(self, state: 'QgsModelComponentGraphicItem.State') -> QtGui.QColor: ...
    def truncatedTextForItem(self, text: typing.Optional[str]) -> str: ...
    def editComponent(self) -> None: ...
    sizePositionChanged: typing.ClassVar[QtCore.pyqtSignal]
    updateArrowPaths: typing.ClassVar[QtCore.pyqtSignal]
    repaintArrows: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    aboutToChange: typing.ClassVar[QtCore.pyqtSignal]
    requestModelRepaint: typing.ClassVar[QtCore.pyqtSignal]
    def deleteComponent(self) -> None: ...
    def canDeleteComponent(self) -> bool: ...
    def editComment(self) -> None: ...
    def outSocketAt(self, index: int) -> typing.Optional['QgsModelDesignerSocketGraphicItem']: ...
    @typing.overload
    def calculateAutomaticLinkPoint(self, other: typing.Optional['QgsModelComponentGraphicItem']) -> typing.Tuple[QtCore.QPointF, QtCore.Qt.Edge]: ...
    @typing.overload
    def calculateAutomaticLinkPoint(self, point: QtCore.QPointF) -> typing.Tuple[QtCore.QPointF, QtCore.Qt.Edge]: ...
    def linkPoint(self, edge: QtCore.Qt.Edge, index: int, incoming: bool) -> QtCore.QPointF: ...
    def linkPointText(self, edge: QtCore.Qt.Edge, index: int) -> str: ...
    def linkPointCount(self, edge: QtCore.Qt.Edge) -> int: ...
    def state(self) -> 'QgsModelComponentGraphicItem.State': ...
    def setLabel(self, label: typing.Optional[str]) -> None: ...
    def label(self) -> str: ...
    def itemRect(self, storedRect: bool = ...) -> QtCore.QRectF: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    def contains(self, point: QtCore.QPointF) -> bool: ...
    def boundingRect(self) -> QtCore.QRectF: ...
    def itemChange(self, change: QtWidgets.QGraphicsItem.GraphicsItemChange, value: typing.Any) -> typing.Any: ...
    def hoverLeaveEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneHoverEvent]) -> None: ...
    def hoverMoveEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneHoverEvent]) -> None: ...
    def hoverEnterEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneHoverEvent]) -> None: ...
    def mouseDoubleClickEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneMouseEvent]) -> None: ...
    def setItemRect(self, rect: QtCore.QRectF) -> None: ...
    def previewItemMove(self, dx: float, dy: float) -> None: ...
    def moveComponentBy(self, dx: float, dy: float) -> None: ...
    def setFont(self, font: QtGui.QFont) -> None: ...
    def font(self) -> QtGui.QFont: ...
    def view(self) -> typing.Optional['QgsModelGraphicsView']: ...
    def model(self) -> typing.Optional[_core.QgsProcessingModelAlgorithm]: ...
    def component(self) -> typing.Optional[_core.QgsProcessingModelComponent]: ...
    def flags(self) -> 'QgsModelComponentGraphicItem.Flag': ...


class QgsModelParameterGraphicItem(QgsModelComponentGraphicItem):

    def __init__(self, parameter: typing.Optional[_core.QgsProcessingModelParameter], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def deleteComponent(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def linkPointText(self, edge: QtCore.Qt.Edge, index: int) -> str: ...
    def linkPointCount(self, edge: QtCore.Qt.Edge) -> int: ...
    def iconPicture(self) -> QtGui.QPicture: ...
    def textColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def strokeColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def fillColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def canDeleteComponent(self) -> bool: ...
    def contextMenuEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneContextMenuEvent]) -> None: ...


class QgsModelChildAlgorithmGraphicItem(QgsModelComponentGraphicItem):

    def __init__(self, child: typing.Optional[_core.QgsProcessingModelChildAlgorithm], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def deleteComponent(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def linkPointText(self, edge: QtCore.Qt.Edge, index: int) -> str: ...
    def linkPointCount(self, edge: QtCore.Qt.Edge) -> int: ...
    def iconPicture(self) -> QtGui.QPicture: ...
    def iconPixmap(self) -> QtGui.QPixmap: ...
    def textColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def strokeColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def fillColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    showLog: typing.ClassVar[QtCore.pyqtSignal]
    showPreviousResults: typing.ClassVar[QtCore.pyqtSignal]
    runSelected: typing.ClassVar[QtCore.pyqtSignal]
    runFromHere: typing.ClassVar[QtCore.pyqtSignal]
    def setResults(self, results: _core.QgsProcessingModelChildAlgorithmResult) -> None: ...
    def canDeleteComponent(self) -> bool: ...
    def contextMenuEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneContextMenuEvent]) -> None: ...


class QgsModelOutputGraphicItem(QgsModelComponentGraphicItem):

    def __init__(self, output: typing.Optional[_core.QgsProcessingModelOutput], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def deleteComponent(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def iconPicture(self) -> QtGui.QPicture: ...
    def textColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def strokeColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def fillColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def canDeleteComponent(self) -> bool: ...


class QgsModelCommentGraphicItem(QgsModelComponentGraphicItem):

    def __init__(self, comment: typing.Optional[_core.QgsProcessingModelComment], parentItem: typing.Optional[QgsModelComponentGraphicItem], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def editComponent(self) -> None: ...
    def deleteComponent(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def strokeStyle(self, state: QgsModelComponentGraphicItem.State) -> QtCore.Qt.PenStyle: ...
    def textColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def strokeColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def fillColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def parentComponentItem(self) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def canDeleteComponent(self) -> bool: ...
    def contextMenuEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneContextMenuEvent]) -> None: ...


class QgsModelGroupBoxGraphicItem(QgsModelComponentGraphicItem):

    def __init__(self, box: typing.Optional[_core.QgsProcessingModelGroupBox], model: typing.Optional[_core.QgsProcessingModelAlgorithm], parent: typing.Optional[QtWidgets.QGraphicsItem]) -> None: ...

    def editComponent(self) -> None: ...
    def deleteComponent(self) -> None: ...
    def updateStoredComponentPosition(self, pos: QtCore.QPointF, size: QtCore.QSizeF) -> None: ...
    def titleAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
    def strokeStyle(self, state: QgsModelComponentGraphicItem.State) -> QtCore.Qt.PenStyle: ...
    def textColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def strokeColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def fillColor(self, state: QgsModelComponentGraphicItem.State) -> QtGui.QColor: ...
    def canDeleteComponent(self) -> bool: ...
    def contextMenuEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneContextMenuEvent]) -> None: ...


class QgsModelDesignerDialog(QtWidgets.QMainWindow):

    class SaveAction(enum.Enum):
        SaveAsFile = ... # type: QgsModelDesignerDialog.SaveAction
        SaveInProject = ... # type: QgsModelDesignerDialog.SaveAction

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def setModelName(self, name: typing.Optional[str]) -> None: ...
    def setLastRunResult(self, result: _core.QgsProcessingModelResult) -> None: ...
    def checkForUnsavedChanges(self) -> bool: ...
    def validateSave(self, action: 'QgsModelDesignerDialog.SaveAction') -> bool: ...
    def setDirty(self, dirty: bool) -> None: ...
    def view(self) -> typing.Optional[QtWidgets.QGraphicsView]: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def actionRun(self) -> typing.Optional[QtGui.QAction]: ...
    def actionSaveInProject(self) -> typing.Optional[QtGui.QAction]: ...
    def actionOpen(self) -> typing.Optional[QtGui.QAction]: ...
    def toolbar(self) -> typing.Optional[QtWidgets.QToolBar]: ...
    def createExecutionDialog(self) -> typing.Optional[QgsProcessingAlgorithmDialogBase]: ...
    def saveModel(self, saveAs: bool = ...) -> bool: ...
    def exportAsScriptAlgorithm(self) -> None: ...
    def addInput(self, inputId: typing.Optional[str], pos: QtCore.QPointF) -> None: ...
    def addAlgorithm(self, algorithmId: typing.Optional[str], pos: QtCore.QPointF) -> None: ...
    def repaintModel(self, showControls: bool = ...) -> None: ...
    def activate(self) -> None: ...
    def setModelScene(self, scene: typing.Optional['QgsModelGraphicsScene']) -> None: ...
    def loadModel(self, path: typing.Optional[str]) -> None: ...
    def setModel(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm]) -> None: ...
    def model(self) -> typing.Optional[_core.QgsProcessingModelAlgorithm]: ...
    def endUndoCommand(self) -> None: ...
    def beginUndoCommand(self, text: typing.Optional[str], id: int = ...) -> None: ...
    def closeEvent(self, event: typing.Optional[QtGui.QCloseEvent]) -> None: ...


class QgsModelChildDependenciesWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], model: typing.Optional[_core.QgsProcessingModelAlgorithm], childId: typing.Optional[str]) -> None: ...

    def setValue(self, value: collections.abc.Iterable[_core.QgsProcessingModelChildDependency]) -> None: ...
    def value(self) -> list[_core.QgsProcessingModelChildDependency]: ...


class QgsModelDesignerFlatButtonGraphicItem(QtWidgets.QGraphicsObject):

    def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem], picture: QtGui.QPicture, position: QtCore.QPointF, size: QtCore.QSizeF = ...) -> None: ...

    def setPicture(self, picture: QtGui.QPicture) -> None: ...
    clicked: typing.ClassVar[QtCore.pyqtSignal]
    def view(self) -> typing.Optional['QgsModelGraphicsView']: ...
    def setPosition(self, position: QtCore.QPointF) -> None: ...
    def position(self) -> QtCore.QPointF: ...
    def mousePressEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneMouseEvent]) -> None: ...
    def hoverLeaveEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneHoverEvent]) -> None: ...
    def hoverEnterEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneHoverEvent]) -> None: ...
    def boundingRect(self) -> QtCore.QRectF: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsModelDesignerFoldButtonGraphicItem(QgsModelDesignerFlatButtonGraphicItem):

    def __init__(self, parent: typing.Optional[QtWidgets.QGraphicsItem], folded: bool, position: QtCore.QPointF, size: QtCore.QSizeF = ...) -> None: ...

    folded: typing.ClassVar[QtCore.pyqtSignal]
    def mousePressEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneMouseEvent]) -> None: ...


class QgsModelDesignerSocketGraphicItem(QgsModelDesignerFlatButtonGraphicItem):

    def __init__(self, parent: typing.Optional[QgsModelComponentGraphicItem], component: typing.Optional[_core.QgsProcessingModelComponent], index: int, position: QtCore.QPointF, edge: QtCore.Qt.Edge, size: QtCore.QSizeF = ...) -> None: ...

    def componentItem(self) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def component(self) -> typing.Optional[_core.QgsProcessingModelComponent]: ...
    def isInput(self) -> bool: ...
    def edge(self) -> QtCore.Qt.Edge: ...
    def index(self) -> int: ...
    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsModelGraphicsScene(QtWidgets.QGraphicsScene):

    class Flag(enum.IntEnum):
        FlagHideControls = ... # type: QgsModelGraphicsScene.Flag
        FlagHideComments = ... # type: QgsModelGraphicsScene.Flag

    class ZValues(enum.IntEnum):
        GroupBox = ... # type: QgsModelGraphicsScene.ZValues
        ArrowLink = ... # type: QgsModelGraphicsScene.ZValues
        ModelComponent = ... # type: QgsModelGraphicsScene.ZValues
        MouseHandles = ... # type: QgsModelGraphicsScene.ZValues
        RubberBand = ... # type: QgsModelGraphicsScene.ZValues
        ZSnapIndicator = ... # type: QgsModelGraphicsScene.ZValues

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def createGroupBoxGraphicItem(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], box: typing.Optional[_core.QgsProcessingModelGroupBox]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def createCommentGraphicItem(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], comment: typing.Optional[_core.QgsProcessingModelComment], parentItem: typing.Optional[QgsModelComponentGraphicItem]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def createOutputGraphicItem(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], output: typing.Optional[_core.QgsProcessingModelOutput]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def createChildAlgGraphicItem(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], child: typing.Optional[_core.QgsProcessingModelChildAlgorithm]) -> typing.Optional[QgsModelChildAlgorithmGraphicItem]: ...
    def createParameterGraphicItem(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], param: typing.Optional[_core.QgsProcessingModelParameter]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    showChildAlgorithmLog: typing.ClassVar[QtCore.pyqtSignal]
    showChildAlgorithmOutputs: typing.ClassVar[QtCore.pyqtSignal]
    runFromChild: typing.ClassVar[QtCore.pyqtSignal]
    runSelected: typing.ClassVar[QtCore.pyqtSignal]
    selectedItemChanged: typing.ClassVar[QtCore.pyqtSignal]
    componentChanged: typing.ClassVar[QtCore.pyqtSignal]
    componentAboutToChange: typing.ClassVar[QtCore.pyqtSignal]
    rebuildRequired: typing.ClassVar[QtCore.pyqtSignal]
    def requestRebuildRequired(self) -> None: ...
    def showWarning(self, shortMessage: typing.Optional[str], title: typing.Optional[str], longMessage: typing.Optional[str], level: _core.Qgis.MessageLevel = ...) -> None: ...
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setLastRunResult(self, result: _core.QgsProcessingModelResult) -> None: ...
    def setSelectedItem(self, item: typing.Optional[QgsModelComponentGraphicItem]) -> None: ...
    def deselectAll(self) -> None: ...
    def selectAll(self) -> None: ...
    def parameterItem(self, name: typing.Optional[str]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def childAlgorithmItem(self, childId: typing.Optional[str]) -> typing.Optional[QgsModelChildAlgorithmGraphicItem]: ...
    def groupBoxItem(self, uuid: typing.Optional[str]) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def componentItemAt(self, position: QtCore.QPointF) -> typing.Optional[QgsModelComponentGraphicItem]: ...
    def selectedComponentItems(self) -> list[QgsModelComponentGraphicItem]: ...
    def createItems(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm], context: _core.QgsProcessingContext) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtWidgets.QGraphicsSceneMouseEvent]) -> None: ...
    def flags(self) -> 'QgsModelGraphicsScene.Flag': ...
    def setFlag(self, flag: 'QgsModelGraphicsScene.Flag', on: bool = ...) -> None: ...
    def setFlags(self, flags: 'QgsModelGraphicsScene.Flag') -> None: ...
    def setModel(self, model: typing.Optional[_core.QgsProcessingModelAlgorithm]) -> None: ...
    def model(self) -> typing.Optional[_core.QgsProcessingModelAlgorithm]: ...


class QgsModelGraphicsView(QtWidgets.QGraphicsView):

    class PasteMode(enum.IntEnum):
        PasteModeCursor = ... # type: QgsModelGraphicsView.PasteMode
        PasteModeCenter = ... # type: QgsModelGraphicsView.PasteMode
        PasteModeInPlace = ... # type: QgsModelGraphicsView.PasteMode

    class ClipboardOperation(enum.IntEnum):
        ClipboardCut = ... # type: QgsModelGraphicsView.ClipboardOperation
        ClipboardCopy = ... # type: QgsModelGraphicsView.ClipboardOperation

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    deleteSelectedItems: typing.ClassVar[QtCore.pyqtSignal]
    commandEnded: typing.ClassVar[QtCore.pyqtSignal]
    commandBegun: typing.ClassVar[QtCore.pyqtSignal]
    macroCommandEnded: typing.ClassVar[QtCore.pyqtSignal]
    macroCommandStarted: typing.ClassVar[QtCore.pyqtSignal]
    willBeDeleted: typing.ClassVar[QtCore.pyqtSignal]
    itemFocused: typing.ClassVar[QtCore.pyqtSignal]
    inputDropped: typing.ClassVar[QtCore.pyqtSignal]
    algorithmDropped: typing.ClassVar[QtCore.pyqtSignal]
    def snapSelected(self) -> None: ...
    def pasteItems(self, mode: 'QgsModelGraphicsView.PasteMode') -> None: ...
    def copyItems(self, items: collections.abc.Iterable[QgsModelComponentGraphicItem], operation: 'QgsModelGraphicsView.ClipboardOperation') -> None: ...
    def copySelectedItems(self, operation: 'QgsModelGraphicsView.ClipboardOperation') -> None: ...
    def endCommand(self) -> None: ...
    def beginCommand(self, text: typing.Optional[str]) -> None: ...
    def endMacroCommand(self) -> None: ...
    def startMacroCommand(self, text: typing.Optional[str]) -> None: ...
    def modelScene(self) -> typing.Optional[QgsModelGraphicsScene]: ...
    def setModelScene(self, scene: typing.Optional[QgsModelGraphicsScene]) -> None: ...
    def keyReleaseEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def mouseDoubleClickEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseReleaseEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def wheelEvent(self, event: typing.Optional[QtGui.QWheelEvent]) -> None: ...
    def dragMoveEvent(self, event: typing.Optional[QtGui.QDragMoveEvent]) -> None: ...
    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...


class QgsModelViewSnapMarker(QtWidgets.QGraphicsRectItem):

    def __init__(self) -> None: ...

    def paint(self, painter: typing.Optional[QtGui.QPainter], option: typing.Optional[QtWidgets.QStyleOptionGraphicsItem], widget: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...


class QgsCoordinateBoundsPreviewMapWidget(QgsMapCanvas):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPreviewRect(self, rect: _core.QgsRectangle) -> None: ...
    def canvasRect(self) -> _core.QgsRectangle: ...
    def setCanvasRect(self, rect: _core.QgsRectangle) -> None: ...


class QgsCoordinateOperationWidget(QtWidgets.QWidget):

    class OperationDetails(PyQt6.sip.wrapper):

        allowFallback = ... # type: bool
        destinationTransformId = ... # type: int
        isAvailable = ... # type: bool
        proj = ... # type: typing.Optional[str]
        sourceTransformId = ... # type: int

        @typing.overload
        def __init__(self) -> None: ...
        @typing.overload
        def __init__(self, a0: 'QgsCoordinateOperationWidget.OperationDetails') -> None: ...

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    operationDoubleClicked: typing.ClassVar[QtCore.pyqtSignal]
    operationChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setShowFallbackOption(self, visible: bool) -> None: ...
    def setSelectedOperationUsingContext(self, context: _core.QgsCoordinateTransformContext) -> None: ...
    def setSelectedOperation(self, operation: 'QgsCoordinateOperationWidget.OperationDetails') -> None: ...
    def selectedOperation(self) -> 'QgsCoordinateOperationWidget.OperationDetails': ...
    def defaultOperation(self) -> 'QgsCoordinateOperationWidget.OperationDetails': ...
    def availableOperations(self) -> list['QgsCoordinateOperationWidget.OperationDetails']: ...
    def hasSelection(self) -> bool: ...
    def makeDefaultSelected(self) -> bool: ...
    def setShowMakeDefault(self, show: bool) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setDestinationCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setSourceCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def destinationCrs(self) -> _core.QgsCoordinateReferenceSystem: ...
    def sourceCrs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsCoordinateReferenceSystemModel(QtCore.QAbstractItemModel):

    class CustomRole(enum.IntEnum):
        NodeType = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Name = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        AuthId = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Deprecated = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Type = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        GroupId = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Wkt = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Proj = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Group = ... # type: QgsCoordinateReferenceSystemModel.CustomRole
        Projection = ... # type: QgsCoordinateReferenceSystemModel.CustomRole

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def authIdToIndex(self, authId: typing.Optional[str]) -> QtCore.QModelIndex: ...
    def addCustomCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> QtCore.QModelIndex: ...
    def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
    def columnCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...


class QgsCoordinateReferenceSystemProxyModel(QtCore.QSortFilterProxyModel):

    class Filter(enum.IntEnum):
        FilterHorizontal = ... # type: QgsCoordinateReferenceSystemProxyModel.Filter
        FilterVertical = ... # type: QgsCoordinateReferenceSystemProxyModel.Filter
        FilterCompound = ... # type: QgsCoordinateReferenceSystemProxyModel.Filter

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def lessThan(self, left: QtCore.QModelIndex, right: QtCore.QModelIndex) -> bool: ...
    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    def filterDeprecated(self) -> bool: ...
    def setFilterDeprecated(self, filter: bool) -> None: ...
    def filterAuthIds(self) -> set[str]: ...
    def setFilterAuthIds(self, filter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def filterString(self) -> str: ...
    def setFilterString(self, filter: typing.Optional[str]) -> None: ...
    def filters(self) -> 'QgsCoordinateReferenceSystemProxyModel.Filter': ...
    def setFilters(self, filters: 'QgsCoordinateReferenceSystemProxyModel.Filter') -> None: ...
    def coordinateReferenceSystemModel(self) -> typing.Optional[QgsCoordinateReferenceSystemModel]: ...


class QgsCrsDefinitionWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    crsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDefinitionString(self, definition: typing.Optional[str]) -> None: ...
    def definitionString(self) -> str: ...
    def setFormat(self, format: _core.Qgis.CrsDefinitionFormat) -> None: ...
    def format(self) -> _core.Qgis.CrsDefinitionFormat: ...
    @typing.overload
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    @typing.overload
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem, nativeFormat: _core.Qgis.CrsDefinitionFormat) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsCrsSelectionWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., filters: QgsCoordinateReferenceSystemProxyModel.Filter = ...) -> None: ...

    hasValidSelectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    crsDoubleClicked: typing.ClassVar[QtCore.pyqtSignal]
    crsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setOgcWmsCrsFilter(self, crsFilter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filter) -> None: ...
    def filters(self) -> QgsCoordinateReferenceSystemProxyModel.Filter: ...
    def hasValidSelection(self) -> bool: ...
    def setNotSetText(self, text: typing.Optional[str], description: typing.Optional[str] = ...) -> None: ...
    def showNoCrs(self) -> bool: ...
    def setShowNoCrs(self, show: bool) -> None: ...
    def setMessage(self, message: typing.Optional[str]) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsProjectionSelectionDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., filters: QgsCoordinateReferenceSystemProxyModel.Filter = ...) -> None: ...

    def setOgcWmsCrsFilter(self, crsFilter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filter) -> None: ...
    def filters(self) -> QgsCoordinateReferenceSystemProxyModel.Filter: ...
    def hasValidSelection(self) -> bool: ...
    def setRequireValidSelection(self) -> None: ...
    def setNotSetText(self, text: typing.Optional[str], description: typing.Optional[str] = ...) -> None: ...
    def showNoProjection(self) -> bool: ...
    def setShowNoProjection(self, show: bool) -> None: ...
    def showNoCrsForLayerMessage(self) -> None: ...
    def setMessage(self, message: typing.Optional[str]) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsProjectionSelectionTreeWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., filters: QgsCoordinateReferenceSystemProxyModel.Filter = ...) -> None: ...

    def eventFilter(self, obj: typing.Optional[QtCore.QObject], ev: typing.Optional[QtCore.QEvent]) -> bool: ...
    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    hasValidSelectionChanged: typing.ClassVar[QtCore.pyqtSignal]
    projectionDoubleClicked: typing.ClassVar[QtCore.pyqtSignal]
    initialized: typing.ClassVar[QtCore.pyqtSignal]
    crsSelected: typing.ClassVar[QtCore.pyqtSignal]
    def clearRecentCrs(self) -> None: ...
    @deprecated("""""")
    def pushProjectionToFront(self) -> None: ...
    def setOgcWmsCrsFilter(self, crsFilter: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setPreviewRect(self, rect: _core.QgsRectangle) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filter) -> None: ...
    def filters(self) -> QgsCoordinateReferenceSystemProxyModel.Filter: ...
    def previewRect(self) -> _core.QgsRectangle: ...
    def hasValidSelection(self) -> bool: ...
    def showBoundsMap(self) -> bool: ...
    def setNotSetText(self, text: typing.Optional[str]) -> None: ...
    def showNoProjection(self) -> bool: ...
    def setShowBoundsMap(self, show: bool) -> None: ...
    def setShowNoProjection(self, show: bool) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsProjectionSelectionWidget(QtWidgets.QWidget):

    class CrsOption(enum.IntEnum):
        Invalid = ... # type: QgsProjectionSelectionWidget.CrsOption
        LayerCrs = ... # type: QgsProjectionSelectionWidget.CrsOption
        ProjectCrs = ... # type: QgsProjectionSelectionWidget.CrsOption
        CurrentCrs = ... # type: QgsProjectionSelectionWidget.CrsOption
        DefaultCrs = ... # type: QgsProjectionSelectionWidget.CrsOption
        RecentCrs = ... # type: QgsProjectionSelectionWidget.CrsOption
        CrsNotSet = ... # type: QgsProjectionSelectionWidget.CrsOption

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., filters: QgsCoordinateReferenceSystemProxyModel.Filter = ...) -> None: ...

    def dropEvent(self, event: typing.Optional[QtGui.QDropEvent]) -> None: ...
    def dragLeaveEvent(self, event: typing.Optional[QtGui.QDragLeaveEvent]) -> None: ...
    def dragEnterEvent(self, event: typing.Optional[QtGui.QDragEnterEvent]) -> None: ...
    def selectCrs(self) -> None: ...
    def setLayerCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    def setCrs(self, crs: _core.QgsCoordinateReferenceSystem) -> None: ...
    cleared: typing.ClassVar[QtCore.pyqtSignal]
    crsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filter) -> None: ...
    def filters(self) -> QgsCoordinateReferenceSystemProxyModel.Filter: ...
    def setFilter(self, crses: collections.abc.Iterable[_core.QgsCoordinateReferenceSystem]) -> None: ...
    def dialogTitle(self) -> str: ...
    def setDialogTitle(self, title: typing.Optional[str]) -> None: ...
    def sourceEnsemble(self) -> str: ...
    def setSourceEnsemble(self, ensemble: typing.Optional[str]) -> None: ...
    def setShowAccuracyWarnings(self, show: bool) -> None: ...
    def showAccuracyWarnings(self) -> bool: ...
    def setMessage(self, text: typing.Optional[str]) -> None: ...
    def setNotSetText(self, text: typing.Optional[str]) -> None: ...
    def optionVisible(self, option: 'QgsProjectionSelectionWidget.CrsOption') -> bool: ...
    def setOptionVisible(self, option: 'QgsProjectionSelectionWidget.CrsOption', visible: bool) -> None: ...
    def crs(self) -> _core.QgsCoordinateReferenceSystem: ...


class QgsRecentCoordinateReferenceSystemsModel(QtCore.QAbstractItemModel):

    class CustomRole(enum.IntEnum):
        Crs = ... # type: QgsRecentCoordinateReferenceSystemsModel.CustomRole
        AuthId = ... # type: QgsRecentCoordinateReferenceSystemsModel.CustomRole

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def crs(self, index: QtCore.QModelIndex) -> _core.QgsCoordinateReferenceSystem: ...
    def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
    def columnCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...


class QgsRecentCoordinateReferenceSystemsProxyModel(QtCore.QSortFilterProxyModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def crs(self, index: QtCore.QModelIndex) -> _core.QgsCoordinateReferenceSystem: ...
    def filterAcceptsRow(self, sourceRow: int, sourceParent: QtCore.QModelIndex) -> bool: ...
    def filters(self) -> QgsCoordinateReferenceSystemProxyModel.Filter: ...
    def setFilterString(self, filter: typing.Optional[str]) -> None: ...
    def setFilterDeprecated(self, filter: bool) -> None: ...
    def setFilters(self, filters: QgsCoordinateReferenceSystemProxyModel.Filter) -> None: ...
    def recentCoordinateReferenceSystemsModel(self) -> typing.Optional[QgsRecentCoordinateReferenceSystemsModel]: ...


class QgsAbstractDbSourceSelect(QgsAbstractDataSourceWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., widgetMode: _core.QgsProviderRegistry.WidgetMode = ...) -> None: ...

    def treeviewDoubleClicked(self, index: QtCore.QModelIndex) -> None: ...
    def treeviewClicked(self, index: QtCore.QModelIndex) -> None: ...
    def setSql(self, index: QtCore.QModelIndex) -> None: ...
    def storeSettings(self) -> None: ...
    def proxyModel(self) -> typing.Optional[QtCore.QSortFilterProxyModel]: ...
    def init(self, model: typing.Optional[_core.QgsAbstractDbTableModel], delegate: typing.Optional[QtWidgets.QItemDelegate] = ...) -> None: ...
    def settingPath(self) -> str: ...


class QgsGdalCredentialOptionsWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    optionsChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setCredentialOptions(self, options: dict[typing.Optional[str], typing.Any]) -> None: ...
    def credentialOptions(self) -> dict[str, typing.Any]: ...
    def setHandler(self, handler: typing.Optional[str]) -> None: ...


class QgsRasterAttributeTableWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., rasterLayer: typing.Optional[_core.QgsRasterLayer] = ..., bandNumber: int = ...) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def setEditable(self, editable: bool, allowCancel: bool = ...) -> bool: ...
    def saveChanges(self) -> None: ...
    rendererChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def isDirty(self) -> bool: ...
    def setRasterLayer(self, rasterLayer: typing.Optional[_core.QgsRasterLayer], bandNumber: int = ...) -> None: ...


class QgsRasterAttributeTableDialog(QtWidgets.QDialog):

    def __init__(self, rasterLayer: typing.Optional[_core.QgsRasterLayer], bandNumber: int = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def reject(self) -> None: ...


class QgsColorRampShaderWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def populateColormapTreeWidget(self, colorRampItems: collections.abc.Iterable[_core.QgsColorRampShader.ColorRampItem]) -> None: ...
    def loadMinimumMaximumFromTree(self) -> None: ...
    def classify(self) -> None: ...
    classificationModeChanged: typing.ClassVar[QtCore.pyqtSignal]
    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    minimumMaximumChangedFromTree: typing.ClassVar[QtCore.pyqtSignal]
    def setFromShader(self, colorRampShader: _core.QgsColorRampShader) -> None: ...
    def shader(self) -> _core.QgsColorRampShader: ...
    def maximum(self) -> float: ...
    def minimum(self) -> float: ...
    def setMinimumMaximum(self, minimum: float, maximum: float) -> None: ...
    def setMinimumMaximumAndClassify(self, minimum: float, maximum: float) -> None: ...
    def setExtent(self, extent: _core.QgsRectangle) -> None: ...
    def setRasterBand(self, band: int) -> None: ...
    def setRasterDataProvider(self, dp: typing.Optional[_core.QgsRasterDataProvider]) -> None: ...
    def initializeForUseWithRasterLayer(self) -> None: ...


class QgsRasterRendererWidget(QtWidgets.QWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> None: ...

    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setContrastEnhancementAlgorithm(self, algorithm: _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm) -> None: ...
    def contrastEnhancementAlgorithm(self) -> _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm: ...
    def minMaxWidget(self) -> typing.Optional['QgsRasterMinMaxWidget']: ...
    def doComputations(self) -> None: ...
    def selectedBand(self, index: int = ...) -> int: ...
    def setStdDev(self, value: typing.Optional[str]) -> None: ...
    def stdDev(self) -> str: ...
    def setMax(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def setMin(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def max(self, index: int = ...) -> str: ...
    def min(self, index: int = ...) -> str: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def rasterLayer(self) -> typing.Optional[_core.QgsRasterLayer]: ...
    def setRasterLayer(self, layer: typing.Optional[_core.QgsRasterLayer]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...


class QgsHillshadeRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def setMultiDirectional(self, isMultiDirectional: bool) -> None: ...
    def setZFactor(self, zfactor: float) -> None: ...
    def setAzimuth(self, azimuth: float) -> None: ...
    def setAltitude(self, altitude: float) -> None: ...
    def multiDirectional(self) -> bool: ...
    def zFactor(self) -> float: ...
    def altitude(self) -> float: ...
    def azimuth(self) -> float: ...
    def setFromRenderer(self, renderer: typing.Optional[_core.QgsRasterRenderer]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsMultiBandColorRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def loadMinMax(self, bandNo: int, min: float, max: float) -> None: ...
    def minMaxWidget(self) -> typing.Optional['QgsRasterMinMaxWidget']: ...
    def doComputations(self) -> None: ...
    def setContrastEnhancementAlgorithm(self, algorithm: _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm) -> None: ...
    def contrastEnhancementAlgorithm(self) -> _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm: ...
    def selectedBand(self, index: int = ...) -> int: ...
    def setMax(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def setMin(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def max(self, index: int = ...) -> str: ...
    def min(self, index: int = ...) -> str: ...
    def setFromRenderer(self, r: typing.Optional[_core.QgsRasterRenderer]) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsPalettedRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def setFromRenderer(self, r: typing.Optional[_core.QgsRasterRenderer]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsRasterAttributeTableModel(QtCore.QAbstractTableModel):

    def __init__(self, rat: typing.Optional[_core.QgsRasterAttributeTable], parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int) -> bool: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex) -> int: ...
    def removeRow(self, position: int) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def insertRamp(self, position: int) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def insertColor(self, position: int) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def insertRow(self, position: int, rowData: collections.abc.Iterable[typing.Any]) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def removeColorOrRamp(self) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def removeField(self, position: int) -> typing.Tuple[bool, typing.Optional[str]]: ...
    @typing.overload
    def insertField(self, position: int, name: typing.Optional[str], usage: _core.Qgis.RasterAttributeTableFieldUsage, type: QtCore.QMetaType.Type) -> typing.Tuple[bool, typing.Optional[str]]: ...
    @typing.overload
    @deprecated("""""")
    def insertField(self, position: int, name: typing.Optional[str], usage: _core.Qgis.RasterAttributeTableFieldUsage, type: typing.Any) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def isDirty(self) -> bool: ...
    def isValid(self) -> typing.Tuple[bool, typing.Optional[str]]: ...
    def headerTooltip(self, section: int) -> str: ...
    def headerNames(self) -> list[str]: ...
    def hasRamp(self) -> bool: ...
    def hasColor(self) -> bool: ...
    def setEditable(self, editable: bool) -> None: ...
    def editable(self) -> bool: ...


class QgsRasterBandComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    bandChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setBand(self, band: int) -> None: ...
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    @staticmethod
    def displayBandName(provider: typing.Optional[_core.QgsRasterDataProvider], band: int) -> str: ...
    def setShowNotSetOption(self, show: bool, string: typing.Optional[str] = ...) -> None: ...
    def isShowingNotSetOption(self) -> bool: ...
    def currentBand(self) -> int: ...
    def layer(self) -> typing.Optional[_core.QgsRasterLayer]: ...


class QgsRasterContourRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsRasterHistogramWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def apply(self) -> None: ...
    def refreshHistogram(self) -> None: ...
    def setSelectedBand(self, index: int) -> None: ...
    def histoAction(self, actionName: typing.Optional[str], actionFlag: bool = ...) -> None: ...
    def computeHistogram(self, forceComputeFlag: bool) -> bool: ...
    def setActive(self, activeFlag: bool) -> None: ...
    def setRendererWidget(self, name: typing.Optional[str], rendererWidget: typing.Optional[QgsRasterRendererWidget] = ...) -> None: ...
    def histoSaveAsImage(self, filename: typing.Optional[str], width: int = ..., height: int = ..., quality: int = ...) -> bool: ...


class QgsRasterMinMaxWidget(QtWidgets.QWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    load: typing.ClassVar[QtCore.pyqtSignal]
    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setCollapsed(self, b: bool) -> None: ...
    def isCollapsed(self) -> bool: ...
    def userHasSetManualMinMaxValues(self) -> None: ...
    def doComputations(self) -> None: ...
    def hideUpdatedExtent(self) -> None: ...
    def minMaxOrigin(self) -> _core.QgsRasterMinMaxOrigin: ...
    def setFromMinMaxOrigin(self, a0: _core.QgsRasterMinMaxOrigin) -> None: ...
    def sampleSize(self) -> int: ...
    def extent(self) -> _core.QgsRectangle: ...
    def setBands(self, bands: collections.abc.Iterable[int]) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def setExtent(self, extent: _core.QgsRectangle) -> None: ...


class QgsRasterTransparencyWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def apply(self) -> None: ...
    def syncToLayer(self) -> None: ...
    def pixelSelectorTool(self) -> typing.Optional[QgsMapToolEmitPoint]: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsRendererRasterPropertiesWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def syncToLayer(self, layer: typing.Optional[_core.QgsRasterLayer]) -> None: ...
    def apply(self) -> None: ...
    def rendererChanged(self) -> None: ...
    def currentRenderWidget(self) -> typing.Optional[QgsRasterRendererWidget]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsSingleBandGrayRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def loadMinMax(self, bandNo: int, min: float, max: float) -> None: ...
    def minMaxWidget(self) -> typing.Optional[QgsRasterMinMaxWidget]: ...
    def doComputations(self) -> None: ...
    def setContrastEnhancementAlgorithm(self, algorithm: _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm) -> None: ...
    def contrastEnhancementAlgorithm(self) -> _core.QgsContrastEnhancement.ContrastEnhancementAlgorithm: ...
    def selectedBand(self, index: int = ...) -> int: ...
    def setMax(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def setMin(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def max(self, index: int = ...) -> str: ...
    def min(self, index: int = ...) -> str: ...
    def setFromRenderer(self, r: typing.Optional[_core.QgsRasterRenderer]) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsSingleBandPseudoColorRendererWidget(QgsRasterRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle = ...) -> None: ...

    def loadMinMaxFromTree(self, min: float, max: float) -> None: ...
    def loadMinMax(self, bandNo: int, min: float, max: float) -> None: ...
    def selectedBand(self, index: int = ...) -> int: ...
    def setMax(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def setMin(self, value: typing.Optional[str], index: int = ...) -> None: ...
    def max(self, index: int = ...) -> str: ...
    def min(self, index: int = ...) -> str: ...
    def setFromRenderer(self, r: typing.Optional[_core.QgsRasterRenderer]) -> None: ...
    def minMaxWidget(self) -> typing.Optional[QgsRasterMinMaxWidget]: ...
    def doComputations(self) -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsRasterRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsRasterLayer], extent: _core.QgsRectangle) -> typing.Optional[QgsRasterRendererWidget]: ...


class QgsRasterLayerProperties(QgsLayerPropertiesDialog):

    def __init__(self, lyr: typing.Optional[_core.QgsMapLayer], canvas: typing.Optional[QgsMapCanvas], parent: typing.Optional[QtWidgets.QWidget] = ..., a3: QtCore.Qt.WindowType = ...) -> None: ...

    def rollback(self) -> None: ...
    def apply(self) -> None: ...
    def optionsStackedWidget_CurrentChanged(self, index: int) -> None: ...
    @deprecated("""""")
    def saveDefaultStyle(self) -> None: ...
    def eventFilter(self, obj: typing.Optional[QtCore.QObject], ev: typing.Optional[QtCore.QEvent]) -> bool: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def addPropertiesPageFactory(self, factory: typing.Optional[QgsMapLayerConfigWidgetFactory]) -> None: ...


class QgsRasterLayerTemporalPropertiesWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., layer: typing.Optional[_core.QgsRasterLayer] = ...) -> None: ...

    def addWidget(self, widget: typing.Optional[QgsMapLayerConfigWidget]) -> None: ...
    def syncToLayer(self) -> None: ...
    def saveTemporalProperties(self) -> None: ...


class QgsFieldCalculator(QtWidgets.QDialog):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def accept(self) -> None: ...
    def changedAttributeId(self) -> int: ...


class QgsVectorLayerProperties(QgsLayerPropertiesDialog):

    def __init__(self, canvas: typing.Optional[QgsMapCanvas], messageBar: typing.Optional[QgsMessageBar], lyr: typing.Optional[_core.QgsVectorLayer] = ..., parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ...) -> None: ...

    def rollback(self) -> None: ...
    def apply(self) -> None: ...
    def syncToLayer(self) -> None: ...
    def optionsStackedWidget_CurrentChanged(self, index: int) -> None: ...
    def eventFilter(self, obj: typing.Optional[QtCore.QObject], ev: typing.Optional[QtCore.QEvent]) -> bool: ...


class CharacterWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def paintEvent(self, event: typing.Optional[QtGui.QPaintEvent]) -> None: ...
    def mousePressEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def mouseMoveEvent(self, event: typing.Optional[QtGui.QMouseEvent]) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    characterSelected: typing.ClassVar[QtCore.pyqtSignal]
    def clearCharacter(self) -> None: ...
    def setCharacter(self, character: QtCore.QChar) -> None: ...
    def setColumns(self, columns: int) -> None: ...
    def updateFontMerging(self, enable: bool) -> None: ...
    def setFontStyle(self, fontStyle: typing.Optional[str]) -> None: ...
    def setFontSize(self, fontSize: float) -> None: ...
    def setFont(self, font: QtGui.QFont) -> None: ...
    def font(self) -> QtGui.QFont: ...
    def character(self) -> QtCore.QChar: ...
    def squareSize(self) -> int: ...
    def columns(self) -> int: ...
    def sizeHint(self) -> QtCore.QSize: ...


class QgsRendererWidget(QgsPanelWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle]) -> None: ...

    def pasteSymbolToSelection(self) -> None: ...
    def paste(self) -> None: ...
    def copy(self) -> None: ...
    def changeSymbolAngle(self) -> None: ...
    def changeSymbolSize(self) -> None: ...
    def changeSymbolWidth(self) -> None: ...
    def changeSymbolUnit(self) -> None: ...
    def changeSymbolOpacity(self) -> None: ...
    def changeSymbolColor(self) -> None: ...
    def contextMenuViewCategories(self, p: QtCore.QPoint) -> None: ...
    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsFeatureRenderer.Property) -> None: ...
    def setSymbolLevels(self, levels: collections.abc.Iterable[_core.QgsLegendSymbolItem], enabled: bool) -> None: ...
    def createDataDefinedSizeLegendWidget(self, symbol: typing.Optional[_core.QgsMarkerSymbol], ddsLegend: typing.Optional[_core.QgsDataDefinedSizeLegend]) -> typing.Optional['QgsDataDefinedSizeLegendWidget']: ...
    def refreshSymbolView(self) -> None: ...
    def selectedSymbols(self) -> list[_core.QgsSymbol]: ...
    symbolLevelsChanged: typing.ClassVar[QtCore.pyqtSignal]
    layerVariablesChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDockMode(self, dockMode: bool) -> None: ...
    def applyChanges(self) -> None: ...
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def showSymbolLevelsDialog(self, r: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...


class Qgs25DRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsSymbolLayerWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget], vl: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    def updateDataDefinedProperty(self) -> None: ...
    symbolChanged: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsSymbolLayer.Property) -> None: ...
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...


class QgsArrowSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsBrushStyleComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def iconForBrush(self, style: QtCore.Qt.BrushStyle) -> QtGui.QIcon: ...
    def setBrushStyle(self, style: QtCore.Qt.BrushStyle) -> None: ...
    def brushStyle(self) -> QtCore.Qt.BrushStyle: ...


class QgsCategorizedSymbolRendererWidget(QgsRendererWidget):

    class CustomRole(enum.IntEnum):
        Value = ... # type: QgsCategorizedSymbolRendererWidget.CustomRole

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def refreshSymbolView(self) -> None: ...
    def selectedCategoryList(self) -> list[_core.QgsRendererCategory]: ...
    def selectedSymbols(self) -> list[_core.QgsSymbol]: ...
    def layerUniqueValues(self, attrName: typing.Optional[str]) -> list[typing.Any]: ...
    def applyChangeToSymbol(self) -> None: ...
    def changeCategorySymbol(self) -> None: ...
    def changeSelectedSymbols(self) -> None: ...
    def selectedCategories(self) -> list[int]: ...
    def currentCategoryRow(self) -> int: ...
    def populateCategories(self) -> None: ...
    def updateUiFromRenderer(self) -> None: ...
    def pasteSymbolToSelection(self) -> None: ...
    def setSymbolLevels(self, levels: collections.abc.Iterable[_core.QgsLegendSymbolItem], enabled: bool) -> None: ...
    def matchToSymbolsFromXml(self) -> None: ...
    def matchToSymbolsFromLibrary(self) -> None: ...
    def rowsMoved(self) -> None: ...
    def showSymbolLevels(self) -> None: ...
    def deleteUnusedCategories(self) -> None: ...
    def deleteAllCategories(self) -> None: ...
    def deleteCategories(self) -> None: ...
    def applyColorRamp(self) -> None: ...
    def addCategories(self) -> None: ...
    def addCategory(self) -> None: ...
    def categoriesDoubleClicked(self, idx: QtCore.QModelIndex) -> None: ...
    def categoryColumnChanged(self, field: typing.Optional[str]) -> None: ...
    def changeCategorizedSymbol(self) -> None: ...
    def matchToSymbols(self, style: typing.Optional[_core.QgsStyle]) -> int: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsCptCityColorRampDialog(QtWidgets.QDialog):

    def __init__(self, ramp: _core.QgsCptCityColorRamp, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def eventFilter(self, obj: typing.Optional[QtCore.QObject], event: typing.Optional[QtCore.QEvent]) -> bool: ...
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def saveAsGradientRamp(self) -> bool: ...
    def selectedName(self) -> str: ...
    def setRamp(self, ramp: _core.QgsCptCityColorRamp) -> None: ...
    def ramp(self) -> _core.QgsCptCityColorRamp: ...


class QgsDashSpaceWidget(QgsPanelWidget):

    def __init__(self, vectorPattern: collections.abc.Iterable[float], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setUnit(self, unit: _core.Qgis.RenderUnit) -> None: ...
    def dashDotVector(self) -> list[float]: ...


class QgsDashSpaceDialog(QtWidgets.QDialog):

    def __init__(self, v: collections.abc.Iterable[float], parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def setUnit(self, unit: _core.Qgis.RenderUnit) -> None: ...
    def dashDotVector(self) -> list[float]: ...


class QgsDataDefinedSizeLegendWidget(QgsPanelWidget):

    def __init__(self, ddsLegend: typing.Optional[_core.QgsDataDefinedSizeLegend], ddSize: _core.QgsProperty, overrideSymbol: typing.Optional[_core.QgsMarkerSymbol], canvas: typing.Optional[QgsMapCanvas] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def dataDefinedSizeLegend(self) -> typing.Optional[_core.QgsDataDefinedSizeLegend]: ...


class QgsEllipseSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsEmbeddedSymbolRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsGraduatedHistogramWidget(QgsHistogramWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def drawHistogram(self) -> None: ...
    rangesModified: typing.ClassVar[QtCore.pyqtSignal]
    def setRenderer(self, renderer: typing.Optional[_core.QgsGraduatedSymbolRenderer]) -> None: ...


class QgsGraduatedSymbolRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def refreshSymbolView(self) -> None: ...
    def findSymbolForRange(self, lowerBound: float, upperBound: float, ranges: collections.abc.Iterable[_core.QgsRendererRange]) -> typing.Optional[_core.QgsSymbol]: ...
    def selectedSymbols(self) -> list[_core.QgsSymbol]: ...
    def applyChangeToSymbol(self) -> None: ...
    def changeSelectedSymbols(self) -> None: ...
    def changeRange(self, rangeIdx: int) -> None: ...
    def changeRangeSymbol(self, rangeIdx: int) -> None: ...
    def selectedRanges(self) -> list[_core.QgsRendererRange]: ...
    def selectedClasses(self) -> list[int]: ...
    def rowsOrdered(self) -> bool: ...
    def disconnectUpdateHandlers(self) -> None: ...
    def connectUpdateHandlers(self) -> None: ...
    def updateUiFromRenderer(self, updateCount: bool = ...) -> None: ...
    def pasteSymbolToSelection(self) -> None: ...
    def setSymbolLevels(self, levels: collections.abc.Iterable[_core.QgsLegendSymbolItem], enabled: bool) -> None: ...
    def refreshRanges(self, reset: bool) -> None: ...
    def modelDataChanged(self) -> None: ...
    def rowsMoved(self) -> None: ...
    def showSymbolLevels(self) -> None: ...
    def labelFormatChanged(self) -> None: ...
    def toggleBoundariesLink(self, linked: bool) -> None: ...
    def deleteAllClasses(self) -> None: ...
    def deleteClasses(self) -> None: ...
    def addClass(self) -> None: ...
    def changeCurrentValue(self, item: typing.Optional[QtGui.QStandardItem]) -> None: ...
    def rangesClicked(self, idx: QtCore.QModelIndex) -> None: ...
    def rangesDoubleClicked(self, idx: QtCore.QModelIndex) -> None: ...
    def reapplySizes(self) -> None: ...
    def reapplyColorRamp(self) -> None: ...
    def classifyGraduated(self) -> None: ...
    def graduatedColumnChanged(self, field: typing.Optional[str]) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsHeatmapRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsInterpolatedLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsInvertedPolygonRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsLayerPropertiesWidget(QgsPanelWidget, _core.QgsExpressionContextGenerator):

    def __init__(self, layer: typing.Optional[_core.QgsSymbolLayer], symbol: typing.Optional[_core.QgsSymbol], vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def registerDataDefinedButton(self, button: typing.Optional[QgsPropertyOverrideButton], key: _core.QgsSymbolLayer.Property) -> None: ...
    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def updateSymbolLayerWidget(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    def populateLayerTypes(self) -> None: ...
    changeLayer: typing.ClassVar[QtCore.pyqtSignal]
    changed: typing.ClassVar[QtCore.pyqtSignal]
    def emitSignalChanged(self) -> None: ...
    def layerTypeChanged(self) -> None: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsMergedFeatureRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsNullSymbolRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsMaskMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsPenStyleComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def iconForPen(self, style: QtCore.Qt.PenStyle) -> QtGui.QIcon: ...
    def setPenStyle(self, style: QtCore.Qt.PenStyle) -> None: ...
    def penStyle(self) -> QtCore.Qt.PenStyle: ...


class QgsPenJoinStyleComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPenJoinStyle(self, style: QtCore.Qt.PenJoinStyle) -> None: ...
    def penJoinStyle(self) -> QtCore.Qt.PenJoinStyle: ...


class QgsPenCapStyleComboBox(QtWidgets.QComboBox):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setPenCapStyle(self, style: QtCore.Qt.PenCapStyle) -> None: ...
    def penCapStyle(self) -> QtCore.Qt.PenCapStyle: ...


class QgsPointClusterRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsPointDisplacementRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def createExpressionContext(self) -> _core.QgsExpressionContext: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsRendererPropertiesDialog(QtWidgets.QDialog):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], embedded: bool = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def connectValueChanged(self, widgets: collections.abc.Iterable[QtWidgets.QWidget]) -> None: ...
    def openPanel(self, panel: typing.Optional[QgsPanelWidget]) -> None: ...
    def onOK(self) -> None: ...
    def apply(self) -> None: ...
    def rendererChanged(self) -> None: ...
    showPanel: typing.ClassVar[QtCore.pyqtSignal]
    widgetChanged: typing.ClassVar[QtCore.pyqtSignal]
    layerVariablesChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setDockMode(self, dockMode: bool) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsDataDefinedValueDialog(QtWidgets.QDialog):

    def __init__(self, symbolList: collections.abc.Iterable[_core.QgsSymbol], layer: typing.Optional[_core.QgsVectorLayer], label: typing.Optional[str]) -> None: ...

    def init(self, propertyKey: int) -> None: ...
    def dataDefinedChanged(self) -> None: ...
    def vectorLayer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsDataDefinedSizeDialog(QgsDataDefinedValueDialog):

    def __init__(self, symbolList: collections.abc.Iterable[_core.QgsSymbol], layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...

    def setDataDefined(self, symbol: typing.Optional[_core.QgsSymbol], dd: _core.QgsProperty) -> None: ...
    def value(self, symbol: typing.Optional[_core.QgsSymbol]) -> float: ...
    def symbolDataDefined(self, symbol: typing.Optional[_core.QgsSymbol]) -> _core.QgsProperty: ...


class QgsDataDefinedRotationDialog(QgsDataDefinedValueDialog):

    def __init__(self, symbolList: collections.abc.Iterable[_core.QgsSymbol], layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...

    def setDataDefined(self, symbol: typing.Optional[_core.QgsSymbol], dd: _core.QgsProperty) -> None: ...
    def value(self, symbol: typing.Optional[_core.QgsSymbol]) -> float: ...
    def symbolDataDefined(self, symbol: typing.Optional[_core.QgsSymbol]) -> _core.QgsProperty: ...


class QgsDataDefinedWidthDialog(QgsDataDefinedValueDialog):

    def __init__(self, symbolList: collections.abc.Iterable[_core.QgsSymbol], layer: typing.Optional[_core.QgsVectorLayer]) -> None: ...

    def setDataDefined(self, symbol: typing.Optional[_core.QgsSymbol], dd: _core.QgsProperty) -> None: ...
    def value(self, symbol: typing.Optional[_core.QgsSymbol]) -> float: ...
    def symbolDataDefined(self, symbol: typing.Optional[_core.QgsSymbol]) -> _core.QgsProperty: ...


class QgsRuleBasedRendererModel(QtCore.QAbstractItemModel):

    def __init__(self, renderer: typing.Optional[_core.QgsRuleBasedRenderer], parent: typing.Optional[QtCore.QObject], screen: typing.Optional[QtGui.QScreen] = ...) -> None: ...

    def clearFeatureCounts(self) -> None: ...
    def finishedAddingRules(self) -> None: ...
    def willAddRules(self, parent: QtCore.QModelIndex, count: int) -> None: ...
    def setSymbol(self, index: QtCore.QModelIndex, symbol: typing.Optional[_core.QgsSymbol]) -> None: ...
    def removeRule(self, index: QtCore.QModelIndex) -> None: ...
    @typing.overload
    def updateRule(self, parent: QtCore.QModelIndex, row: int) -> None: ...
    @typing.overload
    def updateRule(self, index: QtCore.QModelIndex) -> None: ...
    def insertRule(self, parent: QtCore.QModelIndex, before: int, newrule: typing.Optional[_core.QgsRuleBasedRenderer.Rule]) -> None: ...
    def ruleForIndex(self, index: QtCore.QModelIndex) -> typing.Optional[_core.QgsRuleBasedRenderer.Rule]: ...
    def removeRows(self, row: int, count: int, parent: QtCore.QModelIndex = ...) -> bool: ...
    def dropMimeData(self, data: typing.Optional[QtCore.QMimeData], action: QtCore.Qt.DropAction, row: int, column: int, parent: QtCore.QModelIndex) -> bool: ...
    def mimeData(self, indexes: collections.abc.Iterable[QtCore.QModelIndex]) -> typing.Optional[QtCore.QMimeData]: ...
    def mimeTypes(self) -> list[str]: ...
    def supportedDropActions(self) -> QtCore.Qt.DropAction: ...
    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int = ...) -> bool: ...
    def parent(self, index: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex = ...) -> QtCore.QModelIndex: ...
    def columnCount(self, a0: QtCore.QModelIndex = ...) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int = ...) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...


class QgsRuleBasedRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def pasteSymbolToSelection(self) -> None: ...
    def paste(self) -> None: ...
    def copy(self) -> None: ...
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def refreshSymbolView(self) -> None: ...
    def selectedRules(self) -> list[_core.QgsRuleBasedRenderer.Rule]: ...
    def selectedSymbols(self) -> list[_core.QgsSymbol]: ...
    def currentRule(self) -> typing.Optional[_core.QgsRuleBasedRenderer.Rule]: ...
    def setSymbolLevels(self, levels: collections.abc.Iterable[_core.QgsLegendSymbolItem], enabled: bool) -> None: ...
    def refineRuleScalesGui(self, index: collections.abc.Iterable[QtCore.QModelIndex]) -> None: ...
    def refineRuleRangesGui(self) -> None: ...
    def refineRuleCategoriesGui(self) -> None: ...
    def refineRule(self, type: int) -> None: ...
    def restoreSectionWidths(self) -> None: ...
    def saveSectionWidth(self, section: int, oldSize: int, newSize: int) -> None: ...
    def selectedRulesChanged(self) -> None: ...
    def currentRuleChanged(self, current: QtCore.QModelIndex = ..., previous: QtCore.QModelIndex = ...) -> None: ...
    def setRenderingOrder(self) -> None: ...
    def refineRuleRanges(self) -> None: ...
    def refineRuleCategories(self) -> None: ...
    def refineRuleScales(self) -> None: ...
    def clearFeatureCounts(self) -> None: ...
    def countFeatures(self) -> None: ...
    def removeRule(self) -> None: ...
    @typing.overload
    def editRule(self) -> None: ...
    @typing.overload
    def editRule(self, index: QtCore.QModelIndex) -> None: ...
    def addRule(self) -> None: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsRendererRulePropsWidget(QgsPanelWidget):

    def __init__(self, rule: typing.Optional[_core.QgsRuleBasedRenderer.Rule], layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ..., context: 'QgsSymbolWidgetContext' = ...) -> None: ...

    def setDockMode(self, dockMode: bool) -> None: ...
    def apply(self) -> None: ...
    def buildExpression(self) -> None: ...
    def testFilter(self) -> None: ...
    def rule(self) -> typing.Optional[_core.QgsRuleBasedRenderer.Rule]: ...


class QgsRendererRulePropsDialog(QtWidgets.QDialog):

    def __init__(self, rule: typing.Optional[_core.QgsRuleBasedRenderer.Rule], layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ..., context: 'QgsSymbolWidgetContext' = ...) -> None: ...

    def accept(self) -> None: ...
    def buildExpression(self) -> None: ...
    def testFilter(self) -> None: ...
    def rule(self) -> typing.Optional[_core.QgsRuleBasedRenderer.Rule]: ...


class QgsSingleSymbolRendererWidget(QgsRendererWidget):

    def __init__(self, layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> None: ...

    def setSymbolLevels(self, levels: collections.abc.Iterable[_core.QgsLegendSymbolItem], enabled: bool) -> None: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsFeatureRenderer]: ...
    @staticmethod
    def create(layer: typing.Optional[_core.QgsVectorLayer], style: typing.Optional[_core.QgsStyle], renderer: typing.Optional[_core.QgsFeatureRenderer]) -> typing.Optional[QgsRendererWidget]: ...


class QgsSmartGroupCondition(QtWidgets.QWidget):

    def __init__(self, id: int, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    removed: typing.ClassVar[QtCore.pyqtSignal]
    def destruct(self) -> None: ...
    def hideRemoveButton(self, hide: bool) -> None: ...
    def setParameter(self, param: typing.Optional[str]) -> None: ...
    def setConstraint(self, constraint: typing.Optional[str]) -> None: ...
    def parameter(self) -> str: ...
    def constraint(self) -> str: ...


class QgsSmartGroupEditorDialog(QtWidgets.QDialog):

    def __init__(self, style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def removeCondition(self, a0: int) -> None: ...
    def addCondition(self) -> None: ...
    def setSmartgroupName(self, a0: typing.Optional[str]) -> None: ...
    def setOperator(self, a0: typing.Optional[str]) -> None: ...
    def conditionOperator(self) -> str: ...
    def smartgroupName(self) -> str: ...


class QgsStyleExportImportDialog(QtWidgets.QDialog):

    class Mode(enum.IntEnum):
        Export = ... # type: QgsStyleExportImportDialog.Mode
        Import = ... # type: QgsStyleExportImportDialog.Mode

    def __init__(self, style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ..., mode: 'QgsStyleExportImportDialog.Mode' = ...) -> None: ...

    def importTypeChanged(self, a0: int) -> None: ...
    def deselectSmartgroup(self, groupName: typing.Optional[str]) -> None: ...
    def selectSmartgroup(self, groupName: typing.Optional[str]) -> None: ...
    def deselectTag(self, tagName: typing.Optional[str]) -> None: ...
    def selectTag(self, tagName: typing.Optional[str]) -> None: ...
    def deselectFavorites(self) -> None: ...
    def selectFavorites(self) -> None: ...
    def clearSelection(self) -> None: ...
    def selectAll(self) -> None: ...
    def selectByGroup(self) -> None: ...
    def doExportImport(self) -> None: ...
    def deselectSymbols(self, symbolNames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def selectSymbols(self, symbolNames: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def setImportFilePath(self, path: typing.Optional[str]) -> None: ...


class QgsStyleGroupSelectionDialog(QtWidgets.QDialog):

    def __init__(self, style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    favoritesSelected: typing.ClassVar[QtCore.pyqtSignal]
    favoritesDeselected: typing.ClassVar[QtCore.pyqtSignal]
    allSelected: typing.ClassVar[QtCore.pyqtSignal]
    allDeselected: typing.ClassVar[QtCore.pyqtSignal]
    smartgroupDeselected: typing.ClassVar[QtCore.pyqtSignal]
    smartgroupSelected: typing.ClassVar[QtCore.pyqtSignal]
    tagDeselected: typing.ClassVar[QtCore.pyqtSignal]
    tagSelected: typing.ClassVar[QtCore.pyqtSignal]
    def setBold(self, item: typing.Optional[QtGui.QStandardItem]) -> None: ...


class QgsStyleManagerDialog(QtWidgets.QDialog):

    @typing.overload
    def __init__(self, style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ..., readOnly: bool = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., flags: QtCore.Qt.WindowType = ...) -> None: ...

    def setBold(self, a0: typing.Optional[QtGui.QStandardItem]) -> None: ...
    def enableItemsForGroupingMode(self, a0: bool) -> None: ...
    def enableGroupInputs(self, a0: bool) -> None: ...
    def enableSymbolInputs(self, a0: bool) -> None: ...
    @deprecated("""""")
    def removeColorRamp(self) -> bool: ...
    @deprecated("""""")
    def removeSymbol(self) -> bool: ...
    def editColorRamp(self) -> bool: ...
    def editSymbol(self) -> bool: ...
    def addSymbol(self, symbolType: int = ...) -> bool: ...
    def currentItemName(self) -> str: ...
    def currentItemType(self) -> int: ...
    @deprecated("""""")
    def populateColorRamps(self, colorRamps: collections.abc.Iterable[typing.Optional[str]], checkable: bool = ...) -> None: ...
    @deprecated("""""")
    def populateSymbols(self, symbolNames: collections.abc.Iterable[typing.Optional[str]], checkable: bool = ...) -> None: ...
    @deprecated("""""")
    def setSymbolsChecked(self, a0: collections.abc.Iterable[typing.Optional[str]]) -> None: ...
    def populateGroups(self) -> None: ...
    @deprecated("""""")
    def populateTypes(self) -> None: ...
    def detagSelectedSymbols(self) -> None: ...
    def tagSelectedSymbols(self, newTag: bool = ...) -> None: ...
    def removeFavoriteSelectedSymbols(self) -> None: ...
    def addFavoriteSelectedSymbols(self) -> None: ...
    def addColorRamp(self, type: typing.Optional[str] = ...) -> bool: ...
    def listitemsContextMenu(self, a0: QtCore.QPoint) -> None: ...
    def grouptreeContextMenu(self, a0: QtCore.QPoint) -> None: ...
    def selectedSymbolsChanged(self, selected: QtCore.QItemSelection, deselected: QtCore.QItemSelection) -> None: ...
    def symbolSelected(self, a0: QtCore.QModelIndex) -> None: ...
    def filterSymbols(self, filter: typing.Optional[str]) -> None: ...
    @deprecated("""""")
    def regrouped(self, a0: typing.Optional[QtGui.QStandardItem]) -> None: ...
    def editSmartgroupAction(self) -> None: ...
    def tagSymbolsAction(self) -> None: ...
    def removeGroup(self) -> None: ...
    def addSmartgroup(self) -> int: ...
    def addTag(self) -> int: ...
    def groupRenamed(self, item: typing.Optional[QtGui.QStandardItem]) -> None: ...
    def groupChanged(self, a0: QtCore.QModelIndex) -> None: ...
    @deprecated("""""")
    def itemChanged(self, item: typing.Optional[QtGui.QStandardItem]) -> None: ...
    def showHelp(self) -> None: ...
    def onClose(self) -> None: ...
    def onFinished(self) -> None: ...
    def populateList(self) -> None: ...
    def importItems(self) -> None: ...
    def exportItems(self) -> None: ...
    def exportSelectedItemsImages(self, dir: typing.Optional[str], format: typing.Optional[str], size: QtCore.QSize) -> None: ...
    def exportItemsPNG(self) -> None: ...
    def exportItemsSVG(self) -> None: ...
    def removeItem(self) -> None: ...
    def editItem(self) -> None: ...
    def addItem(self) -> None: ...
    def activate(self) -> None: ...
    def setBaseStyleName(self, name: typing.Optional[str]) -> None: ...
    def setSmartGroupsVisible(self, show: bool) -> None: ...
    def setFavoritesGroupVisible(self, show: bool) -> None: ...
    @staticmethod
    def addColorRampStatic(parent: typing.Optional[QtWidgets.QWidget], style: typing.Optional[_core.QgsStyle], RampType: typing.Optional[str] = ...) -> str: ...


class QgsStyleSaveDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., type: _core.QgsStyle.StyleEntity = ...) -> None: ...

    def destinationStyle(self) -> typing.Optional[_core.QgsStyle]: ...
    def selectedType(self) -> _core.QgsStyle.StyleEntity: ...
    def isFavorite(self) -> bool: ...
    def tags(self) -> str: ...
    def setDefaultTags(self, tags: typing.Optional[str]) -> None: ...
    def name(self) -> str: ...


class QgsSvgSelectorFilterModel(QtCore.QSortFilterProxyModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject], path: typing.Optional[str] = ..., iconSize: int = ...) -> None: ...


class QgsSvgSelectorListModel(QtCore.QAbstractListModel):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject], iconSize: int = ...) -> None: ...
    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject], path: typing.Optional[str], iconSize: int = ...) -> None: ...

    def data(self, index: QtCore.QModelIndex, role: int = ...) -> typing.Any: ...
    def rowCount(self, parent: QtCore.QModelIndex = ...) -> int: ...


class QgsSvgSelectorGroupsModel(QtGui.QStandardItemModel):

    def __init__(self, parent: typing.Optional[QtCore.QObject]) -> None: ...


class QgsSvgSelectorWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def populateList(self) -> None: ...
    svgParametersChanged: typing.ClassVar[QtCore.pyqtSignal]
    svgSelected: typing.ClassVar[QtCore.pyqtSignal]
    def setSvgParameters(self, parameters: dict[typing.Optional[str], _core.QgsProperty]) -> None: ...
    def setSvgPath(self, svgPath: typing.Optional[str]) -> None: ...
    def propertyOverrideToolButton(self) -> typing.Optional[QgsPropertyOverrideButton]: ...
    def browserVisible(self) -> bool: ...
    def setBrowserVisible(self, visible: bool) -> None: ...
    def allowParameters(self) -> bool: ...
    @deprecated("""""")
    def allowParamerters(self) -> bool: ...
    def setAllowParameters(self, allow: bool) -> None: ...
    def sourceLineEdit(self) -> typing.Optional[QgsPictureSourceLineEditBase]: ...
    def currentSvgPath(self) -> str: ...
    def initParametersModel(self, generator: typing.Optional[_core.QgsExpressionContextGenerator], layer: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...


class QgsSvgSelectorDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., fl: QtCore.Qt.WindowType = ..., buttons: QtWidgets.QDialogButtonBox.StandardButton = ..., orientation: QtCore.Qt.Orientation = ...) -> None: ...

    def svgSelector(self) -> typing.Optional[QgsSvgSelectorWidget]: ...


class QgsSymbolAnimationSettingsWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def animationSettings(self) -> _core.QgsSymbolAnimationSettings: ...
    def setAnimationSettings(self, settings: _core.QgsSymbolAnimationSettings) -> None: ...


class QgsSymbolAnimationSettingsDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def animationSettings(self) -> _core.QgsSymbolAnimationSettings: ...
    def setAnimationSettings(self, settings: _core.QgsSymbolAnimationSettings) -> None: ...


class QgsSymbolBufferSettingsWidget(QgsPanelWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def bufferSettings(self) -> _core.QgsSymbolBufferSettings: ...
    def setBufferSettings(self, settings: _core.QgsSymbolBufferSettings) -> None: ...


class QgsSymbolBufferSettingsDialog(QtWidgets.QDialog):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ..., f: QtCore.Qt.WindowType = ...) -> None: ...

    def bufferSettings(self) -> _core.QgsSymbolBufferSettings: ...
    def setBufferSettings(self, settings: _core.QgsSymbolBufferSettings) -> None: ...


class QgsSimpleLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def resizeEvent(self, event: typing.Optional[QtGui.QResizeEvent]) -> None: ...
    def updatePatternIcon(self) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSimpleMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setColorFill(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColorStroke(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSimpleFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setStrokeColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsFilledMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsGradientFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setGradientSpread(self, index: int) -> None: ...
    def setCoordinateMode(self, index: int) -> None: ...
    def setGradientType(self, index: int) -> None: ...
    def applyColorRamp(self) -> None: ...
    def setColor2(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsShapeburstFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setColor2(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsMarkerLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setOffsetAlongLine(self, val: float) -> None: ...
    def setInterval(self, val: float) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsHashedLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSvgMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setGuiForSvg(self, layer: typing.Optional[_core.QgsSvgMarkerSymbolLayer], skipDefaultColors: bool = ...) -> None: ...
    @deprecated("""""")
    def populateList(self) -> None: ...
    def setSvgParameters(self, parameters: dict[typing.Optional[str], _core.QgsProperty]) -> None: ...
    def setSvgPath(self, name: typing.Optional[str]) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsRasterMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsAnimatedMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsRasterFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsRasterLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsLineburstSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsFilledLineSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSVGFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def updateParamGui(self, resetValues: bool = ...) -> None: ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsLinePatternFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsPointPatternFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsRandomMarkerFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsFontMarkerSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setCharacterFromText(self, text: typing.Optional[str]) -> None: ...
    def setCharacter(self, chr: QtCore.QChar) -> None: ...
    def setAngle(self, angle: float) -> None: ...
    def setSize(self, size: float) -> None: ...
    def setColorStroke(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def setFontFamily(self, font: QtGui.QFont) -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsCentroidFillSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsLinearReferencingSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsGeometryGeneratorSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSymbolLevelsWidget(QgsPanelWidget):

    @typing.overload
    def __init__(self, renderer: typing.Optional[_core.QgsFeatureRenderer], usingSymbolLevels: bool, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...
    @typing.overload
    def __init__(self, symbols: collections.abc.Iterable[_core.QgsLegendSymbolItem], usingSymbolLevels: bool, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    @deprecated("""""")
    def apply(self) -> None: ...
    def setForceOrderingEnabled(self, enabled: bool) -> None: ...
    def symbolLevels(self) -> list[_core.QgsLegendSymbolItem]: ...
    def usingLevels(self) -> bool: ...


class QgsSymbolLevelsDialog(QtWidgets.QDialog):

    def __init__(self, renderer: typing.Optional[_core.QgsFeatureRenderer], usingSymbolLevels: bool, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLevels(self) -> list[_core.QgsLegendSymbolItem]: ...
    def usingLevels(self) -> bool: ...
    def setForceOrderingEnabled(self, enabled: bool) -> None: ...


class QgsSymbolSelectorWidget(QgsPanelWidget):

    def __init__(self, symbol: typing.Optional[_core.QgsSymbol], style: typing.Optional[_core.QgsStyle], vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    symbolModified: typing.ClassVar[QtCore.pyqtSignal]
    def changeLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    def symbolChanged(self) -> None: ...
    def updatePreview(self) -> None: ...
    def updateLayerPreview(self) -> None: ...
    def layerChanged(self) -> None: ...
    def duplicateLayer(self) -> None: ...
    def lockLayer(self) -> None: ...
    def removeLayer(self) -> None: ...
    def addLayer(self) -> None: ...
    def moveLayerUp(self) -> None: ...
    def moveLayerDown(self) -> None: ...
    def symbol(self) -> typing.Optional[_core.QgsSymbol]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def advancedMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...


class QgsSymbolSelectorDialog(QtWidgets.QDialog):

    def __init__(self, symbol: typing.Optional[_core.QgsSymbol], style: typing.Optional[_core.QgsStyle], vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ..., embedded: bool = ...) -> None: ...

    symbolModified: typing.ClassVar[QtCore.pyqtSignal]
    def keyPressEvent(self, e: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def changeLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    def symbolChanged(self) -> None: ...
    def updatePreview(self) -> None: ...
    def updateLayerPreview(self) -> None: ...
    def layerChanged(self) -> None: ...
    def duplicateLayer(self) -> None: ...
    def lockLayer(self) -> None: ...
    def removeLayer(self) -> None: ...
    def addLayer(self) -> None: ...
    def moveLayerUp(self) -> None: ...
    def moveLayerDown(self) -> None: ...
    def buttonBox(self) -> typing.Optional[QtWidgets.QDialogButtonBox]: ...
    def symbol(self) -> typing.Optional[_core.QgsSymbol]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...
    def advancedMenu(self) -> typing.Optional[QtWidgets.QMenu]: ...


class QgsSymbolsListWidget(QtWidgets.QWidget):

    def __init__(self, symbol: typing.Optional[_core.QgsSymbol], style: typing.Optional[_core.QgsStyle], menu: typing.Optional[QtWidgets.QMenu], parent: typing.Optional[QtWidgets.QWidget], layer: typing.Optional[_core.QgsVectorLayer] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def updateDataDefinedLineWidth(self) -> None: ...
    def updateDataDefinedMarkerAngle(self) -> None: ...
    def updateDataDefinedMarkerSize(self) -> None: ...
    def clipFeaturesToggled(self, checked: bool) -> None: ...
    def setLineWidth(self, width: float) -> None: ...
    def setMarkerSize(self, size: float) -> None: ...
    def setMarkerAngle(self, angle: float) -> None: ...
    def setSymbolColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsVectorLayer]: ...
    def context(self) -> 'QgsSymbolWidgetContext': ...
    def setContext(self, context: 'QgsSymbolWidgetContext') -> None: ...


class QgsSymbolWidgetContext(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, other: 'QgsSymbolWidgetContext') -> None: ...

    def setSymbolType(self, type: _core.Qgis.SymbolType) -> None: ...
    def symbolType(self) -> _core.Qgis.SymbolType: ...
    def globalProjectAtlasMapLayerScopes(self, layer: typing.Optional[_core.QgsMapLayer]) -> list[_core.QgsExpressionContextScope]: ...
    def additionalExpressionContextScopes(self) -> list[_core.QgsExpressionContextScope]: ...
    def setAdditionalExpressionContextScopes(self, scopes: collections.abc.Iterable[_core.QgsExpressionContextScope]) -> None: ...
    def expressionContext(self) -> typing.Optional[_core.QgsExpressionContext]: ...
    def setExpressionContext(self, context: typing.Optional[_core.QgsExpressionContext]) -> None: ...
    def messageBar(self) -> typing.Optional[QgsMessageBar]: ...
    def setMessageBar(self, bar: typing.Optional[QgsMessageBar]) -> None: ...
    def mapCanvas(self) -> typing.Optional[QgsMapCanvas]: ...
    def setMapCanvas(self, canvas: typing.Optional[QgsMapCanvas]) -> None: ...


class QgsVectorFieldSymbolLayerWidget(QgsSymbolLayerWidget):

    def __init__(self, vl: typing.Optional[_core.QgsVectorLayer], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def symbolLayer(self) -> typing.Optional[_core.QgsSymbolLayer]: ...
    def setSymbolLayer(self, layer: typing.Optional[_core.QgsSymbolLayer]) -> None: ...
    @staticmethod
    def create(vl: typing.Optional[_core.QgsVectorLayer]) -> typing.Optional[QgsSymbolLayerWidget]: ...


class QgsSensorAbstractGuiMetadata(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self, type: typing.Optional[str], visibleName: typing.Optional[str]) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsSensorAbstractGuiMetadata') -> None: ...

    def createSensor(self, parent: typing.Optional[QtCore.QObject]) -> typing.Optional[_core.QgsAbstractSensor]: ...
    def createSensorWidget(self, sensor: typing.Optional[_core.QgsAbstractSensor]) -> typing.Optional['QgsAbstractSensorWidget']: ...
    def creationIcon(self) -> QtGui.QIcon: ...
    def visibleName(self) -> str: ...
    def type(self) -> str: ...


class QgsSensorGuiRegistry(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    sensorAdded: typing.ClassVar[QtCore.pyqtSignal]
    def sensorTypes(self) -> dict[str, str]: ...
    def createSensorWidget(self, sensor: typing.Optional[_core.QgsAbstractSensor]) -> typing.Optional['QgsAbstractSensorWidget']: ...
    def createSensor(self, type: typing.Optional[str], parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[_core.QgsAbstractSensor]: ...
    def addSensorGuiMetadata(self, metadata: typing.Optional[QgsSensorAbstractGuiMetadata]) -> bool: ...
    def sensorMetadata(self, type: typing.Optional[str]) -> typing.Optional[QgsSensorAbstractGuiMetadata]: ...
    def populate(self) -> bool: ...


class QgsAbstractSensorWidget(QtWidgets.QWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    changed: typing.ClassVar[QtCore.pyqtSignal]
    def setSensor(self, sensor: typing.Optional[_core.QgsAbstractSensor]) -> bool: ...
    def updateSensor(self, sensor: typing.Optional[_core.QgsAbstractSensor]) -> bool: ...
    def createSensor(self) -> typing.Optional[_core.QgsAbstractSensor]: ...


class QgsSettingsEditorWidgetWrapper(QtCore.QObject):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def dynamicKeyPartList(self) -> list[str]: ...
    def configureAutomaticUpdate(self, dialog: typing.Optional[QtWidgets.QDialog] = ...) -> None: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def configureEditor(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> bool: ...
    def createEditor(self, setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ..., parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional['QgsSettingsEditorWidgetWrapper']: ...
    def id(self) -> str: ...
    @staticmethod
    def fromWidget(widget: typing.Optional[QtWidgets.QWidget]) -> typing.Optional['QgsSettingsEditorWidgetWrapper']: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQLineEditQStringBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryString]: ...
    def editor(self) -> typing.Optional[QtWidgets.QLineEdit]: ...
    def valueFromWidget(self) -> str: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: typing.Optional[str]) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsStringLineEditWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQLineEditQStringBase):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def setWidgetValue(self, value: typing.Optional[str]) -> bool: ...
    def valueFromWidget(self) -> str: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryString]: ...
    def editor(self) -> typing.Optional[QtWidgets.QComboBox]: ...
    def valueFromWidget(self) -> str: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: typing.Optional[str]) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsStringComboBoxWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryStringQComboBoxQStringBase):

    class Mode(enum.IntEnum):
        Text = ... # type: QgsSettingsStringComboBoxWrapper.Mode
        Data = ... # type: QgsSettingsStringComboBoxWrapper.Mode

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], mode: 'QgsSettingsStringComboBoxWrapper.Mode', dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], mode: 'QgsSettingsStringComboBoxWrapper.Mode', role: int, dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def setWidgetValue(self, value: typing.Optional[str]) -> bool: ...
    def valueFromWidget(self) -> str: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryBoolQCheckBoxboolBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryBool]: ...
    def editor(self) -> typing.Optional[QtWidgets.QCheckBox]: ...
    def valueFromWidget(self) -> bool: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: bool) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsBoolCheckBoxWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryBoolQCheckBoxboolBase):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def setWidgetValue(self, value: bool) -> bool: ...
    def valueFromWidget(self) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryIntegerQSpinBoxintBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryInteger]: ...
    def editor(self) -> typing.Optional[QtWidgets.QSpinBox]: ...
    def valueFromWidget(self) -> int: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: int) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsIntegerSpinBoxWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryIntegerQSpinBoxintBase):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def setWidgetValue(self, value: int) -> bool: ...
    def valueFromWidget(self) -> int: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryDoubleQDoubleSpinBoxdoubleBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryDouble]: ...
    def editor(self) -> typing.Optional[QtWidgets.QDoubleSpinBox]: ...
    def valueFromWidget(self) -> float: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: float) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsDoubleSpinBoxWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryDoubleQDoubleSpinBoxdoubleBase):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def setWidgetValue(self, value: float) -> bool: ...
    def valueFromWidget(self) -> float: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase(QgsSettingsEditorWidgetWrapper):

    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def configureEditorPrivateImplementation(self) -> None: ...
    def configureEditorPrivate(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> bool: ...
    def createEditorPrivate(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def setting(self) -> typing.Optional[_core.QgsSettingsEntryColor]: ...
    def editor(self) -> typing.Optional[QgsColorButton]: ...
    def valueFromWidget(self) -> QtGui.QColor: ...
    def variantValueFromWidget(self) -> typing.Any: ...
    def setWidgetValue(self, value: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> bool: ...
    def setWidgetFromVariant(self, value: typing.Any) -> bool: ...
    def setSettingFromWidget(self) -> bool: ...
    def setWidgetFromSetting(self) -> bool: ...
    def id(self) -> str: ...


class QgsSettingsColorButtonWrapper(QgsSettingsEditorWidgetWrapperTemplateQgsSettingsEntryColorQgsColorButtonQColorBase):

    @typing.overload
    def __init__(self, parent: typing.Optional[QtCore.QObject] = ...) -> None: ...
    @typing.overload
    def __init__(self, editor: typing.Optional[QtWidgets.QWidget], setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]] = ...) -> None: ...

    def enableAutomaticUpdatePrivate(self) -> None: ...
    def configureEditorPrivateImplementation(self) -> None: ...
    def setWidgetValue(self, value: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> bool: ...
    def valueFromWidget(self) -> QtGui.QColor: ...
    def setSettingFromWidget(self) -> bool: ...
    def id(self) -> str: ...
    def createWrapper(self, parent: typing.Optional[QtCore.QObject] = ...) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...


class QgsSettingsEditorWidgetRegistry(PyQt6.sip.wrapper):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsSettingsEditorWidgetRegistry') -> None: ...

    def createEditor(self, setting: typing.Optional[_core.QgsSettingsEntryBase], dynamicKeyPartList: collections.abc.Iterable[typing.Optional[str]], parent: typing.Optional[QtWidgets.QWidget] = ...) -> typing.Optional[QtWidgets.QWidget]: ...
    def createWrapper(self, id: typing.Optional[str], parent: typing.Optional[QtCore.QObject]) -> typing.Optional[QgsSettingsEditorWidgetWrapper]: ...
    def addWrapperForSetting(self, wrapper: typing.Optional[QgsSettingsEditorWidgetWrapper], setting: typing.Optional[_core.QgsSettingsEntryBase]) -> None: ...
    def addWrapper(self, wrapper: typing.Optional[QgsSettingsEditorWidgetWrapper]) -> bool: ...


class QgsSettingsRegistryGui(_core.QgsSettingsRegistry):

    @typing.overload
    def __init__(self) -> None: ...
    @typing.overload
    def __init__(self, a0: 'QgsSettingsRegistryGui') -> None: ...


class QgsSettingsTreeModel(QtCore.QAbstractItemModel):

    class Column(enum.Enum):
        Name = ... # type: QgsSettingsTreeModel.Column
        Value = ... # type: QgsSettingsTreeModel.Column
        Description = ... # type: QgsSettingsTreeModel.Column

    def __init__(self, rootNode: typing.Optional[_core.QgsSettingsTreeNode] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def setData(self, index: QtCore.QModelIndex, value: typing.Any, role: int) -> bool: ...
    def flags(self, index: QtCore.QModelIndex) -> QtCore.Qt.ItemFlag: ...
    def headerData(self, section: int, orientation: QtCore.Qt.Orientation, role: int) -> typing.Any: ...
    def data(self, index: QtCore.QModelIndex, role: int) -> typing.Any: ...
    def columnCount(self, parent: QtCore.QModelIndex) -> int: ...
    def rowCount(self, parent: QtCore.QModelIndex) -> int: ...
    def parent(self, child: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def index(self, row: int, column: int, parent: QtCore.QModelIndex) -> QtCore.QModelIndex: ...
    def applyChanges(self) -> None: ...


class QgsSettingsTreeProxyModel(QtCore.QSortFilterProxyModel):

    def __init__(self, rootNode: typing.Optional[_core.QgsSettingsTreeNode] = ..., parent: typing.Optional[QtCore.QObject] = ...) -> None: ...

    def filterAcceptsRow(self, source_row: int, source_parent: QtCore.QModelIndex) -> bool: ...
    def setFilterText(self, filterText: typing.Optional[str] = ...) -> None: ...
    def applyChanges(self) -> None: ...


class QgsSettingsTreeWidget(QtWidgets.QWidget, QgsOptionsDialogHighlightWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def reset(self) -> None: ...
    def highlightText(self, text: typing.Optional[str]) -> bool: ...
    def searchText(self, text: typing.Optional[str]) -> bool: ...
    def applyChanges(self) -> None: ...


class QgsTableEditorDialog(QtWidgets.QMainWindow):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def closeEvent(self, a0: typing.Optional[QtGui.QCloseEvent]) -> None: ...
    includeHeaderChanged: typing.ClassVar[QtCore.pyqtSignal]
    tableChanged: typing.ClassVar[QtCore.pyqtSignal]
    def setLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def layer(self) -> typing.Optional[_core.QgsMapLayer]: ...
    def registerExpressionContextGenerator(self, generator: typing.Optional[_core.QgsExpressionContextGenerator]) -> None: ...
    def setTableHeaders(self, headers: collections.abc.Iterable[typing.Any]) -> None: ...
    def tableHeaders(self) -> list[typing.Any]: ...
    def setIncludeTableHeader(self, included: bool) -> None: ...
    def includeTableHeader(self) -> bool: ...
    def setTableColumnWidth(self, column: int, width: float) -> None: ...
    def setTableRowHeight(self, row: int, height: float) -> None: ...
    def tableColumnWidth(self, column: int) -> float: ...
    def tableRowHeight(self, row: int) -> float: ...
    def tableContents(self) -> typing.Any: ...
    def setTableContentsFromClipboard(self) -> bool: ...
    def setTableContents(self, contents: typing.Any) -> None: ...


class QgsTableEditorWidget(QtWidgets.QTableWidget):

    def __init__(self, parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    activeCellChanged: typing.ClassVar[QtCore.pyqtSignal]
    tableChanged: typing.ClassVar[QtCore.pyqtSignal]
    def keyPressEvent(self, event: typing.Optional[QtGui.QKeyEvent]) -> None: ...
    def splitSelectedCells(self) -> None: ...
    def mergeSelectedCells(self) -> None: ...
    def setTableHeaders(self, headers: collections.abc.Iterable[typing.Any]) -> None: ...
    def setIncludeTableHeader(self, included: bool) -> None: ...
    def setSelectionColumnWidth(self, height: float) -> None: ...
    def setSelectionRowHeight(self, height: float) -> None: ...
    def setSelectionTextFormat(self, format: _core.QgsTextFormat) -> None: ...
    def setSelectionCellProperty(self, property: _core.QgsProperty) -> None: ...
    def setSelectionVerticalAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
    def setSelectionHorizontalAlignment(self, alignment: QtCore.Qt.AlignmentFlag) -> None: ...
    def setSelectionBackgroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    @deprecated("""""")
    def setSelectionForegroundColor(self, color: typing.Union[QtGui.QColor, QtCore.Qt.GlobalColor, int]) -> None: ...
    def clearSelectedCells(self) -> None: ...
    def expandColumnSelection(self) -> None: ...
    def expandRowSelection(self) -> None: ...
    def deleteColumns(self) -> None: ...
    def deleteRows(self) -> None: ...
    def insertColumnsAfter(self) -> None: ...
    def insertColumnsBefore(self) -> None: ...
    def insertRowsAbove(self) -> None: ...
    def insertRowsBelow(self) -> None: ...
    def canSplitSelection(self) -> bool: ...
    def canMergeSelection(self) -> bool: ...
    def isHeaderCellSelected(self) -> bool: ...
    def tableHeaders(self) -> list[typing.Any]: ...
    def columnsAssociatedWithSelection(self) -> list[int]: ...
    def rowsAssociatedWithSelection(self) -> list[int]: ...
    def setTableColumnWidth(self, column: int, width: float) -> None: ...
    def setTableRowHeight(self, row: int, height: float) -> None: ...
    def tableColumnWidth(self, column: int) -> float: ...
    def tableRowHeight(self, row: int) -> float: ...
    def selectionColumnWidth(self) -> float: ...
    def selectionRowHeight(self) -> float: ...
    def selectionTextFormat(self) -> _core.QgsTextFormat: ...
    def selectionCellProperty(self) -> _core.QgsProperty: ...
    def selectionVerticalAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
    def selectionHorizontalAlignment(self) -> QtCore.Qt.AlignmentFlag: ...
    def selectionBackgroundColor(self) -> QtGui.QColor: ...
    @deprecated("""""")
    def selectionForegroundColor(self) -> QtGui.QColor: ...
    def hasMixedSelectionNumericFormat(self) -> bool: ...
    def selectionNumericFormat(self) -> typing.Optional[_core.QgsNumericFormat]: ...
    def setSelectionNumericFormat(self, format: typing.Optional[_core.QgsNumericFormat]) -> None: ...
    def tableContents(self) -> typing.Any: ...
    def setTableContents(self, contents: typing.Any) -> None: ...


class QgsTiledSceneRendererPropertiesWidget(QgsMapLayerConfigWidget):

    def __init__(self, layer: typing.Optional[_core.QgsTiledSceneLayer], style: typing.Optional[_core.QgsStyle], parent: typing.Optional[QtWidgets.QWidget] = ...) -> None: ...

    def apply(self) -> None: ...
    def setDockMode(self, dockMode: bool) -> None: ...
    def syncToLayer(self, layer: typing.Optional[_core.QgsMapLayer]) -> None: ...
    def setContext(self, context: QgsSymbolWidgetContext) -> None: ...


class QgsTiledSceneRendererWidget(QgsPanelWidget):

    def __init__(self, layer: typing.Optional[_core.QgsTiledSceneLayer], style: typing.Optional[_core.QgsStyle]) -> None: ...

    def layer(self) -> typing.Optional[_core.QgsTiledSceneLayer]: ...
    def context(self) -> QgsSymbolWidgetContext: ...
    def setContext(self, context: QgsSymbolWidgetContext) -> None: ...
    def renderer(self) -> typing.Optional[_core.QgsTiledSceneRenderer]: ...


class QgsVectorTileLayerProperties(QgsLayerPropertiesDialog):

    def __init__(self, lyr: typing.Optional[_core.QgsVectorTileLayer], canvas: typing.Optional[QgsMapCanvas], messageBar: typing.Optional[QgsMessageBar], parent: typing.Optional[QtWidgets.QWidget] = ..., a4: QtCore.Qt.WindowType = ...) -> None: ...

    @deprecated("""""")
    def saveStyleAs(self) -> None: ...
    def loadStyle(self) -> None: ...
    @deprecated("""""")
    def saveDefaultStyle(self) -> None: ...
