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.

40.7 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";

/** bpy_extras.io_utils */
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 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>;
  readonly ExportHelper: ExportHelperClass;
  readonly ImportHelper: ImportHelperClass;
  /**
   * 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>;
  /**
   * Each argument is an axis
   * where the first 2 are a source and the second 2 are the target.
   * @returns The conversion matrix.
   * @param from_forward Source forward axis.
   * @param from_up Source up axis.
   * @param to_forward Target forward axis.
   * @param to_up Target up axis.
   */
  axis_conversion(from_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">, from_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">, to_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">, to_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">): H.Remote<M.Matrix>;
  /**
   * Each argument is an axis
   * where the first 2 are a source and the second 2 are the target.
   * @returns The conversion matrix.
   * @param from_forward Source forward axis.
   * @param from_up Source up axis.
   * @param to_forward Target forward axis.
   * @param to_up Target up axis.
   */
  axis_conversion(kw: {
    /** Source forward axis. */
    from_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /** Source up axis. */
    from_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /** Target forward axis. */
    to_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /** Target up axis. */
    to_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
  }): H.Remote<M.Matrix>;
  /**
   * Function to ensure an operator has valid axis conversion settings, intended
   * to be used from :class:`bpy.types.Operator.check`.
   * @returns True if the value was modified.
   * @param operator the operator to access axis attributes from.
   * @param forward_attr attribute storing the forward axis
   * @param up_attr attribute storing the up axis
   */
  axis_conversion_ensure(operator: R.Operator, forward_attr: H.In<string>, up_attr: H.In<string>): H.Ref<boolean>;
  /**
   * Function to ensure an operator has valid axis conversion settings, intended
   * to be used from :class:`bpy.types.Operator.check`.
   * @returns True if the value was modified.
   * @param operator the operator to access axis attributes from.
   * @param forward_attr attribute storing the forward axis
   * @param up_attr attribute storing the up axis
   */
  axis_conversion_ensure(kw: {
    /** the operator to access axis attributes from. */
    operator: R.Operator;
    /** attribute storing the forward axis */
    forward_attr: H.In<string>;
    /** attribute storing the up axis */
    up_attr: H.In<string>;
  }): H.Ref<boolean>;
  /**
   * This function takes a sequence of objects, returning their instances.
   * @returns A dictionary where each key is an object from ``objects``,
   * values are lists of (object, matrix) tuples representing instances.
   * @param depsgraph The evaluated depsgraph.
   * @param objects A sequence of objects.
   */
  create_derived_objects(depsgraph: R.Depsgraph, objects: H.In<readonly R.Object[]>): H.Ref<Map<R.Object, [R.Object, M.Matrix][]>>;
  /**
   * This function takes a sequence of objects, returning their instances.
   * @returns A dictionary where each key is an object from ``objects``,
   * values are lists of (object, matrix) tuples representing instances.
   * @param depsgraph The evaluated depsgraph.
   * @param objects A sequence of objects.
   */
  create_derived_objects(kw: {
    /** The evaluated depsgraph. */
    depsgraph: R.Depsgraph;
    /** A sequence of objects. */
    objects: H.In<readonly R.Object[]>;
  }): H.Ref<Map<R.Object, [R.Object, M.Matrix][]>>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if new data name's translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or ``msgid`` if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  data_(msgid: H.In<string>, msgctxt?: H.In<string | null>): H.Ref<string>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if new data name's translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or ``msgid`` if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  data_(msgid: H.In<string>, kw: {
    /** The translation context (defaults to BLT_I18NCONTEXT_DEFAULT). */
    msgctxt?: H.In<string | null>;
  }): H.Ref<string>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if new data name's translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or ``msgid`` if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  data_(kw: {
    /** The string to translate. */
    msgid: H.In<string>;
    /** The translation context (defaults to BLT_I18NCONTEXT_DEFAULT). */
    msgctxt?: H.In<string | null>;
  }): H.Ref<string>;
  /** = bpy.app.translations.contexts(default_real=None, default='*', operator_default='Operator', ui_events_keymaps='UI_Events_KeyMaps', plural='Plural', countable='Countable', id_action='Action', id_armatur */
  readonly i18n_contexts: H.Ref<any>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if labels' translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or msgid if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  iface_(msgid: H.In<string>, msgctxt?: H.In<string | null>): H.Ref<string>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if labels' translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or msgid if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  iface_(msgid: H.In<string>, kw: {
    /** The translation context (defaults to BLT_I18NCONTEXT_DEFAULT). */
    msgctxt?: H.In<string | null>;
  }): H.Ref<string>;
  /**
   * Try to translate the given msgid (with optional msgctxt), if labels' translation is enabled.
   *
   * .. note::
   *    See :func:`pgettext` notes.
   * @returns The translated string (or msgid if no translation was found).
   * @param msgid The string to translate.
   * @param msgctxt The translation context (defaults to BLT_I18NCONTEXT_DEFAULT).
   */
  iface_(kw: {
    /** The string to translate. */
    msgid: H.In<string>;
    /** The translation context (defaults to BLT_I18NCONTEXT_DEFAULT). */
    msgctxt?: H.In<string | null>;
  }): H.Ref<string>;
  /**
   * A decorator for import/export classes, generating properties needed by the axis conversion system and IO helpers,
   * with specified default values (axes).
   * @returns A class decorator.
   * @param axis_forward The default forward axis.
   * @param axis_up The default up axis.
   */
  orientation_helper(axis_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">, axis_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">): any;
  /**
   * A decorator for import/export classes, generating properties needed by the axis conversion system and IO helpers,
   * with specified default values (axes).
   * @returns A class decorator.
   * @param axis_forward The default forward axis.
   * @param axis_up The default up axis.
   */
  orientation_helper(kw: {
    /** The default forward axis. */
    axis_forward?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
    /** The default up axis. */
    axis_up?: H.In<"X" | "Y" | "Z" | "-X" | "-Y" | "-Z">;
  }): any;
  /**
   * Return a filepath relative to a destination directory, for use with
   * exporters.
   * @returns the new filepath.
   * @param filepath the file path to return, supporting blenders relative '//' prefix.
   * @param base_src the directory the *filepath* is relative to (normally the blend file).
   * @param base_dst the directory the *filepath* will be referenced from (normally the export path).
   * @param mode the method used to reference the path.
   * @param copy_subdir the subdirectory of *base_dst* to use when mode='COPY'.
   * @param copy_set collect from/to pairs when mode='COPY', pass to *path_reference_copy* when exporting is done.
   * @param library The library this path is relative to.
   */
  path_reference(filepath: H.In<string>, base_src: H.In<string>, base_dst: H.In<string>, mode?: H.In<"AUTO" | "ABSOLUTE" | "RELATIVE" | "MATCH" | "STRIP" | "COPY">, copy_subdir?: H.In<string>, copy_set?: H.In<Set<readonly [string, string]> | null>, library?: R.Library | null): H.Ref<string>;
  /**
   * Return a filepath relative to a destination directory, for use with
   * exporters.
   * @returns the new filepath.
   * @param filepath the file path to return, supporting blenders relative '//' prefix.
   * @param base_src the directory the *filepath* is relative to (normally the blend file).
   * @param base_dst the directory the *filepath* will be referenced from (normally the export path).
   * @param mode the method used to reference the path.
   * @param copy_subdir the subdirectory of *base_dst* to use when mode='COPY'.
   * @param copy_set collect from/to pairs when mode='COPY', pass to *path_reference_copy* when exporting is done.
   * @param library The library this path is relative to.
   */
  path_reference(filepath: H.In<string>, base_src: H.In<string>, base_dst: H.In<string>, kw: {
    /** the method used to reference the path. */
    mode?: H.In<"AUTO" | "ABSOLUTE" | "RELATIVE" | "MATCH" | "STRIP" | "COPY">;
    /** the subdirectory of *base_dst* to use when mode='COPY'. */
    copy_subdir?: H.In<string>;
    /**
     * collect from/to pairs when mode='COPY',
     * pass to *path_reference_copy* when exporting is done.
     */
    copy_set?: H.In<Set<readonly [string, string]> | null>;
    /** The library this path is relative to. */
    library?: R.Library | null;
  }): H.Ref<string>;
  /**
   * Return a filepath relative to a destination directory, for use with
   * exporters.
   * @returns the new filepath.
   * @param filepath the file path to return, supporting blenders relative '//' prefix.
   * @param base_src the directory the *filepath* is relative to (normally the blend file).
   * @param base_dst the directory the *filepath* will be referenced from (normally the export path).
   * @param mode the method used to reference the path.
   * @param copy_subdir the subdirectory of *base_dst* to use when mode='COPY'.
   * @param copy_set collect from/to pairs when mode='COPY', pass to *path_reference_copy* when exporting is done.
   * @param library The library this path is relative to.
   */
  path_reference(kw: {
    /**
     * the file path to return,
     * supporting blenders relative '//' prefix.
     */
    filepath: H.In<string>;
    /**
     * the directory the *filepath* is relative to
     * (normally the blend file).
     */
    base_src: H.In<string>;
    /**
     * the directory the *filepath* will be referenced from
     * (normally the export path).
     */
    base_dst: H.In<string>;
    /** the method used to reference the path. */
    mode?: H.In<"AUTO" | "ABSOLUTE" | "RELATIVE" | "MATCH" | "STRIP" | "COPY">;
    /** the subdirectory of *base_dst* to use when mode='COPY'. */
    copy_subdir?: H.In<string>;
    /**
     * collect from/to pairs when mode='COPY',
     * pass to *path_reference_copy* when exporting is done.
     */
    copy_set?: H.In<Set<readonly [string, string]> | null>;
    /** The library this path is relative to. */
    library?: R.Library | null;
  }): H.Ref<string>;
  /**
   * Execute copying files of path_reference
   * @param copy_set set of (from, to) pairs to copy.
   * @param report function used for reporting warnings, takes a string argument.
   */
  path_reference_copy(copy_set: H.In<Set<readonly [string, string]>>, report?: any): H.Ref<void>;
  /**
   * Execute copying files of path_reference
   * @param copy_set set of (from, to) pairs to copy.
   * @param report function used for reporting warnings, takes a string argument.
   */
  path_reference_copy(copy_set: H.In<Set<readonly [string, string]>>, kw: {
    /** function used for reporting warnings, takes a string argument. */
    report?: any;
  }): H.Ref<void>;
  /**
   * Execute copying files of path_reference
   * @param copy_set set of (from, to) pairs to copy.
   * @param report function used for reporting warnings, takes a string argument.
   */
  path_reference_copy(kw: {
    /** set of (from, to) pairs to copy. */
    copy_set: H.In<Set<readonly [string, string]>>;
    /** function used for reporting warnings, takes a string argument. */
    report?: any;
  }): H.Ref<void>;
  /**
   * Intermediate storage for properties before registration.
   *
   * .. note::
   *
   *    This is not part of the stable API and may change between releases.
   */
  path_reference_mode(...args: any[]): any;
  /**
   * A default implementation for FileHandler poll_drop methods. Allows for both the 3D Viewport and
   * the Outliner (in ViewLayer display mode) to be targets for file drag and drop.
   * @returns Whether the drop target is valid.
   * @param context The context.
   */
  poll_file_object_drop(context: R.Context): H.Ref<boolean>;
  /**
   * A default implementation for FileHandler poll_drop methods. Allows for both the 3D Viewport and
   * the Outliner (in ViewLayer display mode) to be targets for file drag and drop.
   * @returns Whether the drop target is valid.
   * @param context The context.
   */
  poll_file_object_drop(kw: {
    /** The context. */
    context: R.Context;
  }): H.Ref<boolean>;
  /**
   * Helper function for storing unique names which may have special characters
   * stripped and restricted to a maximum length.
   * @returns A unique name.
   * @param key Unique item this name belongs to, name_dict[key] will be reused when available. This can be the object, mesh, material, etc instance itself. Any hashable object associated with the *name*.
   * @param name The name used to create a unique value in *name_dict*.
   * @param name_dict This is used to cache namespace to ensure no collisions occur, this should be an empty dict initially and only modified by this function.
   * @param name_max Maximum length of the name. When ``-1`` the name is unlimited.
   * @param clean_func Function to call on *name* before creating a unique value.
   * @param sep Separator to use when between the name and a number when a duplicate name is found.
   */
  unique_name(key: any, name: H.In<string>, name_dict: H.In<H.DictIn<string>>, name_max?: H.In<number>, clean_func?: any, sep?: H.In<string>): H.Ref<string>;
  /**
   * Helper function for storing unique names which may have special characters
   * stripped and restricted to a maximum length.
   * @returns A unique name.
   * @param key Unique item this name belongs to, name_dict[key] will be reused when available. This can be the object, mesh, material, etc instance itself. Any hashable object associated with the *name*.
   * @param name The name used to create a unique value in *name_dict*.
   * @param name_dict This is used to cache namespace to ensure no collisions occur, this should be an empty dict initially and only modified by this function.
   * @param name_max Maximum length of the name. When ``-1`` the name is unlimited.
   * @param clean_func Function to call on *name* before creating a unique value.
   * @param sep Separator to use when between the name and a number when a duplicate name is found.
   */
  unique_name(key: any, name: H.In<string>, name_dict: H.In<H.DictIn<string>>, kw: {
    /** Maximum length of the name. When ``-1`` the name is unlimited. */
    name_max?: H.In<number>;
    /** Function to call on *name* before creating a unique value. */
    clean_func?: any;
    /**
     * Separator to use when between the name and a number when a
     * duplicate name is found.
     */
    sep?: H.In<string>;
  }): H.Ref<string>;
  /**
   * Helper function for storing unique names which may have special characters
   * stripped and restricted to a maximum length.
   * @returns A unique name.
   * @param key Unique item this name belongs to, name_dict[key] will be reused when available. This can be the object, mesh, material, etc instance itself. Any hashable object associated with the *name*.
   * @param name The name used to create a unique value in *name_dict*.
   * @param name_dict This is used to cache namespace to ensure no collisions occur, this should be an empty dict initially and only modified by this function.
   * @param name_max Maximum length of the name. When ``-1`` the name is unlimited.
   * @param clean_func Function to call on *name* before creating a unique value.
   * @param sep Separator to use when between the name and a number when a duplicate name is found.
   */
  unique_name(kw: {
    /**
     * Unique item this name belongs to, name_dict[key] will be reused
     * when available.
     * This can be the object, mesh, material, etc instance itself.
     * Any hashable object associated with the *name*.
     */
    key: any;
    /** The name used to create a unique value in *name_dict*. */
    name: H.In<string>;
    /**
     * This is used to cache namespace to ensure no collisions
     * occur, this should be an empty dict initially and only modified by this
     * function.
     */
    name_dict: H.In<H.DictIn<string>>;
    /** Maximum length of the name. When ``-1`` the name is unlimited. */
    name_max?: H.In<number>;
    /** Function to call on *name* before creating a unique value. */
    clean_func?: any;
    /**
     * Separator to use when between the name and a number when a
     * duplicate name is found.
     */
    sep?: H.In<string>;
  }): H.Ref<string>;
  /**
   * Unpack a list of faces (triangles or quads) into a flat list,
   * padding triangles with a zero to fit into groups of four.
   * @returns A flat list of face indices, padded with zeros.
   * @param list_of_tuples A sequence of face index tuples (3 or 4 elements each).
   */
  unpack_face_list(list_of_tuples: H.In<readonly (readonly number[])[]>): H.Ref<number[]>;
  /**
   * Unpack a list of faces (triangles or quads) into a flat list,
   * padding triangles with a zero to fit into groups of four.
   * @returns A flat list of face indices, padded with zeros.
   * @param list_of_tuples A sequence of face index tuples (3 or 4 elements each).
   */
  unpack_face_list(kw: {
    /** A sequence of face index tuples (3 or 4 elements each). */
    list_of_tuples: H.In<readonly (readonly number[])[]>;
  }): H.Ref<number[]>;
  /**
   * Flatten a sequence of tuples into a single list.
   * @returns A flat list of all values.
   * @param list_of_tuples A sequence of tuples to unpack.
   */
  unpack_list(list_of_tuples: H.In<readonly (readonly any[])[]>): H.Ref<any[]>;
  /**
   * Flatten a sequence of tuples into a single list.
   * @returns A flat list of all values.
   * @param list_of_tuples A sequence of tuples to unpack.
   */
  unpack_list(kw: {
    /** A sequence of tuples to unpack. */
    list_of_tuples: H.In<readonly (readonly any[])[]>;
  }): H.Ref<any[]>;
}

