"use strict";
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./annotations/ElementDrivesTextAnnotation"), exports);
__exportStar(require("./annotations/FrameGeometry"), exports);
__exportStar(require("./annotations/LeaderGeometry"), exports);
__exportStar(require("./annotations/TextAnnotationElement"), exports);
__exportStar(require("./annotations/TextAnnotationGeometry"), exports);
__exportStar(require("./annotations/TextBlockGeometry"), exports);
__exportStar(require("./annotations/TextBlockLayout"), exports);
__exportStar(require("./BackendHubAccess"), exports);
__exportStar(require("./BackendLoggerCategory"), exports);
__exportStar(require("./BisCoreSchema"), exports);
__exportStar(require("./BlobContainerService"), exports);
__exportStar(require("./BriefcaseManager"), exports);
__exportStar(require("./CatalogDb"), exports);
__exportStar(require("./Category"), exports);
__exportStar(require("./ChangedElementsDb"), exports);
__exportStar(require("./ChangeSummaryManager"), exports);
__exportStar(require("./ChannelControl"), exports);
__exportStar(require("./CheckpointManager"), exports);
__exportStar(require("./ClassRegistry"), exports);
__exportStar(require("./CloudSqlite"), exports);
__exportStar(require("./CodeService"), exports);
__exportStar(require("./CodeSpecs"), exports);
__exportStar(require("./DevTools"), exports);
__exportStar(require("./DisplayStyle"), exports);
__exportStar(require("./domains/FunctionalElements"), exports);
__exportStar(require("./domains/FunctionalSchema"), exports);
__exportStar(require("./domains/GenericElements"), exports);
__exportStar(require("./domains/GenericSchema"), exports);
__exportStar(require("./ECDb"), exports);
__exportStar(require("./ECSchemaXmlContext"), exports);
__exportStar(require("./ECSqlStatement"), exports);
__exportStar(require("./Element"), exports);
__exportStar(require("./ElementAspect"), exports);
__exportStar(require("./ElementGraphics"), exports);
__exportStar(require("./ElementTreeWalker"), exports);
__exportStar(require("./Entity"), exports);
__exportStar(require("./EntityReferences"), exports);
__exportStar(require("./ExportGraphics"), exports);
__exportStar(require("./ExternalSource"), exports);
__exportStar(require("./FontFile"), exports);
__exportStar(require("./GeoCoordConfig"), exports);
__exportStar(require("./GeographicCRSServices"), exports);
__exportStar(require("./ImageSourceConversion"), exports);
__exportStar(require("./IModelDb"), exports);
__exportStar(require("./IModelDbFonts"), exports);
__exportStar(require("./IModelElementCloneContext"), exports);
__exportStar(require("./IModelHost"), exports);
__exportStar(require("./IModelJsFs"), exports);
__exportStar(require("./SchemaSync"), exports);
__exportStar(require("./IpcHost"), exports);
__exportStar(require("./LineStyle"), exports);
__exportStar(require("./LocalhostIpcHost"), exports);
__exportStar(require("./LocalHub"), exports);
__exportStar(require("./LockControl"), exports);
__exportStar(require("./Material"), exports);
__exportStar(require("./Model"), exports);
__exportStar(require("./NativeAppStorage"), exports);
__exportStar(require("./NativeHost"), exports);
__exportStar(require("./NavigationRelationship"), exports);
__exportStar(require("./PropertyStore"), exports);
__exportStar(require("./Relationship"), exports);
__exportStar(require("./rpc/tracing"), exports);
__exportStar(require("./Schema"), exports);
__exportStar(require("./SchemaUtils"), exports);
__exportStar(require("./SheetIndex"), exports);
__exportStar(require("./SQLiteDb"), exports);
__exportStar(require("./SqliteStatement"), exports);
__exportStar(require("./Texture"), exports);
__exportStar(require("./TileStorage"), exports);
__exportStar(require("./TxnManager"), exports);
__exportStar(require("./ViewDefinition"), exports);
__exportStar(require("./ViewStore"), exports);
__exportStar(require("./workspace/Settings"), exports);
__exportStar(require("./workspace/SettingsSchemas"), exports);
__exportStar(require("./workspace/Workspace"), exports);
__exportStar(require("./workspace/WorkspaceEditor"), exports);
__exportStar(require("./SqliteChangesetReader"), exports);
__exportStar(require("./ChangesetECAdaptor"), exports);
__exportStar(require("./internal/cross-package"), exports);
const globalSymbolCoreBackend = Symbol.for("itwin.core.backend.globals");
if (globalThis[globalSymbolCoreBackend]) {
    // Get the stack trace from when the module was first loaded
    const firstLoadStack = globalThis[globalSymbolCoreBackend].stack;
    const error = new Error("Multiple @itwin/core-backend imports detected! This may happen if:\n" +
        "- You have multiple versions of the package installed\n" +
        "- Your bundling configuration is incorrect\n" +
        "- You're importing from both ESM and CommonJS versions");
    /* eslint-disable no-console */
    console.error("Duplicate @itwin/core-backend import:", error);
    console.error("First import occurred at:", firstLoadStack);
    console.error("Current import occurred at:", error.stack);
    /* eslint-enable no-console */
    throw error;
}
else {
    globalThis[globalSymbolCoreBackend] = {
        stack: new Error().stack,
    };
}
/** @docs-package-description
 * The core-backend package always runs on the computer with a local Briefcase.
 *
 * It contains classes that [backend code]($docs/learning/backend/index.md) can use to work with directly with iModels.
 */
