/**
 * Copyright (c) 2025 TWork Team. All rights reserved.
 * This source code is licensed under the TWork License.
 */

/**
 * `@twork/office/bridge` — public surface.
 *
 * Bridge between browser docx editors (e.g. @eigenpal/docx-editor-react) and the
 * @twork/office/cli binary. See README for design notes.
 */

export type {
  DocxBridgeOwner,
  DocxBridgeUploadResp,
  DocxBridgeRunExtras,
  DocxBridgeListEntry,
} from './types.ts'

export {
  TempStore,
  TempStoreError,
  getTempStore,
  __setTempStoreForTest,
  type TempStoreOptions,
} from './temp-store.ts'

export {
  expandPlaceholders,
  hasPlaceholder,
  type PlaceholderContext,
} from './placeholders.ts'

export {
  createDocxBridgeRouter,
  type DocxBridgeRouterOptions,
  type OwnerResolver,
} from './web-routes.ts'