/** bpy_extras.io_utils.ExportHelper */
export interface ExportHelper {
  /**
   * Invoke the file selector for exporting, setting a default filepath
   * based on the current blend file name.
   * @returns The operator return value.
   * @param context The context.
   * @param event The window event.
   */
  invoke(context: R.Context, event: R.Event): H.Ref<Set<string>>;
  /**
   * Invoke the file selector for exporting, setting a default filepath
   * based on the current blend file name.
   * @returns The operator return value.
   * @param context The context.
   * @param event The window event.
   */
  invoke(kw: {
    /** The context. */
    context: R.Context;
    /** The window event. */
    event: R.Event;
  }): H.Ref<Set<string>>;
  /**
   * Validate the filepath and axis conversion settings.
   * @returns True when a property was updated.
   * @param context The context.
   */
  check(context: R.Context): H.Ref<boolean>;
  /**
   * Validate the filepath and axis conversion settings.
   * @returns True when a property was updated.
   * @param context The context.
   */
  check(kw: {
    /** The context. */
    context: R.Context;
  }): H.Ref<boolean>;
}
/** The class bpy_extras.io_utils.ExportHelper: called, a new one. */
export interface ExportHelperClass {
  (): H.Own<ExportHelper>;
  /**
   * Returns True when the argument is true, False otherwise.
   * The builtins True and False are the only two instances of the class bool.
   * The class bool is a subclass of the class int, and cannot be subclassed.
   */
  readonly check_extension: H.Ref<boolean>;
}