/**
 * @docs-group-description BlobContainers
 * Classes for working with cloud-based blob containers.
 */
/**
 * @docs-group-description Codes
 * Classes for working with [Codes]($docs/BIS/guide/fundamentals/codes.md).
 * See [the learning articles]($docs/learning/backend/index.md).
 */
/**
 * @docs-group-description ECDb
 * Classes for working with ECDb.
 */
/**
 * @docs-group-description ECSQL
 * Classes for working with [ECSQL]($docs/learning/ECSQL.md)
 */
/**
 * @docs-group-description ElementAspects
 * Subclasses of [ElementAspects]($docs/bis/guide/fundamentals/elementaspect-fundamentals.md).
 * See [the learning articles]($docs/learning/backend/index.md).
 */
/**
 * @docs-group-description ElementGeometry
 * Classes for defining the symbology and geometry of geometric elements
 */
/**
 * @docs-group-description Elements
 * Subclasses of [Elements]($docs/BIS/guide/fundamentals/element-fundamentals.md).
 * See [the learning articles]($docs/learning/backend/index.md).
 */
/**
  * @docs-group-description ExportGraphics
  * APIs for producing low-level graphics primitives from element geometry.
  */
/**
 * @docs-group-description HubAccess
 * APIs for working with IModelHub
 */
/**
 * @docs-group-description Images
 * APIs for encoding and decoding images
 */
/**
 * @docs-group-description IModelHost
 * Classes for configuring and administering the backend [host]($docs/learning/backend/IModelHost.md).
 * See [the learning article]($docs/learning/backend/IModelHost.md).
 */
/**
 * @docs-group-description iModels
 * Classes for working with [iModels]($docs/learning/iModels.md).
 * See [the learning article]($docs/learning/backend/index.md).
 */
/**
 * @docs-group-description Logging
 * Logger categories used by this package.
 */
/**
 * @docs-group-description Models
 * Subclasses of [Models]($docs/BIS/guide/fundamentals/model-fundamentals.md).
 * See [the learning articles]($docs/learning/backend/index.md).
 */
/**
 * @docs-group-description NativeApp
 * Classes for working with Mobile/Desktop Application.
 */
/**
 * @docs-group-description Portability
 */
/**
 * @docs-group-description Relationships
 * Classes that describe the [relationships]($docs/bis/guide/fundamentals/relationship-fundamentals.md) between elements.
 */
/**
 * @docs-group-description RpcInterface
 * Classes for working with [RpcInterfaces]($docs/learning/RpcInterface.md).
 */
/**
 * @docs-group-description Schema
 * Classes for working with [ECSchemas]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
 */
/**
 * @docs-group-description SQLite
 * Classes for working directly with SQLite
 */
/**
 * @docs-group-description SQLiteDb
 * Classes for working with SQLiteDb.
 */
/**
 * @docs-group-description TileStorage
 * Class for working with cloud storage using iTwin/object-storage cloud providers
 */
/**
 * @docs-group-description ViewDefinitions
 * Classes for working with Elements that define what appears in [Views]($docs/learning/frontend/views.md).
 * See [the learning articles]($docs/learning/backend/createelements/#orthographicviewdefinition).
 */
/**
 * @docs-group-description Workspace
 * APIs for loading and using Settings and Workspace resources
 */
//# sourceMappingURL=core-backend.js.map