Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

44.2 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/**
 * This module defines properties to extend Blender's internal data. The result of these functions is used to assign properties to classes registered with Blender and can't be used directly.
 *
 * .. note:: All parameters to these functions must be passed as keywords.
 */
export interface Api {
  /**
   * Returns a new boolean property definition.
   * @returns Opaque type used for registration.
   */
  BoolProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** The default value for this property. */
    default?: H.In<boolean>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_items`. */
    subtype?: H.In<string>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new vector boolean property definition.
   * @returns Opaque type used for registration.
   */
  BoolVectorProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** sequence of booleans the length of *size*. */
    default?: H.In<readonly boolean[]>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_array_items`. */
    subtype?: H.In<string>;
    /** Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays. */
    size?: H.In<number | readonly number[]>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new collection property definition.
   * @returns Opaque type used for registration.
   * @param type A subclass of a property group.
   */
  CollectionProperty(type: any, kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_collection_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new collection property definition.
   * @returns Opaque type used for registration.
   * @param type A subclass of a property group.
   */
  CollectionProperty(kw: {
    /** A subclass of a property group. */
    type: any;
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_collection_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new enumerator property definition.
   * @returns Opaque type used for registration.
   * @param items sequence of enum items formatted: ``[(identifier, name, description, icon, number), ...]``. The first three elements of the tuples are mandatory. :identifier: The identifier is used for Python access. An empty identifier means that the item is a separator :name: Name for the interface. :description: Used for documentation and tooltips. :icon: An icon string identifier or integer icon value (e.g. returned by :class:`bpy.types.UILayout.icon`) :number: Unique value used as the identifier for this item (stored in file data). Use when the identifier may need to change. If the *ENUM_FLAG* option is used, the values are bit-masks and should be powers of two. When an item only contains 4 items they define ``(identifier, name, description, number)``. Separators may be added using either None (nameless separator), or a regular item tuple with an empty identifier string, in which case the name, if non-empty, will be displayed in the UI above the separator line. For dynamic values a callback can be passed which returns a list in the same format as the static list. This function must take 2 arguments ``(self, context)``, **context may be None**. .. warning:: There is a known bug with using a callback, Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash.
   */
  EnumProperty(items: any, kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /**
     * The default value for this enum, a string from the identifiers used in *items*, or integer matching an item number.
     * If the *ENUM_FLAG* option is used this must be a set of such string identifiers instead.
     * WARNING: Strings cannot be specified for dynamic enums
     * (i.e. if a callback function is given as *items* parameter).
     */
    default?: H.In<string | number | Set<string> | null>;
    /** Enumerator in :ref:`rna_enum_property_flag_enum_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new enumerator property definition.
   * @returns Opaque type used for registration.
   * @param items sequence of enum items formatted: ``[(identifier, name, description, icon, number), ...]``. The first three elements of the tuples are mandatory. :identifier: The identifier is used for Python access. An empty identifier means that the item is a separator :name: Name for the interface. :description: Used for documentation and tooltips. :icon: An icon string identifier or integer icon value (e.g. returned by :class:`bpy.types.UILayout.icon`) :number: Unique value used as the identifier for this item (stored in file data). Use when the identifier may need to change. If the *ENUM_FLAG* option is used, the values are bit-masks and should be powers of two. When an item only contains 4 items they define ``(identifier, name, description, number)``. Separators may be added using either None (nameless separator), or a regular item tuple with an empty identifier string, in which case the name, if non-empty, will be displayed in the UI above the separator line. For dynamic values a callback can be passed which returns a list in the same format as the static list. This function must take 2 arguments ``(self, context)``, **context may be None**. .. warning:: There is a known bug with using a callback, Python must keep a reference to the strings returned by the callback or Blender will misbehave or even crash.
   */
  EnumProperty(kw: {
    /**
     * sequence of enum items formatted:
     * ``[(identifier, name, description, icon, number), ...]``.
     * The first three elements of the tuples are mandatory.
     * :identifier: The identifier is used for Python access.
     * An empty identifier means that the item is a separator
     * :name: Name for the interface.
     * :description: Used for documentation and tooltips.
     * :icon: An icon string identifier or integer icon value
     * (e.g. returned by :class:`bpy.types.UILayout.icon`)
     * :number: Unique value used as the identifier for this item (stored in file data).
     * Use when the identifier may need to change. If the *ENUM_FLAG* option is used,
     * the values are bit-masks and should be powers of two.
     * When an item only contains 4 items they define ``(identifier, name, description, number)``.
     * Separators may be added using either None (nameless separator),
     * or a regular item tuple with an empty identifier string, in which case the name,
     * if non-empty, will be displayed in the UI above the separator line.
     * For dynamic values a callback can be passed which returns a list in
     * the same format as the static list.
     * This function must take 2 arguments ``(self, context)``, **context may be None**.
     * .. warning::
     * There is a known bug with using a callback,
     * Python must keep a reference to the strings returned by the callback or Blender
     * will misbehave or even crash.
     */
    items: any;
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /**
     * The default value for this enum, a string from the identifiers used in *items*, or integer matching an item number.
     * If the *ENUM_FLAG* option is used this must be a set of such string identifiers instead.
     * WARNING: Strings cannot be specified for dynamic enums
     * (i.e. if a callback function is given as *items* parameter).
     */
    default?: H.In<string | number | Set<string> | null>;
    /** Enumerator in :ref:`rna_enum_property_flag_enum_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new float (single precision) property definition.
   * @returns Opaque type used for registration.
   */
  FloatProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** The default value for this property. */
    default?: H.In<number>;
    /** Hard minimum, trying to assign a value below will silently assign this minimum instead. */
    min?: H.In<number>;
    /** Hard maximum, trying to assign a value above will silently assign this maximum instead. */
    max?: H.In<number>;
    /** Soft minimum (>= *min*), user won't be able to drag the widget below this value in the UI. */
    soft_min?: H.In<number>;
    /** Soft maximum (<= *max*), user won't be able to drag the widget above this value in the UI. */
    soft_max?: H.In<number>;
    /** Step of increment/decrement in UI, in [1, 100], defaults to 3 (WARNING: actual value is /100). */
    step?: H.In<number>;
    /** Maximum number of decimal digits to display, in [0, 6]. Fraction is automatically hidden for exact integer values of fields with unit 'NONE' or 'TIME' (frame count) and step divisible by 100. */
    precision?: H.In<number>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_items`. */
    subtype?: H.In<string>;
    /** Enumerator in :ref:`rna_enum_property_unit_items`. */
    unit?: H.In<string>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new vector float property definition.
   * @returns Opaque type used for registration.
   */
  FloatVectorProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** Sequence of floats the length of *size*. */
    default?: H.In<readonly number[]>;
    /** Hard minimum, trying to assign a value below will silently assign this minimum instead. */
    min?: H.In<number>;
    /** Hard maximum, trying to assign a value above will silently assign this maximum instead. */
    max?: H.In<number>;
    /** Soft minimum (>= *min*), user won't be able to drag the widget below this value in the UI. */
    soft_min?: H.In<number>;
    /** Soft maximum (<= *max*), user won't be able to drag the widget above this value in the UI. */
    soft_max?: H.In<number>;
    /** Step of increment/decrement in UI, in [1, 100], defaults to 3 (WARNING: actual value is /100). */
    step?: H.In<number>;
    /** Maximum number of decimal digits to display, in [0, 6]. Fraction is automatically hidden for exact integer values of fields with unit 'NONE' or 'TIME' (frame count) and step divisible by 100. */
    precision?: H.In<number>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_array_items`. */
    subtype?: H.In<string>;
    /** Enumerator in :ref:`rna_enum_property_unit_items`. */
    unit?: H.In<string>;
    /** Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays. */
    size?: H.In<number | readonly number[]>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new int property definition.
   * @returns Opaque type used for registration.
   */
  IntProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** The default value for this property. */
    default?: H.In<number>;
    /** Hard minimum, trying to assign a value below will silently assign this minimum instead. */
    min?: H.In<number>;
    /** Hard maximum, trying to assign a value above will silently assign this maximum instead. */
    max?: H.In<number>;
    /** Soft minimum (>= *min*), user won't be able to drag the widget below this value in the UI. */
    soft_min?: H.In<number>;
    /** Soft maximum (<= *max*), user won't be able to drag the widget above this value in the UI. */
    soft_max?: H.In<number>;
    /** Step of increment/decrement in UI, in [1, 100], defaults to 1 (WARNING: unused currently!). */
    step?: H.In<number>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_items`. */
    subtype?: H.In<string>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new vector int property definition.
   * @returns Opaque type used for registration.
   */
  IntVectorProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** sequence of ints the length of *size*. */
    default?: H.In<readonly number[]>;
    /** Hard minimum, trying to assign a value below will silently assign this minimum instead. */
    min?: H.In<number>;
    /** Hard maximum, trying to assign a value above will silently assign this maximum instead. */
    max?: H.In<number>;
    /** Soft minimum (>= *min*), user won't be able to drag the widget below this value in the UI. */
    soft_min?: H.In<number>;
    /** Soft maximum (<= *max*), user won't be able to drag the widget above this value in the UI. */
    soft_max?: H.In<number>;
    /** Step of increment/decrement in UI, in [1, 100], defaults to 1 (WARNING: unused currently!). */
    step?: H.In<number>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_number_array_items`. */
    subtype?: H.In<string>;
    /** Vector dimensions in [1, 32]. An int sequence can be used to define multi-dimension arrays. */
    size?: H.In<number | readonly number[]>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /**
   * Returns a new pointer property definition.
   *
   *    :param type: A subclass of PropertyGroup or ID.
   *    :type type: type[:class:`bpy.types.PropertyGroup` | :class:`bpy.types.ID`]
   *    :param name: Name used in the user interface.
   *    :type name: str
   *    :param description: Text used for the tooltip and api documentation.
   *    :type description: str
   *    :param translation_context: Text used as context to disambiguate translations.
   *    :type translation_context: str
   *    :param options: Enumerator in :ref:`rna_enum_property_flag_items`.
   *    :type options: set[str]
   *    :param override: Enumerator in :ref:`rna_enum_property_override_flag_items`.
   *    :type override: set[str]
   *    :param tags: Enumerator of tags that are defined by parent class.
   *    :type tags: set[str]
   *    :param poll: Function that determines whether an item is valid for this property.
   *       The function must take 2 values (self, object) and return a boolean.
   *
   *       .. note:: The return value will be checked only when assigning an item from the UI, but it is still possible to assign an "invalid" item to the property directly.
   *
   *    :type poll: Callable[[:class:`bpy.types.bpy_struct`, :class:`bpy.types.ID`], bool] | None
   *    :param update: Function to be called when this value is modified,
   *       This function must take 2 values (self, context) and return None.
   *       *Warning* there are no safety checks to avoid infinite recursion.
   *    :type update: Callable[[:class:`bpy.types.bpy_struct`, :class:`bpy.types.Context`], None] | None
   *    :return: Opaque type used for registration.
   *    :rtype: :class:`_PropertyDeferred`
   *
   * .. note:: Pointer properties do not support storing references to embedded IDs (e.g. :class:`bpy.types.Scene.collection`, :class:`bpy.types.Material.node_tree`).
   *    These should exclusively be referenced and accessed through their owner ID (e.g. the scene or material).
   */
  PointerProperty(type: any, kw?: {
    name?: string;
    description?: string;
    translation_context?: string;
    options?: any;
    override?: any;
    tags?: any;
    poll?: any;
    update?: any;
  }): any;
  /**
   * Returns a new pointer property definition.
   *
   *    :param type: A subclass of PropertyGroup or ID.
   *    :type type: type[:class:`bpy.types.PropertyGroup` | :class:`bpy.types.ID`]
   *    :param name: Name used in the user interface.
   *    :type name: str
   *    :param description: Text used for the tooltip and api documentation.
   *    :type description: str
   *    :param translation_context: Text used as context to disambiguate translations.
   *    :type translation_context: str
   *    :param options: Enumerator in :ref:`rna_enum_property_flag_items`.
   *    :type options: set[str]
   *    :param override: Enumerator in :ref:`rna_enum_property_override_flag_items`.
   *    :type override: set[str]
   *    :param tags: Enumerator of tags that are defined by parent class.
   *    :type tags: set[str]
   *    :param poll: Function that determines whether an item is valid for this property.
   *       The function must take 2 values (self, object) and return a boolean.
   *
   *       .. note:: The return value will be checked only when assigning an item from the UI, but it is still possible to assign an "invalid" item to the property directly.
   *
   *    :type poll: Callable[[:class:`bpy.types.bpy_struct`, :class:`bpy.types.ID`], bool] | None
   *    :param update: Function to be called when this value is modified,
   *       This function must take 2 values (self, context) and return None.
   *       *Warning* there are no safety checks to avoid infinite recursion.
   *    :type update: Callable[[:class:`bpy.types.bpy_struct`, :class:`bpy.types.Context`], None] | None
   *    :return: Opaque type used for registration.
   *    :rtype: :class:`_PropertyDeferred`
   *
   * .. note:: Pointer properties do not support storing references to embedded IDs (e.g. :class:`bpy.types.Scene.collection`, :class:`bpy.types.Material.node_tree`).
   *    These should exclusively be referenced and accessed through their owner ID (e.g. the scene or material).
   */
  PointerProperty(kw: {
    type: any;
    name?: string;
    description?: string;
    translation_context?: string;
    options?: any;
    override?: any;
    tags?: any;
    poll?: any;
    update?: any;
  }): any;
  /**
   * Removes a dynamically defined property.
   *
   * .. note::
   *
   *    Typically this function doesn't need to be accessed directly.
   *    Instead use ``del cls.attr``
   * @param attr Property name (must be passed as a keyword).
   */
  RemoveProperty(attr: H.In<string>): any;
  /**
   * Removes a dynamically defined property.
   *
   * .. note::
   *
   *    Typically this function doesn't need to be accessed directly.
   *    Instead use ``del cls.attr``
   * @param attr Property name (must be passed as a keyword).
   */
  RemoveProperty(kw: {
    /** Property name (must be passed as a keyword). */
    attr: H.In<string>;
  }): any;
  /**
   * Returns a new string property definition.
   * @returns Opaque type used for registration.
   */
  StringProperty(kw?: {
    /** Name used in the user interface. */
    name?: H.In<string>;
    /** Text used for the tooltip and api documentation. */
    description?: H.In<string>;
    /** Text used as context to disambiguate translations. */
    translation_context?: H.In<string>;
    /** initializer string. */
    default?: H.In<string>;
    /** maximum length of the string. */
    maxlen?: H.In<number>;
    /** Enumerator in :ref:`rna_enum_property_flag_items`. */
    options?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_override_flag_items`. */
    override?: H.In<Set<string>>;
    /** Enumerator of tags that are defined by parent class. */
    tags?: H.In<Set<string>>;
    /** Enumerator in :ref:`rna_enum_property_subtype_string_items`. */
    subtype?: H.In<string>;
    /**
     * Function to be called when this value is modified,
     * This function must take 2 values (self, context) and return None.
     * *Warning* there are no safety checks to avoid infinite recursion.
     */
    update?: any;
    /**
     * Function to be called when this value is 'read', and the default,
     * system-defined storage is not used for this property.
     * This function must take 1 value (self) and return the value of the property.
     * .. note:: Defining this callback without a matching ``set`` one will make the property read-only (even if ``READ_ONLY`` option is not set).
     */
    get?: any;
    /**
     * Function to be called when this value is 'written', and the default,
     * system-defined storage is not used for this property.
     * This function must take 2 values (self, value) and return None.
     * .. note:: Defining this callback without a matching ``get`` one is invalid.
     */
    set?: any;
    /**
     * Function to be called when this value is 'read',
     * if some additional processing must be performed on the stored value.
     * This function must take three arguments (self, the stored value,
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits of the property (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    get_transform?: any;
    /**
     * Function to be called when this value is 'written',
     * if some additional processing must be performed on the given value before storing it.
     * This function must take four arguments (self, the given value to store,
     * the currently stored value ('raw' value, without any ``get_transform`` applied to it),
     * and a boolean indicating if the property is currently set),
     * and return the final, transformed value of the property.
     * .. note:: The callback is responsible to ensure that value limits (min/max, length...) are respected. Otherwise a ValueError exception is raised.
     */
    set_transform?: any;
    /**
     * Function to be called to show candidates for this string (shown in the UI).
     * This function must take 3 values (self, context, edit_text)
     * and return a sequence, iterator or generator where each item must be:
     * - A single string (representing a candidate to display).
     * - A tuple-pair of strings, where the first is a candidate and the second
     * is additional information about the candidate.
     */
    search?: any;
    /**
     * Set of strings in:
     * - 'SORT' sorts the resulting items.
     * - 'SUGGESTION' lets the user enter values not found in search candidates.
     * **WARNING** disabling this flag causes the search callback to run on redraw,
     * so only disable this flag if it's not likely to cause performance issues.
     */
    search_options?: H.In<Set<string>>;
  }): H.Ptr<P.bpy_props._PropertyDeferred>;
  /** Intermediate storage for properties before registration. */
  readonly _PropertyDeferred: _PropertyDeferredClass;
}

/**
 * Intermediate storage for properties before registration.
 *
 * .. note::
 *
 *    This is not part of the stable API and may change between releases.
 *
 * bpy.props._PropertyDeferred
 */
export interface _PropertyDeferred {
  /** Call self as a function. */
  (...args: any[]): any;
  /** The property registration function (e.g. :func:`bpy.props.IntProperty`). */
  get function(): any;
  set function(v: any);
  /** The keyword arguments passed to the property registration function. */
  get keywords(): H.Ref<Map<string, any>>;
  set keywords(v: H.In<H.DictIn<any>>);
}
/** The class bpy.props._PropertyDeferred: called, a new one. */
export interface _PropertyDeferredClass {
  /**
   * Intermediate storage for properties before registration.
   *
   * .. note::
   *
   *    This is not part of the stable API and may change between releases.
   */
  (): H.Own<_PropertyDeferred>;
}