/** bpy_extras.io_utils.ImportHelper */
export interface ImportHelper {
  /**
   * Invoke the file selector for importing.
   * @returns The operator return value.
   * @param context The context.
   * @param event The window event.
   */
  invoke(context: R.Context, event: R.Event): H.Ref<Set<string>>;
  /**
   * Invoke the file selector for importing.
   * @returns The operator return value.
   * @param context The context.
   * @param event The window event.
   */
  invoke(kw: {
    /** The context. */
    context: R.Context;
    /** The window event. */
    event: R.Event;
  }): H.Ref<Set<string>>;
  /**
   * Invoke as a popup confirmation dialog when a filepath is already set,
   * otherwise fall back to the file selector.
   * @returns The operator return value.
   * @param context The context.
   * @param confirm_text Label for the confirm button, defaults to the operator label.
   */
  invoke_popup(context: R.Context, confirm_text?: H.In<string>): H.Ref<Set<string>>;
  /**
   * Invoke as a popup confirmation dialog when a filepath is already set,
   * otherwise fall back to the file selector.
   * @returns The operator return value.
   * @param context The context.
   * @param confirm_text Label for the confirm button, defaults to the operator label.
   */
  invoke_popup(context: R.Context, kw: {
    /**
     * Label for the confirm button,
     * defaults to the operator label.
     */
    confirm_text?: H.In<string>;
  }): H.Ref<Set<string>>;
  /**
   * Invoke as a popup confirmation dialog when a filepath is already set,
   * otherwise fall back to the file selector.
   * @returns The operator return value.
   * @param context The context.
   * @param confirm_text Label for the confirm button, defaults to the operator label.
   */
  invoke_popup(kw: {
    /** The context. */
    context: R.Context;
    /**
     * Label for the confirm button,
     * defaults to the operator label.
     */
    confirm_text?: H.In<string>;
  }): H.Ref<Set<string>>;
  /**
   * Validate axis conversion settings.
   * @returns True when a property was updated.
   * @param context The context.
   */
  check(context: R.Context): H.Ref<boolean>;
  /**
   * Validate axis conversion settings.
   * @returns True when a property was updated.
   * @param context The context.
   */
  check(kw: {
    /** The context. */
    context: R.Context;
  }): H.Ref<boolean>;
}
/** The class bpy_extras.io_utils.ImportHelper: called, a new one. */
export interface ImportHelperClass {
  (): H.Own<ImportHelper>;
}