import type { AppCatalogBootstrap, AppCatalogEntry, IdentityCatalogEntry, CatalogDescriptor, CatalogItemReference, CatalogItemValidationReport, CatalogGetItemResult, CatalogGetItemResultWithOutcome, CatalogGetItemByFieldResult, CatalogGetItemByFieldResultWithOutcome, CatalogListResult, CatalogListResultWithOutcome, CatalogNativeItemOptions, CatalogQueryOptions, CataloxResult, MoveNativeCatalogItemScopeInput, CatalogValidationReport, CreateCatalogInput, UpsertCatalogDescriptorInput, ExportInventoryData, ExportInventoryInput, CatalogSnapshotExportInput, CataloxExportV1, InventoryReportData, InventoryReportInput, ItemId, StoreId, StoreAppBindingRecord, ListAppCatalogsInput, ListCatalogsForIdentityInput, ListAllCatalogsInput, FindCatalogsInput, CatalogSummary, UnifiedCatalogItem, UpdateCatalogInput, StoreCatalogBootstrap, SearchCatalogItemsInput, UpsertCatalogItemRelationInput, DeleteCatalogItemRelationInput } from "@x12i/catalox-contracts/index.js"; import type { NativeCatalogItemRecord } from "@x12i/catalox-contracts/items.js"; import type { AppId, CatalogId } from "@x12i/catalox-contracts/ids.js"; import type { CataloxContext } from "@x12i/catalox-contracts/context.js"; import type { BindCatalogInput } from "@x12i/catalox-contracts/bindings.js"; import type { BackupDataInput, BackupDataResult } from "@x12i/catalox-contracts/backup.js"; import type { ExportAllFirestoreCollectionsToGcsInput, ExportAllFirestoreCollectionsToGcsResult, ExportFirestoreCollectionToGcsInput, ExportFirestoreCollectionToGcsResult, RestoreAllFirestoreCollectionsFromGcsInput, RestoreAllFirestoreCollectionsFromGcsResult, RestoreFirestoreCollectionFromGcsInput, RestoreFirestoreCollectionFromGcsResult } from "@x12i/catalox-contracts/gcs-firestore-transfer.js"; import type { CompareAllFirestoreCollectionsWithGcsManifestInput, CompareAllFirestoreCollectionsWithGcsResult, CompareFirestoreCollectionWithGcsInput, CompareFirestoreCollectionWithGcsResult } from "@x12i/catalox-contracts/gcs-firestore-compare.js"; import type { RestoreFirestoreBackupFromGcsInput, RestoreFirestoreBackupFromGcsResult, PruneGcsBackupRunsInput, PruneGcsBackupRunsResult, UndoFirestoreRestoreInput, UndoFirestoreRestoreResult } from "@x12i/catalox-contracts/restore.js"; import type { CataloxGcsBackupManifestV1, FirestoreGcsExportManifestV1 } from "@x12i/catalox-contracts/gcs-firestore-transfer.js"; import type { CatalogItemHistoryEventV1, CatalogItemHistoryIndexRecord, ListCatalogItemHistoryInput, ListCatalogItemHistoryResult, ListCatalogItemFieldHistoryInput, ListCatalogItemFieldHistoryResult, RestoreCatalogItemFromHistoryInput, RestoreCatalogItemFieldFromHistoryInput, ReplayCatalogToPointInTimeInput } from "@x12i/catalox-contracts/record-history.js"; import type { DeleteCatalogInput, DeleteCatalogResult, RenameCatalogInput, RenameCatalogResult, RestoreDeletedCatalogInput, RestoreDeletedCatalogResult } from "@x12i/catalox-contracts/catalog-lifecycle.js"; import type { CatalogListRenderMap, CatalogItemRenderMap } from "@x12i/catalox-contracts/render-map.js"; import type { CatalogDesignObjectRecord, CatalogDesignScope, CatalogPresentationProfileRecord, ResolvedCatalogPresentationBinding } from "@x12i/catalox-contracts/index.js"; import type { MigrateNativeCatalogLayoutInput, MigrateNativeCatalogLayoutResult } from "../migrations/migrate-native-catalog-layout.js"; import type { NativeCatalogLayoutDiagnosticRow } from "./native-catalog-layout-diagnostics.js"; import type { Catalox } from "./catalox.js"; /** * {@link Catalox} with a fixed {@link CataloxContext}: every method omits the first `context` argument. * Use {@link Catalox.withContext} or {@link bindCataloxContext}. */ export declare class CataloxBound { private readonly catalox; readonly context: CataloxContext; constructor(catalox: Catalox, context: CataloxContext); buildCatalogListRenderMap(catalogId: CatalogId, options?: { limit?: number; resolveSources?: boolean; maxSourceOptions?: number; displayContext?: "grid" | "list" | "cards"; }): Promise; buildCatalogItemRenderMap(catalogId: CatalogId, itemId: ItemId, options?: { includeReferences?: boolean; resolveSources?: boolean; maxSourceOptions?: number; displayContext?: "form" | "card" | "grid-row" | "list-row"; }): Promise; getDesignObject(designId: string): Promise; listDesignObjects(scope: CatalogDesignScope): Promise; getCatalogPresentationBinding(catalogId: CatalogId, role: Exclude, options?: { mode?: import("@x12i/catalox-contracts/renderer-snippets.js").CatalogRendererMode; displayContext?: "grid" | "list" | "cards" | "form"; profiles?: CatalogPresentationProfileRecord[]; includeSnippet?: boolean; designObjects?: CatalogDesignObjectRecord[]; includeDesignObjects?: boolean; designScope?: CatalogDesignScope; }): Promise; buildCatalogListPresentationSurface(catalogId: CatalogId, options?: { limit?: number; resolveSources?: boolean; maxSourceOptions?: number; displayContext?: "grid" | "list" | "cards"; mode?: import("@x12i/catalox-contracts/renderer-snippets.js").CatalogRendererMode; includeSnippet?: boolean; includeDesignObjects?: boolean; designScope?: CatalogDesignScope; profiles?: CatalogPresentationProfileRecord[]; designObjects?: CatalogDesignObjectRecord[]; }): Promise<{ map: CatalogListRenderMap; binding: ResolvedCatalogPresentationBinding; }>; buildCatalogItemPresentationSurface(catalogId: CatalogId, itemId: ItemId, options?: { includeReferences?: boolean; resolveSources?: boolean; maxSourceOptions?: number; displayContext?: "form" | "card" | "grid-row" | "list-row"; mode?: import("@x12i/catalox-contracts/renderer-snippets.js").CatalogRendererMode; includeSnippet?: boolean; includeDesignObjects?: boolean; designScope?: CatalogDesignScope; profiles?: CatalogPresentationProfileRecord[]; designObjects?: CatalogDesignObjectRecord[]; }): Promise<{ map: CatalogItemRenderMap; binding: ResolvedCatalogPresentationBinding; }>; listAppCatalogs(input?: ListAppCatalogsInput): Promise; listCatalogsForIdentity(input: ListCatalogsForIdentityInput): Promise; listAllCatalogs(input?: ListAllCatalogsInput): Promise; upsertCatalogItemRelation(input: UpsertCatalogItemRelationInput): Promise<{ referenceId: string; }>; deleteCatalogItemRelation(input: DeleteCatalogItemRelationInput): Promise; listCatalogItemRelationsToItem(catalogId: CatalogId, itemId: ItemId): Promise; findCatalogs(input: FindCatalogsInput): Promise; getCatalogDescriptor(catalogId: CatalogId): Promise; upsertCatalogDescriptor(catalogId: CatalogId, input: UpsertCatalogDescriptorInput): Promise; getCatalogRendererSnippet(catalogId: CatalogId, role: "core" | "list" | "grid" | "item" | "report" | "dashboard", mode?: "readonly" | "editable"): Promise; getAppCatalogBootstrap(appId?: AppId): Promise; getStoreCatalogBootstrap(storeId: StoreId): Promise; listCatalogItems(catalogId: CatalogId, options?: CatalogQueryOptions): Promise; searchCatalogItems(catalogId: CatalogId, input: SearchCatalogItemsInput): Promise; listCatalogItemsWithOutcome(catalogId: CatalogId, options?: CatalogQueryOptions): Promise; getCatalogItem(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise; getCatalogItemWithOutcome(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise; getCatalogItemByField(catalogId: CatalogId, fieldPath: string, value: unknown, options?: CatalogNativeItemOptions): Promise; getCatalogItemByFieldWithOutcome(catalogId: CatalogId, fieldPath: string, value: unknown, options?: CatalogNativeItemOptions): Promise; getCatalogItemResult(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise>; listCatalogItemsResult(catalogId: CatalogId, options?: CatalogQueryOptions): Promise>; getCatalogItemByFieldResult(catalogId: CatalogId, fieldPath: string, value: unknown, options?: CatalogNativeItemOptions): Promise>; validateCatalog(catalogId: CatalogId): Promise; validateCatalogItem(catalogId: CatalogId, itemId: ItemId): Promise; getCatalogItemReferences(catalogId: CatalogId, itemId: ItemId): Promise; listCatalogReferences(catalogId: CatalogId): Promise; getApp(appId?: AppId): Promise; listApps(): Promise; upsertApp(appId: AppId, input: import("@x12i/catalox-contracts/inputs.js").UpsertAppInput): Promise; listCatalogBindings(input?: import("@x12i/catalox-contracts/inputs.js").ListCatalogBindingsInput): Promise; updateCatalogBinding(input: import("@x12i/catalox-contracts/inputs.js").UpdateCatalogBindingInput): Promise; getCatalogManagementDetail(catalogId: CatalogId): Promise; listIdentityBindings(input?: import("@x12i/catalox-contracts/inputs.js").ListIdentityBindingsInput): Promise; upsertIdentityBinding(input: import("@x12i/catalox-contracts/inputs.js").UpsertIdentityBindingInput): Promise; deleteIdentityBinding(bindingId: string): Promise; createCatalog(input: CreateCatalogInput): Promise; updateCatalog(catalogId: CatalogId, patch: UpdateCatalogInput): Promise; getCatalog(catalogId: CatalogId): Promise; listCatalogs(options?: CatalogQueryOptions): Promise; bindCatalogToApp(input: BindCatalogInput): Promise; unbindCatalogFromApp(appId: AppId, catalogId: CatalogId): Promise; bindAppToStore(input: { storeId: StoreId; appId: AppId; metadata?: Record; }): Promise; unbindAppFromStore(storeId: StoreId, appId: AppId): Promise; listAppsForStore(storeId: StoreId): Promise; ensureCatalog(catalog: { catalogId: CatalogId; name: string; status?: "active" | "disabled" | "draft"; }): Promise; ensureBinding(input: { appId: AppId; catalogId: CatalogId; access?: { canRead?: boolean; canWrite?: boolean; canAdmin?: boolean; }; }): Promise; createNativeCatalogItem(catalogId: CatalogId, input: Record): Promise; updateNativeCatalogItem(catalogId: CatalogId, itemId: ItemId, patch: Record, options?: CatalogNativeItemOptions): Promise; deleteNativeCatalogItem(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise; restoreNativeCatalogItem(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise; moveNativeCatalogItemScope(catalogId: CatalogId, itemId: ItemId, input: MoveNativeCatalogItemScopeInput): Promise; upsertNativeCatalogItem(catalogId: CatalogId, input: Record): Promise; batchUpsertNativeCatalogItems(catalogId: CatalogId, items: Array>): Promise; replaceNativeCatalogItem(catalogId: CatalogId, record: NativeCatalogItemRecord): Promise; replaceNativeCatalogItems(catalogId: CatalogId, records: NativeCatalogItemRecord[], options?: { atomic?: boolean; }): Promise; getNativeCatalogItem(catalogId: CatalogId, itemId: ItemId, options?: CatalogNativeItemOptions): Promise; importCatalogItemsFromJson(json: string): T; exportCatalogItemsToJson(value: unknown, pretty?: boolean): string; exportInventory(input?: ExportInventoryInput): Promise; exportInventoryToJson(input?: ExportInventoryInput, pretty?: boolean): Promise; exportCatalogSnapshot(input?: CatalogSnapshotExportInput): Promise; exportCatalogSnapshotToJson(input?: CatalogSnapshotExportInput, pretty?: boolean): Promise; generateInventoryReport(input?: InventoryReportInput): Promise<{ markdown: string; data: InventoryReportData; }>; syncMappedCatalog(catalogId: CatalogId): Promise<{ syncStatus: "idle"; lastSyncedAt?: never; } | { syncStatus: "success"; lastSyncedAt: string; }>; backupData(input: BackupDataInput): Promise; undoFirestoreRestore(input: UndoFirestoreRestoreInput): Promise; restoreFirestoreBackupFromGcs(input: RestoreFirestoreBackupFromGcsInput): Promise; pruneGcsBackupRuns(input: PruneGcsBackupRunsInput): Promise; deleteCataloxGcsBackupRun(input: { gcsBucket: string; gcsRunFolder: string; }): Promise<{ ok: boolean; deleted: number; issues: import("@x12i/catalox-contracts/restore.js").RestoreFirestoreBackupFromGcsIssue[]; }>; cataloxGcsBackupManifestToExportManifest(manifest: CataloxGcsBackupManifestV1, gcsRunFolder: string): FirestoreGcsExportManifestV1; reportNativeCatalogLayoutDiagnostics(input?: { catalogIds?: CatalogId[]; appId?: string; }): Promise; migrateNativeCatalogLayout(input: MigrateNativeCatalogLayoutInput): Promise; exportFirestoreCollectionToGcs(input: Omit): Promise; exportAllFirestoreCollectionsToGcs(input: Omit): Promise; restoreFirestoreCollectionFromGcs(input: Omit): Promise; restoreAllFirestoreCollectionsFromGcsManifest(input: Omit): Promise; compareFirestoreCollectionWithGcsNdjson(input: Omit): Promise; compareAllFirestoreCollectionsWithGcsManifest(input: Omit): Promise; listCatalogItemHistory(catalogId: CatalogId, input?: ListCatalogItemHistoryInput): Promise; getCatalogItemHistoryEvent(eventId: string): Promise<{ index: CatalogItemHistoryIndexRecord; payload: CatalogItemHistoryEventV1; } | null>; restoreCatalogItemFromHistory(eventId: string, input: RestoreCatalogItemFromHistoryInput): Promise; listCatalogItemFieldHistory(catalogId: CatalogId, input: ListCatalogItemFieldHistoryInput): Promise; restoreCatalogItemFieldFromHistory(eventId: string, input: RestoreCatalogItemFieldFromHistoryInput): Promise; replayCatalogToPointInTime(catalogId: CatalogId, input: ReplayCatalogToPointInTimeInput): Promise<{ upserted: number; deleted: number; }>; deleteCatalog(catalogId: CatalogId, input: DeleteCatalogInput): Promise; restoreDeletedCatalog(input: RestoreDeletedCatalogInput): Promise; renameCatalog(fromCatalogId: CatalogId, toCatalogId: CatalogId, input?: RenameCatalogInput): Promise; } export declare function bindCataloxContext(catalox: Catalox, context: CataloxContext): CataloxBound; //# sourceMappingURL=catalox-bound.d.ts.map