@powerhousedao/reactor-browser 6.2.3-dev.8 → 6.2.3-dev.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/{attachment-service-D3EhiAJ7.d.ts → attachment-service-DPWkKp3y.d.ts} +636 -83
  2. package/dist/attachment-service-DPWkKp3y.d.ts.map +1 -0
  3. package/dist/{client-DjK30EQ-.js → client-BFnMV-EO.js} +39 -22
  4. package/dist/client-BFnMV-EO.js.map +1 -0
  5. package/dist/{client-D66jVnot.js → client-BUpynoY6.js} +345 -33
  6. package/dist/client-BUpynoY6.js.map +1 -0
  7. package/dist/{client-BIHN_UyR.d.ts → client-XPGQrO4a.d.ts} +3 -3
  8. package/dist/client-XPGQrO4a.d.ts.map +1 -0
  9. package/dist/dispatch-C8J9jQ-o.js +1171 -0
  10. package/dist/dispatch-C8J9jQ-o.js.map +1 -0
  11. package/dist/document-by-id-Dpp76ZNE.js +16 -0
  12. package/dist/document-by-id-Dpp76ZNE.js.map +1 -0
  13. package/dist/document-model-modules-XrYfGXt8.js +644 -0
  14. package/dist/document-model-modules-XrYfGXt8.js.map +1 -0
  15. package/dist/{document-operations-WeE6wIDt.js → document-operations-CdfiLNQN.js} +1919 -278
  16. package/dist/document-operations-CdfiLNQN.js.map +1 -0
  17. package/dist/global-BSyOOTvL.d.ts +647 -0
  18. package/dist/global-BSyOOTvL.d.ts.map +1 -0
  19. package/dist/{index-B33TKEqp.d.ts → index-Bjm0bSzf.d.ts} +19 -98
  20. package/dist/index-Bjm0bSzf.d.ts.map +1 -0
  21. package/dist/{index-BIVDXw3K.d.ts → index-rtDmzViP.d.ts} +3 -3
  22. package/dist/index-rtDmzViP.d.ts.map +1 -0
  23. package/dist/index.d.ts +813 -410
  24. package/dist/index.d.ts.map +1 -1
  25. package/dist/index.js +771 -119
  26. package/dist/index.js.map +1 -1
  27. package/dist/inspector-proxy-DODqs15F.d.ts +25 -0
  28. package/dist/inspector-proxy-DODqs15F.d.ts.map +1 -0
  29. package/dist/make-ph-event-functions-B5GU5xcR.js +180 -0
  30. package/dist/make-ph-event-functions-B5GU5xcR.js.map +1 -0
  31. package/dist/navigation-BqphkrOB.js +302 -0
  32. package/dist/navigation-BqphkrOB.js.map +1 -0
  33. package/dist/{pglite-CntadC_p-9NDG14dS.d.ts → pglite-CntadC_p-DTkdF8sr.d.ts} +11 -33
  34. package/dist/pglite-CntadC_p-DTkdF8sr.d.ts.map +1 -0
  35. package/dist/{relational-D1RB45sA.js → relational-DZuyKp2y.js} +66 -5
  36. package/dist/relational-DZuyKp2y.js.map +1 -0
  37. package/dist/{renown-rqK8sokh.js → renown-BtjgHBjH.js} +33 -28
  38. package/dist/{renown-rqK8sokh.js.map → renown-BtjgHBjH.js.map} +1 -1
  39. package/dist/{renown-BHxwP7xU.js → renown-BxkZYzbQ.js} +2 -2
  40. package/dist/{renown-BHxwP7xU.js.map → renown-BxkZYzbQ.js.map} +1 -1
  41. package/dist/src/ai/index.d.ts +53 -70
  42. package/dist/src/ai/index.d.ts.map +1 -1
  43. package/dist/src/ai/index.js +12 -28
  44. package/dist/src/ai/index.js.map +1 -1
  45. package/dist/src/analytics/index.d.ts +36 -44
  46. package/dist/src/analytics/index.d.ts.map +1 -1
  47. package/dist/src/analytics/index.js +4 -4
  48. package/dist/src/analytics/index.js.map +1 -1
  49. package/dist/src/document-model.d.ts +3 -4
  50. package/dist/src/document-model.d.ts.map +1 -1
  51. package/dist/src/document-model.js.map +1 -1
  52. package/dist/src/graphql/client.d.ts +4 -3
  53. package/dist/src/graphql/client.js +1 -1
  54. package/dist/src/graphql-client/entry.d.ts +5 -4
  55. package/dist/src/graphql-client/entry.js +4 -4
  56. package/dist/src/relational/index.d.ts +15 -9
  57. package/dist/src/relational/index.d.ts.map +1 -1
  58. package/dist/src/relational/index.js +1 -1
  59. package/dist/src/renown/index.d.ts +3 -2
  60. package/dist/src/renown/index.js +2 -2
  61. package/dist/src/rpc/index.d.ts +214 -140
  62. package/dist/src/rpc/index.d.ts.map +1 -1
  63. package/dist/src/rpc/index.js +587 -622
  64. package/dist/src/rpc/index.js.map +1 -1
  65. package/dist/{store-BJYcr_FL.js → store-DInXcjal.js} +1 -1
  66. package/dist/{store-BJYcr_FL.js.map → store-DInXcjal.js.map} +1 -1
  67. package/dist/{switchboard-CaXQ4-5Q.js → switchboard-CYTCYt4Z.js} +61 -11
  68. package/dist/switchboard-CYTCYt4Z.js.map +1 -0
  69. package/dist/{types-6vDzbRRS.d.ts → types-520nWrB3.d.ts} +2 -2
  70. package/dist/types-520nWrB3.d.ts.map +1 -0
  71. package/dist/{types-Dcv1ZLoW.d.ts → types-BNVqRNli.d.ts} +320 -18
  72. package/dist/types-BNVqRNli.d.ts.map +1 -0
  73. package/package.json +21 -21
  74. package/dist/attachment-service-D3EhiAJ7.d.ts.map +0 -1
  75. package/dist/client-BIHN_UyR.d.ts.map +0 -1
  76. package/dist/client-D66jVnot.js.map +0 -1
  77. package/dist/client-DjK30EQ-.js.map +0 -1
  78. package/dist/document-by-id-B4FIzG1w.js +0 -519
  79. package/dist/document-by-id-B4FIzG1w.js.map +0 -1
  80. package/dist/document-model-modules-bTP87nyr.js +0 -419
  81. package/dist/document-model-modules-bTP87nyr.js.map +0 -1
  82. package/dist/document-operations-WeE6wIDt.js.map +0 -1
  83. package/dist/global-OuINvEGT.d.ts +0 -401
  84. package/dist/global-OuINvEGT.d.ts.map +0 -1
  85. package/dist/index-B33TKEqp.d.ts.map +0 -1
  86. package/dist/index-BIVDXw3K.d.ts.map +0 -1
  87. package/dist/inspector-proxy-6h5VKAwt.d.ts +0 -257
  88. package/dist/inspector-proxy-6h5VKAwt.d.ts.map +0 -1
  89. package/dist/make-ph-event-functions-DBq3iWYn.js +0 -53
  90. package/dist/make-ph-event-functions-DBq3iWYn.js.map +0 -1
  91. package/dist/pglite-CntadC_p-9NDG14dS.d.ts.map +0 -1
  92. package/dist/relational-D1RB45sA.js.map +0 -1
  93. package/dist/switchboard-CaXQ4-5Q.js.map +0 -1
  94. package/dist/types-6vDzbRRS.d.ts.map +0 -1
  95. package/dist/types-Dcv1ZLoW.d.ts.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,45 +1,22 @@
1
- import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-6vDzbRRS.js";
2
- import { $ as PHProcessorsGlobalConfig, A as FailedInstallation, B as PHAppConfigSetters, C as PHToastOptions, D as TimelineItem, E as TimelineDividerItem, F as FullPHGlobalConfig, G as PHDocumentEditorConfigSetters, H as PHDocumentEditorConfig, I as PHAnalyticsGlobalConfig, J as PHGlobalConfigHooks, K as PHDrivesGlobalConfig, L as PHAppConfig, M as IPackageDiscoveryService, N as PendingInstallation, O as DiscoveryEvent, P as PHModal, Q as PHGlobalConfigSettersForKey, R as PHAppConfigHooks, S as PHToastFn, T as TimelineBarItem, U as PHDocumentEditorConfigHooks, V as PHCommonGlobalConfig, W as PHDocumentEditorConfigKey, X as PHGlobalConfigKey, Y as PHGlobalConfigHooksForKey, Z as PHGlobalConfigSetters, _ as useDropNode, a as PHGlobal, at as FulfilledPromise, b as IPackagesListener, c as PHGlobalValue, ct as PromiseWithState, d as UsePHGlobalValue, et as PHRelationalProcessorsGlobalConfig, f as WorkerReactorClientModule, g as useDragNode, h as addDraggingNodeEventHandler, i as LOADING, it as DocumentDispatch, j as FailedInstallationReason, k as DiscoveryEventListener, l as SetEvent, lt as RejectedPromise, m as DraggingNode, n as BrowserReactorClientModule, nt as PHSentryGlobalConfig, o as PHGlobalEventHandlerAdders, ot as IDocumentCache, p as WorkerReactorModule, q as PHGlobalConfig, r as BrowserReactorModule, rt as IReactorBrowserClient, s as PHGlobalKey, st as PromiseState, t as AddPHGlobalEventHandler, tt as PHRenownGlobalConfig, u as SetPHGlobalValue, v as IPackageListerUnsubscribe, w as PHToastType, x as PackageManagerInstallResult, y as IPackageManager, z as PHAppConfigKey } from "./global-OuINvEGT.js";
3
- import { $ as GraphQLReactorClientOptions, A as useGetDocuments, At as RemoteDocumentData, B as resolveDocumentModelModule, C as setDocumentCache, Ct as IRemoteClient, D as useDocuments, Dt as RemoteControllerGraphQLClient, E as useDocumentSafe, Et as PushResult, F as makeAuthConnectionParams, Ft as DocumentCache, G as MutateDocumentWithOperationsResult, H as signStampedAction, I as startDocumentChangesSubscription, It as addPromiseState, J as GraphQLReactorProvider, K as MutateDocumentWithOperationsVariables, L as subscriptionsUrlFromGraphqlUrl, Lt as readPromiseState, M as DocumentChangesEventPayload, Mt as RemoteOperationResultPage, N as DocumentChangesSubscriptionOptions, Nt as SyncStatus, O as useGetDocument, Ot as RemoteControllerOptions, P as isAuthRefusalClose, Pt as TrackedAction, Q as GraphQLReactorClient, R as StaticPackageManager, S as addDocumentCacheEventHandler, St as GetOperationsResult, T as useDocumentCache, Tt as MergeHandler, U as stampAction, V as prepareSignedActions, W as MutateDocumentWithOperationsDocument, X as ensurePHEventHandlers, Y as GraphQLReactorProviderProps, Z as useSwitchboardClient, _ as usePGlite, _t as ConflictInfo, a as useDocumentOperations, at as TypedGraphQLDocument, b as useSync, bt as GetDocumentResult, c as DispatchFn, ct as BearerTokenProvider, d as addReactorClientEventHandler, dt as GetDocumentQueryFields, et as isGraphQLReactorClient, f as addReactorClientModuleEventHandler, ft as GetDocumentQueryResult, g as useModelRegistry, gt as revisionMapFromRevisionsList, h as useDatabase, ht as phDocumentFromMutation, i as DocumentOperationsState, it as SubgraphSdkRegistry, j as ConnectionParams, jt as RemoteOperation, k as useGetDocumentAsync, kt as RemoteDocumentChangeEvent, l as UseDispatchResult, lt as ambientRenownTokenProvider, m as setReactorClientModule, mt as phDocumentFromGetDocument, n as setAttachmentService, nt as GraphQLRequestOptions, o as useDocumentModelModuleById, ot as describeGraphQLDocument, p as setReactorClient, pt as RevisionsListSelection, q as ReactorOperationFieldsFragmentDoc, r as useAttachmentService, rt as SubgraphSdkFactory, s as useDocumentModelModules, st as subgraphUrlFromGraphqlUrl, t as addAttachmentServiceEventHandler, tt as viewFilterInputFromViewFilter, u as useDispatch, ut as makeAuthMiddleware, v as useReactorClient, vt as ConflictStrategy, w as useDocument, wt as IRemoteController, x as useSyncList, xt as GetDocumentWithOperationsResult, y as useReactorClientModule, yt as DocumentChangeListener, z as packageFromDocumentModels } from "./attachment-service-D3EhiAJ7.js";
1
+ import { $ as prepareSignedActions, $t as IRemoteClient, A as addDocumentCacheEventHandler, At as JobFailedError, B as DocumentChangesEventPayload, Bt as GetDocumentQueryFields, C as useModelRegistry, Ct as SubgraphSdkRegistry, D as useReactorHalves, Dt as BatchJobFailedError, E as useReactorClientModule, Et as subgraphUrlFromGraphqlUrl, F as useDocuments, Ft as GraphQLDriveReadClient, G as createJobChangesSocket, Gt as phDocumentFromMutation, H as IJobChangesSocket, Ht as RevisionsListSelection, I as useGetDocument, It as toLegacyNode, J as startDocumentChangesSubscription, Jt as ConflictStrategy, K as isAuthRefusalClose, Kt as revisionMapFromRevisionsList, L as useGetDocumentAsync, Lt as BearerTokenProvider, M as useDocument, Mt as queriesUnknownField, N as useDocumentCache, Nt as DriveNodeQueries, O as useSync, Ot as GraphQLOperationNotSupportedError, P as useDocumentSafe, Pt as GraphQLDriveNodeSource, Q as resolveDocumentModelModule, Qt as GetOperationsResult, R as useGetDocuments, Rt as ambientRenownTokenProvider, S as useDatabase, St as SubgraphSdkFactory, T as useReactorClient, Tt as describeGraphQLDocument, U as JobChangesEventPayload, Ut as isoStringFromDateTime, V as DocumentChangesSubscriptionOptions, Vt as GetDocumentQueryResult, W as JobChangesSocketOptions, Wt as phDocumentFromGetDocument, X as StaticPackageManager, Xt as GetDocumentResult, Y as subscriptionsUrlFromGraphqlUrl, Yt as DocumentChangeListener, Z as packageFromDocumentModels, Zt as GetDocumentWithOperationsResult, _ as addReactorHalvesEventHandler, _n as isDocumentTypeCache, _t as createGraphQLDriveNodeSource, a as DocumentOperationsState, an as RemoteDocumentChangeEvent, at as MutateDocumentWithOperationsDocument, b as setReactorClient, bn as IDLE_REFETCH_STATE, bt as viewFilterInputFromViewFilter, c as useDocumentModelModuleById, cn as RemoteOperationResultPage, ct as ReactorOperationFieldsFragmentDoc, d as UseDispatchResult, dn as DocumentCache, dt as ensurePHEventHandlers, en as IRemoteController, et as signStampedAction, f as createDispatch, fn as GET_MANY_CHUNK_SIZE, ft as useSwitchboardClient, g as addReactorClientModuleEventHandler, gn as addPromiseState, gt as GraphQLReactorReadClient, h as addReactorClientEventHandler, hn as IDocumentCacheReader, ht as GraphQLReactorClientOptions, i as DocumentOperationsResult, in as RemoteControllerOptions, it as GetDocumentAtConsistencyVariables, j as setDocumentCache, jt as queriesUnknownArgument, k as useSyncList, kt as GraphQLWrongBackendError, l as useDocumentModelModules, ln as SyncStatus, lt as GraphQLReactorProvider, m as addFullReactorClientEventHandler, mn as IDLE_OPERATIONS_ENTRY, mt as GraphQLReactorClient, n as setAttachmentService, nn as PushResult, nt as GetDocumentAtConsistencyDocument, o as UseDocumentOperationsOptions, on as RemoteDocumentData, ot as MutateDocumentWithOperationsResult, p as useDispatch, pn as IDLE_DOCUMENTS_OF_TYPE_ENTRY, pt as DriveIdCall, q as makeAuthConnectionParams, qt as ConflictInfo, r as useAttachmentService, rn as RemoteControllerGraphQLClient, rt as GetDocumentAtConsistencyResult, s as useDocumentOperations, sn as RemoteOperation, st as MutateDocumentWithOperationsVariables, t as addAttachmentServiceEventHandler, tn as MergeHandler, tt as stampAction, u as DispatchFn, un as TrackedAction, ut as GraphQLReactorProviderProps, v as getFullReactorClient, vn as isOperationCache, vt as findIsServableOverGraphQL, w as usePGlite, wt as TypedGraphQLDocument, x as setReactorClientModule, xn as dispatchActions, xt as GraphQLRequestOptions, y as setFullReactorClient, yn as readPromiseState, yt as isGraphQLReactorClient, z as ConnectionParams, zt as makeAuthMiddleware } from "./attachment-service-DPWkKp3y.js";
2
+ import { a as getAnalyticsStore, i as createAnalyticsStore, n as IPowerhouseAnalytics, r as CreateStoreOptions } from "./types-520nWrB3.js";
3
+ import { $ as IPackageManager, A as loadDriveNodes, At as PHGlobalConfigKey, B as createPHStore, Bt as ReactorBrowserHalves, C as DriveNodesCache, Ct as PHDocumentEditorConfigHooks, D as dropDriveNode, Dt as PHGlobalConfig, E as addDriveNodesEventHandler, Et as PHDrivesGlobalConfig, F as useDriveNodes, Ft as PHRenownGlobalConfig, G as notifyPHStore, Gt as IDocumentCache, H as getActivePHStore, Ht as DocumentRefetchState, I as useDriveNodesCache, It as PHSentryGlobalConfig, J as DraggingNode, Jt as OperationsCacheEntry, K as subscribePHStore, Kt as IDocumentTypeCache, L as PHStore, Lt as IReactorBrowserClient, M as peekDriveNode, Mt as PHGlobalConfigSettersForKey, N as takeLocalDriveWrite, Nt as PHProcessorsGlobalConfig, O as getDriveNode, Ot as PHGlobalConfigHooks, P as useDriveNode, Pt as PHRelationalProcessorsGlobalConfig, Q as IPackageListerUnsubscribe, R as PHStoreProvider, Rt as IReactorBrowserReadClient, S as WorkerReactorModule, St as PHDocumentEditorConfig, T as DriveNodesOptions, Tt as PHDocumentEditorConfigSetters, U as getPHStore, Ut as DocumentsOfTypeEntry, V as ensurePHStore, Vt as DocumentDispatch, W as getPHStoreSubscribe, Wt as FulfilledPromise, X as useDragNode, Xt as PromiseWithState, Y as addDraggingNodeEventHandler, Yt as PromiseState, Z as useDropNode, Zt as RejectedPromise, _ as SetEvent, _t as PHAppConfig, a as LOADING, at as TimelineBarItem, b as UsePHGlobalValue, bt as PHAppConfigSetters, c as PHGlobalEventHandlerAdders, ct as DiscoveryEvent, d as PHNavigateOptions, dt as FailedInstallationReason, et as IPackagesListener, f as PHNavigation, ft as IPackageDiscoveryService, g as SearchParamsUpdate, gt as PHAnalyticsGlobalConfig, h as PHSettingsTarget, ht as FullPHGlobalConfig, i as BrowserReactorModule, it as PHToastType, j as markLocalDriveWrite, jt as PHGlobalConfigSetters, k as invalidateDriveNodes, kt as PHGlobalConfigHooksForKey, l as PHGlobalKey, lt as DiscoveryEventListener, m as PHSearchUpdate, mt as PHModal, n as BackendAuthState, nt as PHToastFn, o as PHDriveTarget, ot as TimelineDividerItem, p as PHNavigationTarget, pt as PendingInstallation, q as usePHStore, qt as IOperationCache, r as BrowserReactorClientModule, rt as PHToastOptions, s as PHGlobal, st as TimelineItem, t as AddPHGlobalEventHandler, tt as PackageManagerInstallResult, u as PHGlobalValue, ut as FailedInstallation, v as SetPHGlobalValue, vt as PHAppConfigHooks, w as DriveNodesEntry, wt as PHDocumentEditorConfigKey, x as WorkerReactorClientModule, xt as PHCommonGlobalConfig, y as SetSearchParams, yt as PHAppConfigKey, z as bindPHStoreToWindow, zt as IReactorBrowserWriteClient } from "./global-BSyOOTvL.js";
4
4
  import { baseDocumentModels, baseDocumentModelsMap } from "./src/document-model.js";
5
- import { t as PGlite } from "./pglite-CntadC_p-9NDG14dS.js";
6
- import { r as PGliteWithLive } from "./index-BIVDXw3K.js";
7
- import { D as PropagationMode, T as MutateDocumentMutation, _ as CreateDocumentMutation, a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as ActionInput, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, k as SdkFunctionWrapper, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject, v as DeleteDocumentMutation, w as GetDocumentWithOperationsQuery, x as FindDocumentsQuery, y as DeleteDocumentsMutation } from "./types-Dcv1ZLoW.js";
8
- import { t as createClient } from "./client-BIHN_UyR.js";
9
- import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-B33TKEqp.js";
10
- import { QueryCallbackReturnType, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
11
- import * as document_model0 from "document-model";
5
+ import { t as PGlite } from "./pglite-CntadC_p-DTkdF8sr.js";
6
+ import { r as PGliteWithLive } from "./index-rtDmzViP.js";
7
+ import { E as MutateDocumentMutation, O as PropagationMode, _ as CreateDocumentMutation, a as GraphQLDocumentEvents, c as ReactorGraphQLClient, d as DEFAULT_DRIVE_ID, f as DEFAULT_SWITCHBOARD_URL, g as ActionInput, h as graphqlEventsToSyncDrive, i as GraphQLDocumentEventOperationName, j as SdkFunctionWrapper, l as RunDocumentOptions, m as graphqlDocumentsEvents, n as GraphQLClientDocumentsEvent, o as GraphQLDocumentEventsOperationName, p as graphqlDocumentEvents, r as GraphQLClientWindowEvents, s as GraphQLDocumentsEvents, t as GraphQLClientDocumentEvent, u as TStateSchemaZodObject, v as DeleteDocumentMutation, w as GetDocumentWithOperationsQuery, x as FindDocumentsQuery, y as DeleteDocumentsMutation } from "./types-BNVqRNli.js";
8
+ import { t as createClient } from "./client-XPGQrO4a.js";
9
+ import { $ as useUser, A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, J as addRenownEventHandler, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, X as useDid, Y as setRenown, Z as useLoginStatus, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, et as login, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, tt as logout, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "./index-Bjm0bSzf.js";
10
+ import { QueryCallbackReturnType, RelationalDbOptions, RelationalDbWithLive, createProcessorQuery, useRelationalDb, useRelationalQuery, useRelationalQueryOptions } from "./src/relational/index.js";
11
+ import { DragEventHandler, MouseEvent, ReactNode } from "react";
12
12
  import { DocumentModelLib, DocumentModelModule, EditorModule, PHDocument, PHDocumentController } from "document-model";
13
- import { Action as Action$1, AuthSubject, DocumentOperations, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
14
- import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IProcessor, IProcessorHostModuleBase, IQueue, IReactorClient, IReactorClient as IReactorClient$1, IReactorProcessorHostModuleBase, IRelationalDb, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorFeatureFlags, RebuildResult, RelationalDbProcessor, Remote, RemoteFilter, RemoteMeta, SignerConfig, SnapshotValidationIssue, SyncOperation, SyncOperationStatus, ValidationResult, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
15
- import * as _powerhousedao_shared_document_drive0 from "@powerhousedao/shared/document-drive";
13
+ import { Action as Action$1, AuthSubject, DocumentDispatch as DocumentDispatch$1, DocumentModelModule as DocumentModelModule$1, DocumentOperations, Operation as Operation$1, PHBaseState, PHDocument as PHDocument$1, PHDocumentHeader, SignaturePolicy, SubgraphModule, ValidationError } from "@powerhousedao/shared/document-model";
14
+ import { ActionCandidate, ChannelScheme, ConnectionState, ConnectionStateSnapshot, ConnectionStateSnapshot as ConnectionStateSnapshot$1, Database, DocumentChangeEvent, DocumentChangeType, DocumentIntegrityService, DriveCollectionId, Evaluation, GqlRequestChannel, IChannel, IDocumentModelLoader, IDocumentModelRegistry, IDriveReadClient, IPeerAgreement, IProcessor, IProcessorHostModuleBase, IQueue, IReactorClient, IReactorProcessorHostModuleBase, IReactorReadClient, IReactorReadClient as IReactorReadClient$1, IReactorWriteClient, IRelationalDb, InMemoryQueue, IntervalPollTimer, Job, JwtHandler, KeyframeValidationIssue, OperationWithContext, ParsedDriveUrl, PollBehavior, PollBehavior as PollBehavior$1, ProcessorApp, ProcessorFactory, ProcessorFactoryBuilder as ProcessorFactoryBuilder$1, ProcessorFilter, ProcessorRecord, REACTOR_SCHEMA, ReactorBuilder, ReactorClientBuilder, ReactorFeatureFlags, RebuildResult, RelationalDbProcessor, Remote, RemoteFilter, RemoteMeta, RemotePeer, SignerConfig, SnapshotValidationIssue, SyncHold, SyncOperation, SyncOperationStatus, ValidationResult, WriteHandle, WriteReceipt, driveIdFromUrl, isDriveAuthError, parseDriveUrl } from "@powerhousedao/reactor";
16
15
  import { DocumentDriveAction, DocumentDriveDocument, DriveInput, FileNode, FolderNode, Node, SharingType } from "@powerhousedao/shared/document-drive";
17
- import { DragEventHandler } from "react";
18
16
  import { AttachmentDownloadInput, AttachmentHeader, AttachmentUploadResult, IAttachmentClient, PreprocessResult } from "@powerhousedao/reactor-attachments/client";
19
- import * as _powerhousedao_reactor_browser0 from "@powerhousedao/reactor-browser";
20
- import { ConflictResolution as ConflictResolution$1, DocumentDispatch as DocumentDispatch$1, FileUploadProgressCallback as FileUploadProgressCallback$1, IReactorBrowserClient as IReactorBrowserClient$1, PHAppConfig as PHAppConfig$1, PHAppConfigHooks as PHAppConfigHooks$1, PHAppConfigKey as PHAppConfigKey$1, PHAppConfigSetters as PHAppConfigSetters$1, PHDocumentEditorConfig as PHDocumentEditorConfig$1, PHDocumentEditorConfigHooks as PHDocumentEditorConfigHooks$1, PHDocumentEditorConfigKey as PHDocumentEditorConfigKey$1, PHDocumentEditorConfigSetters as PHDocumentEditorConfigSetters$1, PHGlobal as PHGlobal$1, PHGlobalConfig as PHGlobalConfig$1, PHGlobalConfigHooks as PHGlobalConfigHooks$1, PHGlobalConfigKey as PHGlobalConfigKey$1, PHGlobalConfigSetters as PHGlobalConfigSetters$1, PHGlobalKey as PHGlobalKey$1, PHModal as PHModal$1 } from "@powerhousedao/reactor-browser";
21
- import * as _powerhousedao_shared0 from "@powerhousedao/shared";
17
+ import { ConflictResolution as ConflictResolution$1, DocumentDispatch as DocumentDispatch$2, FileUploadProgressCallback as FileUploadProgressCallback$1, PHAppConfig as PHAppConfig$1, PHAppConfigHooks as PHAppConfigHooks$1, PHAppConfigKey as PHAppConfigKey$1, PHAppConfigSetters as PHAppConfigSetters$1, PHDocumentEditorConfig as PHDocumentEditorConfig$1, PHDocumentEditorConfigHooks as PHDocumentEditorConfigHooks$1, PHDocumentEditorConfigKey as PHDocumentEditorConfigKey$1, PHDocumentEditorConfigSetters as PHDocumentEditorConfigSetters$1, PHGlobal as PHGlobal$1, PHGlobalConfig as PHGlobalConfig$1, PHGlobalConfigHooks as PHGlobalConfigHooks$1, PHGlobalConfigKey as PHGlobalConfigKey$1, PHGlobalConfigSetters as PHGlobalConfigSetters$1, PHGlobalKey as PHGlobalKey$1, PHModal as PHModal$1, PHNavigateOptions as PHNavigateOptions$1, PHNavigation as PHNavigation$1, PHNavigationTarget as PHNavigationTarget$1, PHSearchUpdate as PHSearchUpdate$1, PHSettingsTarget as PHSettingsTarget$1, SearchParamsUpdate as SearchParamsUpdate$1, SetSearchParams as SetSearchParams$1 } from "@powerhousedao/reactor-browser";
22
18
  import { Node as Node$1 } from "@powerhousedao/shared";
23
19
  import { PackageInfo, PackagePage } from "@powerhousedao/shared/registry";
24
-
25
- //#region src/actions/dispatch.d.ts
26
- /**
27
- * Dispatches actions to a document.
28
- * @param actionOrActions - The action or actions to dispatch.
29
- * @param document - The document to dispatch actions to.
30
- * @param onErrors - Callback invoked with any errors that occurred during action execution.
31
- * @returns The updated document, or undefined if the dispatch failed.
32
- */
33
- declare function dispatchActions<TDocument = PHDocument$1, TAction = Action$1>(actionOrActions: TAction[] | TAction | undefined, document: TDocument | undefined, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
34
- /**
35
- * Dispatches actions to a document.
36
- * @param actionOrActions - The action or actions to dispatch.
37
- * @param documentId - The ID of the document to dispatch actions to.
38
- * @param onErrors - Callback invoked with any errors that occurred during action execution.
39
- * @returns The updated document, or undefined if the dispatch failed.
40
- */
41
- declare function dispatchActions(actionOrActions: Action$1[] | Action$1 | undefined, documentId: string, onErrors?: (errors: Error[]) => void, onSuccess?: (result: PHDocument$1) => void): Promise<PHDocument$1 | undefined>;
42
- //#endregion
43
20
  //#region src/actions/drive-info.d.ts
44
21
  /**
45
22
  * The drive info endpoint's response: `GET <switchboard>/d/:drive`.
@@ -75,18 +52,18 @@ type DriveInfo = {
75
52
  * `isDriveAuthError` can tell a refusal from an unreachable host and the
76
53
  * caller can prompt for a login instead of reporting a network fault.
77
54
  */
78
- declare function fetchDriveInfo(url: string): Promise<DriveInfo>;
55
+ export declare function fetchDriveInfo(url: string): Promise<DriveInfo>;
79
56
  //#endregion
80
57
  //#region src/actions/document.d.ts
81
- declare function getDocumentExtension(document: PHDocument$1): Promise<string>;
82
- declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
58
+ export declare function getDocumentExtension(document: PHDocument$1): Promise<string>;
59
+ export declare function exportFile(document: PHDocument$1, suggestedName?: string): Promise<void | FileSystemFileHandle>;
83
60
  /**
84
61
  * Loads a document file and replays it with version-aware reducers from the registry.
85
62
  * Falls back to single-version legacy replay when no upgrade manifest is registered for
86
63
  * the document type.
87
64
  */
88
- declare function loadFile(path: string | File): Promise<PHDocument$1<PHBaseState>>;
89
- declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string, documentModelVersion?: number): Promise<{
65
+ export declare function loadFile(path: string | File): Promise<PHDocument$1<PHBaseState>>;
66
+ export declare function addDocument(driveId: string, name: string, documentType: string, parentFolder?: string, document?: PHDocument$1, id?: string, preferredEditor?: string, documentModelVersion?: number): Promise<{
90
67
  id: string;
91
68
  name: string;
92
69
  documentType: string;
@@ -101,16 +78,16 @@ type AddedFileNode = {
101
78
  parentFolder: string | null;
102
79
  kind: "file";
103
80
  };
104
- declare function addFileWithProgress(file: string | File, driveId: string, name?: string, parentFolder?: string, onProgress?: FileUploadProgressCallback$1, documentTypes?: string[], resolveConflict?: ConflictResolution$1): Promise<AddedFileNode | undefined>;
105
- declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
106
- declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
107
- declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
108
- declare function setPreferredEditorOnNode(nodeId: string, preferredEditor: string | null): Promise<PHDocument$1>;
81
+ export declare function addFileWithProgress(file: string | File, driveId: string, name?: string, parentFolder?: string, onProgress?: FileUploadProgressCallback$1, documentTypes?: string[], resolveConflict?: ConflictResolution$1): Promise<AddedFileNode | undefined>;
82
+ export declare function addFolder(driveId: string, name: string, parentFolder?: string): Promise<Node>;
83
+ export declare function deleteNode(driveId: string, nodeId: string): Promise<void>;
84
+ export declare function renameDriveNode(driveId: string, nodeId: string, name: string): Promise<Node | undefined>;
85
+ export declare function setPreferredEditorOnNode(nodeId: string, preferredEditor: string | null): Promise<PHDocument$1>;
109
86
  /**
110
87
  * Upgrades a document to a newer document model version. Defaults to the
111
88
  * latest registered version for the document's type.
112
89
  */
113
- declare function upgradeDocument(documentId: string, toVersion?: number): Promise<PHDocument$1>;
90
+ export declare function upgradeDocument(documentId: string, toVersion?: number): Promise<PHDocument$1>;
114
91
  //#endregion
115
92
  //#region src/actions/bulk-archive.d.ts
116
93
  type BulkImportJob = {
@@ -125,7 +102,7 @@ type BulkImportJob = {
125
102
  * and each leaf becomes one job targeting its recreated folder. Throws
126
103
  * without touching the drive when no leaf is a document zip.
127
104
  */
128
- declare function expandBulkArchive(file: File, driveId: string, targetParent: Node | undefined): Promise<BulkImportJob[]>;
105
+ export declare function expandBulkArchive(file: File, driveId: string, targetParent: Node | undefined): Promise<BulkImportJob[]>;
129
106
  //#endregion
130
107
  //#region src/actions/folder-zip.d.ts
131
108
  type FolderZipResult = {
@@ -144,13 +121,13 @@ type FolderZipResult = {
144
121
  * `fetchDocument` must return the document WITH its full operations and
145
122
  * initialState (see downloadFolderZip).
146
123
  */
147
- declare function buildFolderZip(drive: DocumentDriveDocument, folderNode: FolderNode | undefined, fetchDocument: (id: string) => Promise<PHDocument$1>, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
124
+ export declare function buildFolderZip(drive: DocumentDriveDocument, folderNode: FolderNode | undefined, fetchDocument: (id: string) => Promise<PHDocument$1>, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
148
125
  /**
149
126
  * Export a folder (or whole drive) to disk: fetches every document with its
150
127
  * full operation history, builds the archive, and saves it via
151
128
  * showSaveFilePicker (fallback: blob download), mirroring exportFile.
152
129
  */
153
- declare function downloadFolderZip(drive: DocumentDriveDocument, folderNode?: FolderNode, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
130
+ export declare function downloadFolderZip(drive: DocumentDriveDocument, folderNode?: FolderNode, onProgress?: (done: number, total: number) => void): Promise<FolderZipResult>;
154
131
  //#endregion
155
132
  //#region src/actions/drive.d.ts
156
133
  type AddRemoteDriveOptions = {
@@ -161,7 +138,8 @@ type AddRemoteDriveOptions = {
161
138
  * `addRemoteDrive` returns as soon as the remote is registered with
162
139
  * the sync manager, before initial backfill delivers the drive.
163
140
  */
164
- awaitInitialSync?: boolean; /** Timeout for the initial-sync wait. Defaults to 30s. */
141
+ awaitInitialSync?: boolean;
142
+ /** Timeout for the initial-sync wait. Defaults to 30s. */
165
143
  initialSyncTimeoutMs?: number;
166
144
  signal?: AbortSignal;
167
145
  };
@@ -170,44 +148,59 @@ type AddRemoteDriveOptions = {
170
148
  * reactor client. Subscribes to Created events filtered by id and
171
149
  * short-circuits if the document already exists.
172
150
  */
173
- declare function waitForDocumentReady(reactorClient: IReactorClient$1, documentId: string, options?: {
151
+ export declare function waitForDocumentReady(reactorClient: IReactorReadClient$1, documentId: string, options?: {
174
152
  timeoutMs?: number;
175
153
  signal?: AbortSignal;
176
154
  }): Promise<void>;
177
- declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
178
- declare function addRemoteDrive(url: string, driveId?: string, options?: AddRemoteDriveOptions): Promise<string>;
179
- declare function deleteDrive(driveId: string): Promise<void>;
180
- declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
181
- declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
182
- declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
183
- declare function setDriveMetadata(driveId: string, metadata: {
155
+ export declare function addDrive(input: DriveInput, preferredEditor?: string): Promise<DocumentDriveDocument>;
156
+ export declare function addRemoteDrive(url: string, driveId?: string, options?: AddRemoteDriveOptions): Promise<string>;
157
+ export declare function deleteDrive(driveId: string): Promise<void>;
158
+ export declare function renameDrive(driveId: string, name: string): Promise<PHDocument$1 | undefined>;
159
+ export declare function setDriveAvailableOffline(driveId: string, availableOffline: boolean): Promise<PHDocument$1 | undefined>;
160
+ export declare function setDriveSharingType(driveId: string, sharingType: SharingType): Promise<PHDocument$1 | undefined>;
161
+ export declare function setDriveMetadata(driveId: string, metadata: {
184
162
  name?: string | null;
185
163
  icon?: string | null;
186
164
  }): Promise<PHDocument$1 | undefined>;
187
165
  //#endregion
188
166
  //#region src/constants.d.ts
189
- declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
190
- declare const COMMON_PACKAGE_ID = "powerhouse/common";
167
+ export declare const DEFAULT_DRIVE_EDITOR_ID = "powerhouse/generic-drive-explorer";
168
+ export declare const COMMON_PACKAGE_ID = "powerhouse/common";
191
169
  /** Document types that represent a "drive": a container of nodes. */
192
- declare const DRIVE_DOCUMENT_TYPES: readonly ["powerhouse/document-drive", "powerhouse/reactor-drive"];
170
+ export declare const DRIVE_DOCUMENT_TYPES: readonly ["powerhouse/document-drive", "powerhouse/reactor-drive"];
193
171
  //#endregion
194
172
  //#region src/errors.d.ts
195
- declare class UnsupportedDocumentTypeError extends Error {
173
+ export declare class UnsupportedDocumentTypeError extends Error {
196
174
  constructor(documentType: string);
197
175
  static isError(error: unknown): error is UnsupportedDocumentTypeError;
198
176
  }
199
- declare class DocumentModelNotFoundError extends Error {
177
+ export declare class DocumentModelNotFoundError extends Error {
200
178
  readonly documentType: string;
201
179
  readonly name = "DocumentModelNotFoundError";
202
180
  constructor(documentType: string);
203
181
  static isError(error: unknown): error is DocumentModelNotFoundError;
204
182
  }
205
- declare class DocumentTypeMismatchError extends Error {
183
+ export declare class DocumentTypeMismatchError extends Error {
206
184
  constructor(documentId: string, expectedType: string, actualType: string);
207
185
  }
208
- declare class NoSelectedDocumentError extends Error {
186
+ export declare class NoSelectedDocumentError extends Error {
209
187
  constructor();
210
188
  }
189
+ /** A dispatched action the document did not apply: its operation is stored at `index`, state
190
+ * unchanged, because the reducer threw (`reducer-error`) or the write was denied (`denied`). */
191
+ export declare class OperationRejectedError extends Error {
192
+ readonly documentId: string;
193
+ readonly scope: string;
194
+ readonly name = "OperationRejectedError";
195
+ readonly actionId: string;
196
+ readonly actionType: string;
197
+ readonly index: number;
198
+ readonly kind: "reducer-error" | "denied";
199
+ private constructor();
200
+ /** The rejection `operation` records, or undefined when it applied. */
201
+ static fromOperation(documentId: string, scope: string, operation: Operation$1): OperationRejectedError | undefined;
202
+ static isError(error: unknown): error is OperationRejectedError;
203
+ }
211
204
  //#endregion
212
205
  //#region src/global/types.d.ts
213
206
  interface PGliteState$1 {
@@ -223,32 +216,34 @@ declare global {
223
216
  interface Window {
224
217
  powerhouse?: PowerhouseGlobal;
225
218
  }
226
- } //# sourceMappingURL=types.d.ts.map
219
+ }
227
220
  //#endregion
228
221
  //#region src/global/core.d.ts
229
- declare function getGlobal<K extends keyof PowerhouseGlobal>(namespace: K): PowerhouseGlobal[K] | undefined;
230
- declare function setGlobal<K extends keyof PowerhouseGlobal>(namespace: K, value: PowerhouseGlobal[K]): void;
231
- declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
222
+ export declare function getGlobal<K extends keyof PowerhouseGlobal>(namespace: K): PowerhouseGlobal[K] | undefined;
223
+ export declare function setGlobal<K extends keyof PowerhouseGlobal>(namespace: K, value: PowerhouseGlobal[K]): void;
224
+ export declare function clearGlobal(namespace: keyof PowerhouseGlobal): void;
232
225
  //#endregion
233
226
  //#region src/graphql/adapters.d.ts
234
227
  type QueryDocumentResult = NonNullable<GetDocumentWithOperationsQuery["document"]>["document"];
235
228
  type FindDocumentsItems = NonNullable<FindDocumentsQuery["findDocuments"]>["items"];
236
- declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
237
- declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
238
- declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
229
+ export declare function phDocumentFromQuery<TDocumentSchema extends TStateSchemaZodObject>(document: QueryDocumentResult, documentSchema?: TDocumentSchema): PHDocument;
230
+ export declare function phDocumentsFromQuery<TDocumentSchema extends TStateSchemaZodObject>(items: FindDocumentsItems, documentSchema?: TDocumentSchema): PHDocument[];
231
+ export declare function identifierFromMutateDocumentOperationVariables(variables: unknown): string;
239
232
  //#endregion
240
233
  //#region src/graphql/fetchers.d.ts
241
- declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<document_model0.PHDocument | undefined>;
242
- declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(document_model0.PHDocument | undefined)[]>;
234
+ export declare function reactorGraphqlFetchDocument<TDocumentSchema extends TStateSchemaZodObject>(identifier: string, documentSchema?: TDocumentSchema): Promise<import("document-model").PHDocument | undefined>;
235
+ export declare function reactorGraphqlBatchFetchDocuments(identifiers: readonly string[]): Promise<(import("document-model").PHDocument | undefined)[]>;
243
236
  //#endregion
244
237
  //#region src/graphql/graphql-client-document-cache.d.ts
245
- declare class GraphQLClientDocumentCache implements IDocumentCache {
238
+ export declare class GraphQLClientDocumentCache implements IDocumentCache {
246
239
  private fetcher;
247
240
  private documents;
248
241
  private batchPromises;
249
242
  private listeners;
243
+ private refetcher;
250
244
  constructor();
251
245
  get(id: string, refetch?: boolean): Promise<PHDocument>;
246
+ getRefetchState(id: string): DocumentRefetchState;
252
247
  getBatch(ids: string[]): Promise<PHDocument[]>;
253
248
  private invalidateBatchesContaining;
254
249
  subscribe(id: string | string[], callback: () => void): () => void;
@@ -259,256 +254,326 @@ declare class GraphQLClientDocumentCache implements IDocumentCache {
259
254
  }
260
255
  //#endregion
261
256
  //#region src/graphql/mutators.d.ts
262
- declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
263
- declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
264
- declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
265
- declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<ActionInput>): Promise<MutateDocumentMutation>;
257
+ export declare function reactorGraphqlCreateDocument<TDocument extends PHDocument>(document: TDocument, parentIdentifier?: "powerhouse"): Promise<CreateDocumentMutation>;
258
+ export declare function reactorGraphqlDeleteDocument(identifier: string): Promise<DeleteDocumentMutation>;
259
+ export declare function reactorGraphqlDeleteDocuments(identifiers: string[]): Promise<DeleteDocumentsMutation>;
260
+ export declare function reactorGraphqlMutateDocument(documentIdentifier: string, ...actions: ReadonlyArray<ActionInput>): Promise<MutateDocumentMutation>;
266
261
  //#endregion
267
262
  //#region src/hooks/add-ph-event-handlers.d.ts
268
- declare const commonGlobalEventHandlerFunctions: {
263
+ export declare const commonGlobalEventHandlerFunctions: {
269
264
  loading: () => void;
270
265
  drives: () => void;
266
+ backendAuth: () => void;
267
+ driveNodes: () => void;
271
268
  selectedDriveId: () => void;
272
269
  selectedNodeId: () => void;
273
270
  documentCache: () => void;
274
271
  reactorGraphQLClient: () => void;
275
272
  draggingNode: () => void;
276
273
  };
277
- declare function addPHEventHandlers(): void;
278
- declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
274
+ export declare function addPHEventHandlers(): void;
275
+ export declare function callEventHandlerRegisterFunctions(registerFunctions: Record<string, () => void>): void;
279
276
  //#endregion
280
277
  //#region src/hooks/allowed-document-model-modules.d.ts
281
- declare function useAllowedDocumentModelModules(): document_model0.DocumentModelModule[] | undefined;
278
+ export declare function useAllowedDocumentModelModules(): import("document-model").DocumentModelModule[] | undefined;
282
279
  //#endregion
283
280
  //#region src/hooks/child-nodes.d.ts
284
281
  /** Returns the child nodes for the selected drive or folder. */
285
- declare function useNodesInSelectedDriveOrFolder(): Node[];
282
+ export declare function useNodesInSelectedDriveOrFolder(): Node[];
286
283
  //#endregion
287
284
  //#region src/hooks/config/connect.d.ts
288
- declare const useRouterBasename: () => string | undefined, setRouterBasename: (value: string | undefined) => void, addRouterBasenameEventHandler: () => void;
289
- declare const useVersion: () => string | undefined, setVersion: (value: string | undefined) => void, addVersionEventHandler: () => void;
290
- declare const useRequiresHardRefresh: () => boolean | undefined, setRequiresHardRefresh: (value: boolean | undefined) => void, addRequiresHardRefreshEventHandler: () => void;
291
- declare const useWarnOutdatedApp: () => boolean | undefined, setWarnOutdatedApp: (value: boolean | undefined) => void, addWarnOutdatedAppEventHandler: () => void;
292
- declare const useStudioMode: () => boolean | undefined, setStudioMode: (value: boolean | undefined) => void, addStudioModeEventHandler: () => void;
293
- declare const useBasePath: () => string | undefined, setBasePath: (value: string | undefined) => void, addBasePathEventHandler: () => void;
294
- declare const useVersionCheckInterval: () => number | undefined, setVersionCheckInterval: (value: number | undefined) => void, addVersionCheckIntervalEventHandler: () => void;
295
- declare const useCliVersion: () => string | undefined, setCliVersion: (value: string | undefined) => void, addCliVersionEventHandler: () => void;
296
- declare const useFileUploadOperationsChunkSize: () => number | undefined, setFileUploadOperationsChunkSize: (value: number | undefined) => void, addFileUploadOperationsChunkSizeEventHandler: () => void;
297
- declare const useIsDocumentModelSelectionSettingsEnabled: () => boolean | undefined, setIsDocumentModelSelectionSettingsEnabled: (value: boolean | undefined) => void, addIsDocumentModelSelectionSettingsEnabledEventHandler: () => void;
298
- declare const useGaTrackingId: () => string | undefined, setGaTrackingId: (value: string | undefined) => void, addGaTrackingIdEventHandler: () => void;
299
- declare const useDefaultDrivesUrl: () => string | undefined, setDefaultDrivesUrl: (value: string | undefined) => void, addDefaultDrivesUrlEventHandler: () => void;
300
- declare const useDrivesPreserveStrategy: () => string | undefined, setDrivesPreserveStrategy: (value: string | undefined) => void, addDrivesPreserveStrategyEventHandler: () => void;
301
- declare const useIsLocalDrivesEnabled: () => boolean | undefined, setIsLocalDrivesEnabled: (value: boolean | undefined) => void, addIsLocalDrivesEnabledEventHandler: () => void;
302
- declare const useIsAddDriveEnabled: () => boolean | undefined, setIsAddDriveEnabled: (value: boolean | undefined) => void, addIsAddDriveEnabledEventHandler: () => void;
303
- declare const useIsPublicDrivesEnabled: () => boolean | undefined, setIsPublicDrivesEnabled: (value: boolean | undefined) => void, addIsPublicDrivesEnabledEventHandler: () => void;
304
- declare const useIsAddPublicDrivesEnabled: () => boolean | undefined, setIsAddPublicDrivesEnabled: (value: boolean | undefined) => void, addIsAddPublicDrivesEnabledEventHandler: () => void;
305
- declare const useIsDeletePublicDrivesEnabled: () => boolean | undefined, setIsDeletePublicDrivesEnabled: (value: boolean | undefined) => void, addIsDeletePublicDrivesEnabledEventHandler: () => void;
306
- declare const useIsCloudDrivesEnabled: () => boolean | undefined, setIsCloudDrivesEnabled: (value: boolean | undefined) => void, addIsCloudDrivesEnabledEventHandler: () => void;
307
- declare const useIsAddCloudDrivesEnabled: () => boolean | undefined, setIsAddCloudDrivesEnabled: (value: boolean | undefined) => void, addIsAddCloudDrivesEnabledEventHandler: () => void;
308
- declare const useIsDeleteCloudDrivesEnabled: () => boolean | undefined, setIsDeleteCloudDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteCloudDrivesEnabledEventHandler: () => void;
309
- declare const useLocalDrivesEnabled: () => boolean | undefined, setLocalDrivesEnabled: (value: boolean | undefined) => void, addLocalDrivesEnabledEventHandler: () => void;
310
- declare const useIsAddLocalDrivesEnabled: () => boolean | undefined, setIsAddLocalDrivesEnabled: (value: boolean | undefined) => void, addIsAddLocalDrivesEnabledEventHandler: () => void;
311
- declare const useIsDeleteLocalDrivesEnabled: () => boolean | undefined, setIsDeleteLocalDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteLocalDrivesEnabledEventHandler: () => void;
312
- declare const useIsEditorDebugModeEnabled: () => boolean | undefined, setIsEditorDebugModeEnabled: (value: boolean | undefined) => void, addIsEditorDebugModeEnabledEventHandler: () => void;
313
- declare const useIsEditorReadModeEnabled: () => boolean | undefined, setIsEditorReadModeEnabled: (value: boolean | undefined) => void, addIsEditorReadModeEnabledEventHandler: () => void;
314
- declare const useIsAnalyticsDatabaseWorkerEnabled: () => boolean | undefined, setIsAnalyticsDatabaseWorkerEnabled: (value: boolean | undefined) => void, addIsAnalyticsDatabaseWorkerEnabledEventHandler: () => void;
315
- declare const useIsDiffAnalyticsEnabled: () => boolean | undefined, setIsDiffAnalyticsEnabled: (value: boolean | undefined) => void, addIsDiffAnalyticsEnabledEventHandler: () => void;
316
- declare const useIsDriveAnalyticsEnabled: () => boolean | undefined, setIsDriveAnalyticsEnabled: (value: boolean | undefined) => void, addIsDriveAnalyticsEnabledEventHandler: () => void;
317
- declare const useRenownUrl: () => string | undefined, setRenownUrl: (value: string | undefined) => void, addRenownUrlEventHandler: () => void;
318
- declare const useRenownNetworkId: () => string | undefined, setRenownNetworkId: (value: string | undefined) => void, addRenownNetworkIdEventHandler: () => void;
319
- declare const useRenownChainId: () => number | undefined, setRenownChainId: (value: number | undefined) => void, addRenownChainIdEventHandler: () => void;
320
- declare const useSwitchboardUrl: () => string | undefined, setSwitchboardUrl: (value: string | undefined) => void, addSwitchboardUrlEventHandler: () => void;
321
- declare const useRenownAdapters: () => _powerhousedao_shared0.PHConnectRenownAdapters | undefined, setRenownAdapters: (value: _powerhousedao_shared0.PHConnectRenownAdapters | undefined) => void, addRenownAdaptersEventHandler: () => void;
322
- declare const useSentryRelease: () => string | undefined, setSentryRelease: (value: string | undefined) => void, addSentryReleaseEventHandler: () => void;
323
- declare const useSentryDsn: () => string | undefined, setSentryDsn: (value: string | undefined) => void, addSentryDsnEventHandler: () => void;
324
- declare const useSentryEnv: () => string | undefined, setSentryEnv: (value: string | undefined) => void, addSentryEnvEventHandler: () => void;
325
- declare const useIsSentryTracingEnabled: () => boolean | undefined, setIsSentryTracingEnabled: (value: boolean | undefined) => void, addIsSentryTracingEnabledEventHandler: () => void;
326
- declare const useIsExternalProcessorsEnabled: () => boolean | undefined, setIsExternalProcessorsEnabled: (value: boolean | undefined) => void, addIsExternalProcessorsEnabledEventHandler: () => void;
327
- declare const useIsExternalPackagesEnabled: () => boolean | undefined, setIsExternalPackagesEnabled: (value: boolean | undefined) => void, addIsExternalPackagesEnabledEventHandler: () => void;
285
+ export declare const useRouterBasename: () => string | undefined, setRouterBasename: (value: string | undefined) => void, addRouterBasenameEventHandler: () => void;
286
+ export declare const useVersion: () => string | undefined, setVersion: (value: string | undefined) => void, addVersionEventHandler: () => void;
287
+ export declare const useRequiresHardRefresh: () => boolean | undefined, setRequiresHardRefresh: (value: boolean | undefined) => void, addRequiresHardRefreshEventHandler: () => void;
288
+ export declare const useWarnOutdatedApp: () => boolean | undefined, setWarnOutdatedApp: (value: boolean | undefined) => void, addWarnOutdatedAppEventHandler: () => void;
289
+ export declare const useStudioMode: () => boolean | undefined, setStudioMode: (value: boolean | undefined) => void, addStudioModeEventHandler: () => void;
290
+ export declare const useBasePath: () => string | undefined, setBasePath: (value: string | undefined) => void, addBasePathEventHandler: () => void;
291
+ export declare const useVersionCheckInterval: () => number | undefined, setVersionCheckInterval: (value: number | undefined) => void, addVersionCheckIntervalEventHandler: () => void;
292
+ export declare const useCliVersion: () => string | undefined, setCliVersion: (value: string | undefined) => void, addCliVersionEventHandler: () => void;
293
+ export declare const useFileUploadOperationsChunkSize: () => number | undefined, setFileUploadOperationsChunkSize: (value: number | undefined) => void, addFileUploadOperationsChunkSizeEventHandler: () => void;
294
+ export declare const useIsDocumentModelSelectionSettingsEnabled: () => boolean | undefined, setIsDocumentModelSelectionSettingsEnabled: (value: boolean | undefined) => void, addIsDocumentModelSelectionSettingsEnabledEventHandler: () => void;
295
+ export declare const useGaTrackingId: () => string | undefined, setGaTrackingId: (value: string | undefined) => void, addGaTrackingIdEventHandler: () => void;
296
+ export declare const useDefaultDrivesUrl: () => string | undefined, setDefaultDrivesUrl: (value: string | undefined) => void, addDefaultDrivesUrlEventHandler: () => void;
297
+ export declare const useDrivesPreserveStrategy: () => string | undefined, setDrivesPreserveStrategy: (value: string | undefined) => void, addDrivesPreserveStrategyEventHandler: () => void;
298
+ export declare const useIsLocalDrivesEnabled: () => boolean | undefined, setIsLocalDrivesEnabled: (value: boolean | undefined) => void, addIsLocalDrivesEnabledEventHandler: () => void;
299
+ export declare const useIsAddDriveEnabled: () => boolean | undefined, setIsAddDriveEnabled: (value: boolean | undefined) => void, addIsAddDriveEnabledEventHandler: () => void;
300
+ export declare const useIsPublicDrivesEnabled: () => boolean | undefined, setIsPublicDrivesEnabled: (value: boolean | undefined) => void, addIsPublicDrivesEnabledEventHandler: () => void;
301
+ export declare const useIsAddPublicDrivesEnabled: () => boolean | undefined, setIsAddPublicDrivesEnabled: (value: boolean | undefined) => void, addIsAddPublicDrivesEnabledEventHandler: () => void;
302
+ export declare const useIsDeletePublicDrivesEnabled: () => boolean | undefined, setIsDeletePublicDrivesEnabled: (value: boolean | undefined) => void, addIsDeletePublicDrivesEnabledEventHandler: () => void;
303
+ export declare const useIsCloudDrivesEnabled: () => boolean | undefined, setIsCloudDrivesEnabled: (value: boolean | undefined) => void, addIsCloudDrivesEnabledEventHandler: () => void;
304
+ export declare const useIsAddCloudDrivesEnabled: () => boolean | undefined, setIsAddCloudDrivesEnabled: (value: boolean | undefined) => void, addIsAddCloudDrivesEnabledEventHandler: () => void;
305
+ export declare const useIsDeleteCloudDrivesEnabled: () => boolean | undefined, setIsDeleteCloudDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteCloudDrivesEnabledEventHandler: () => void;
306
+ export declare const useLocalDrivesEnabled: () => boolean | undefined, setLocalDrivesEnabled: (value: boolean | undefined) => void, addLocalDrivesEnabledEventHandler: () => void;
307
+ export declare const useIsAddLocalDrivesEnabled: () => boolean | undefined, setIsAddLocalDrivesEnabled: (value: boolean | undefined) => void, addIsAddLocalDrivesEnabledEventHandler: () => void;
308
+ export declare const useIsDeleteLocalDrivesEnabled: () => boolean | undefined, setIsDeleteLocalDrivesEnabled: (value: boolean | undefined) => void, addIsDeleteLocalDrivesEnabledEventHandler: () => void;
309
+ export declare const useIsEditorDebugModeEnabled: () => boolean | undefined, setIsEditorDebugModeEnabled: (value: boolean | undefined) => void, addIsEditorDebugModeEnabledEventHandler: () => void;
310
+ export declare const useIsEditorReadModeEnabled: () => boolean | undefined, setIsEditorReadModeEnabled: (value: boolean | undefined) => void, addIsEditorReadModeEnabledEventHandler: () => void;
311
+ export declare const useIsAnalyticsDatabaseWorkerEnabled: () => boolean | undefined, setIsAnalyticsDatabaseWorkerEnabled: (value: boolean | undefined) => void, addIsAnalyticsDatabaseWorkerEnabledEventHandler: () => void;
312
+ export declare const useIsDiffAnalyticsEnabled: () => boolean | undefined, setIsDiffAnalyticsEnabled: (value: boolean | undefined) => void, addIsDiffAnalyticsEnabledEventHandler: () => void;
313
+ export declare const useIsDriveAnalyticsEnabled: () => boolean | undefined, setIsDriveAnalyticsEnabled: (value: boolean | undefined) => void, addIsDriveAnalyticsEnabledEventHandler: () => void;
314
+ export declare const useRenownUrl: () => string | undefined, setRenownUrl: (value: string | undefined) => void, addRenownUrlEventHandler: () => void;
315
+ export declare const useRenownNetworkId: () => string | undefined, setRenownNetworkId: (value: string | undefined) => void, addRenownNetworkIdEventHandler: () => void;
316
+ export declare const useRenownChainId: () => number | undefined, setRenownChainId: (value: number | undefined) => void, addRenownChainIdEventHandler: () => void;
317
+ export declare const useSwitchboardUrl: () => string | undefined, setSwitchboardUrl: (value: string | undefined) => void, addSwitchboardUrlEventHandler: () => void;
318
+ export declare const useRenownAdapters: () => {
319
+ rainbow?: {
320
+ walletConnectProjectId?: string | undefined;
321
+ infuraProjectId?: string | undefined;
322
+ } | undefined;
323
+ privy?: {
324
+ appId?: string | undefined;
325
+ clientId?: string | undefined;
326
+ methods?: string[] | undefined;
327
+ } | undefined;
328
+ } | undefined, setRenownAdapters: (value: {
329
+ rainbow?: {
330
+ walletConnectProjectId?: string | undefined;
331
+ infuraProjectId?: string | undefined;
332
+ } | undefined;
333
+ privy?: {
334
+ appId?: string | undefined;
335
+ clientId?: string | undefined;
336
+ methods?: string[] | undefined;
337
+ } | undefined;
338
+ } | undefined) => void, addRenownAdaptersEventHandler: () => void;
339
+ export declare const useSentryRelease: () => string | undefined, setSentryRelease: (value: string | undefined) => void, addSentryReleaseEventHandler: () => void;
340
+ export declare const useSentryDsn: () => string | undefined, setSentryDsn: (value: string | undefined) => void, addSentryDsnEventHandler: () => void;
341
+ export declare const useSentryEnv: () => string | undefined, setSentryEnv: (value: string | undefined) => void, addSentryEnvEventHandler: () => void;
342
+ export declare const useIsSentryTracingEnabled: () => boolean | undefined, setIsSentryTracingEnabled: (value: boolean | undefined) => void, addIsSentryTracingEnabledEventHandler: () => void;
343
+ export declare const useIsExternalProcessorsEnabled: () => boolean | undefined, setIsExternalProcessorsEnabled: (value: boolean | undefined) => void, addIsExternalProcessorsEnabledEventHandler: () => void;
344
+ export declare const useIsExternalPackagesEnabled: () => boolean | undefined, setIsExternalPackagesEnabled: (value: boolean | undefined) => void, addIsExternalPackagesEnabledEventHandler: () => void;
328
345
  /** Sets the enabled editors for Connect. */
329
- declare const setEnabledEditors: (value: string[] | undefined) => void;
346
+ export declare const setEnabledEditors: (value: string[] | undefined) => void;
330
347
  /** Gets the enabled editors for Connect. */
331
- declare const useEnabledEditors: () => string[] | undefined;
348
+ export declare const useEnabledEditors: () => string[] | undefined;
332
349
  /** Adds an event handler for when the enabled editors for Connect changes. */
333
- declare const addEnabledEditorsEventHandler: () => void;
350
+ export declare const addEnabledEditorsEventHandler: () => void;
334
351
  /** Sets the disabled editors for Connect. */
335
- declare const setDisabledEditors: (value: string[] | undefined) => void;
352
+ export declare const setDisabledEditors: (value: string[] | undefined) => void;
336
353
  /** Gets the disabled editors for Connect. */
337
- declare const useDisabledEditors: () => string[] | undefined;
354
+ export declare const useDisabledEditors: () => string[] | undefined;
338
355
  /** Adds an event handler for when the disabled editors for Connect changes. */
339
- declare const addDisabledEditorsEventHandler: () => void;
356
+ export declare const addDisabledEditorsEventHandler: () => void;
340
357
  /** Sets the isRelationalProcessorsEnabled for Connect. */
341
- declare const setIsRelationalProcessorsEnabled: (value: boolean | undefined) => void;
358
+ export declare const setIsRelationalProcessorsEnabled: (value: boolean | undefined) => void;
342
359
  /** Gets the isRelationalProcessorsEnabled for Connect. */
343
- declare const useIsRelationalProcessorsEnabled: () => boolean | undefined;
360
+ export declare const useIsRelationalProcessorsEnabled: () => boolean | undefined;
344
361
  /** Adds an event handler for when the isRelationalProcessorsEnabled for Connect changes. */
345
- declare const addIsRelationalProcessorsEnabledEventHandler: () => void;
362
+ export declare const addIsRelationalProcessorsEnabledEventHandler: () => void;
346
363
  /** Sets the isExternalRelationalProcessorsEnabled for Connect. */
347
- declare const setIsExternalRelationalProcessorsEnabled: (value: boolean | undefined) => void;
364
+ export declare const setIsExternalRelationalProcessorsEnabled: (value: boolean | undefined) => void;
348
365
  /** Gets the isExternalRelationalProcessorsEnabled for Connect. */
349
- declare const useIsExternalRelationalProcessorsEnabled: () => boolean | undefined;
366
+ export declare const useIsExternalRelationalProcessorsEnabled: () => boolean | undefined;
350
367
  /** Adds an event handler for when the isExternalRelationalProcessorsEnabled for Connect changes. */
351
- declare const addIsExternalRelationalProcessorsEnabledEventHandler: () => void;
368
+ export declare const addIsExternalRelationalProcessorsEnabledEventHandler: () => void;
352
369
  /** Sets the isAnalyticsEnabled for Connect. */
353
- declare const setIsAnalyticsEnabled: (value: boolean | undefined) => void;
370
+ export declare const setIsAnalyticsEnabled: (value: boolean | undefined) => void;
354
371
  /** Gets the isAnalyticsEnabled for Connect. */
355
- declare const useIsAnalyticsEnabled: () => boolean | undefined;
372
+ export declare const useIsAnalyticsEnabled: () => boolean | undefined;
356
373
  /** Adds an event handler for when the isAnalyticsEnabled for Connect changes. */
357
- declare const addIsAnalyticsEnabledEventHandler: () => void;
374
+ export declare const addIsAnalyticsEnabledEventHandler: () => void;
358
375
  /** Sets the isAnalyticsExternalProcessorsEnabled for Connect. */
359
- declare const setIsAnalyticsExternalProcessorsEnabled: (value: boolean | undefined) => void;
376
+ export declare const setIsAnalyticsExternalProcessorsEnabled: (value: boolean | undefined) => void;
360
377
  /** Gets the isAnalyticsExternalProcessorsEnabled for Connect. */
361
- declare const useIsAnalyticsExternalProcessorsEnabled: () => boolean | undefined;
378
+ export declare const useIsAnalyticsExternalProcessorsEnabled: () => boolean | undefined;
362
379
  /** Adds an event handler for when the isAnalyticsExternalProcessorsEnabled for Connect changes. */
363
- declare const addIsAnalyticsExternalProcessorsEnabledEventHandler: () => void;
380
+ export declare const addIsAnalyticsExternalProcessorsEnabledEventHandler: () => void;
364
381
  /** Sets the analytics database name for Connect. */
365
- declare const setAnalyticsDatabaseName: (value: string | undefined) => void;
382
+ export declare const setAnalyticsDatabaseName: (value: string | undefined) => void;
366
383
  /** Gets the analytics database name for Connect. */
367
- declare const useAnalyticsDatabaseName: () => string | undefined;
384
+ export declare const useAnalyticsDatabaseName: () => string | undefined;
368
385
  /** Adds an event handler for when the analytics database name for Connect changes. */
369
- declare const addAnalyticsDatabaseNameEventHandler: () => void;
386
+ export declare const addAnalyticsDatabaseNameEventHandler: () => void;
370
387
  /** Sets the log level for Connect. */
371
- declare const setLogLevel: (value: "error" | "debug" | "info" | "warn" | undefined) => void;
388
+ export declare const setLogLevel: (value: "debug" | "error" | "info" | "warn" | undefined) => void;
372
389
  /** Gets the log level for Connect. */
373
- declare const useLogLevel: () => "error" | "debug" | "info" | "warn" | undefined;
390
+ export declare const useLogLevel: () => "debug" | "error" | "info" | "warn" | undefined;
374
391
  /** Adds an event handler for when the log level for Connect changes. */
375
- declare const addLogLevelEventHandler: () => void;
392
+ export declare const addLogLevelEventHandler: () => void;
376
393
  /** Sets the allow list for Connect. */
377
- declare const setAllowList: (value: string[] | undefined) => void;
394
+ export declare const setAllowList: (value: string[] | undefined) => void;
378
395
  /** Gets the allow list for Connect. */
379
- declare const useAllowList: () => string[] | undefined;
396
+ export declare const useAllowList: () => string[] | undefined;
380
397
  /** Adds an event handler for when the allow list for Connect changes. */
381
- declare const addAllowListEventHandler: () => void;
382
- declare const phGlobalConfigSetters: PHGlobalConfigSetters$1;
383
- declare const phGlobalConfigHooks: PHGlobalConfigHooks$1;
398
+ export declare const addAllowListEventHandler: () => void;
399
+ export declare const phGlobalConfigSetters: PHGlobalConfigSetters$1;
400
+ export declare const phGlobalConfigHooks: PHGlobalConfigHooks$1;
384
401
  //#endregion
385
402
  //#region src/hooks/config/editor.d.ts
386
- declare const isExternalControlsEnabledEventFunctions: {
403
+ export declare const isExternalControlsEnabledEventFunctions: {
387
404
  useValue: () => boolean | undefined;
388
405
  setValue: (value: boolean | undefined) => void;
389
406
  addEventHandler: () => void;
407
+ subscribeToValue: (onStoreChange: () => void) => () => void;
408
+ getSnapshot: () => boolean | undefined;
390
409
  };
391
410
  /** Sets whether external controls are enabled for a given editor. */
392
- declare const setIsExternalControlsEnabled: (value: boolean | undefined) => void;
411
+ export declare const setIsExternalControlsEnabled: (value: boolean | undefined) => void;
393
412
  /** Gets whether external controls are enabled for a given editor. */
394
- declare const useIsExternalControlsEnabled: () => boolean | undefined;
413
+ export declare const useIsExternalControlsEnabled: () => boolean | undefined;
395
414
  /** Adds an event handler for when the external controls enabled state changes. */
396
- declare const addIsExternalControlsEnabledEventHandler: () => void;
415
+ export declare const addIsExternalControlsEnabledEventHandler: () => void;
397
416
  /** Sets whether drag and drop is enabled for a given app. */
398
- declare const setIsDragAndDropEnabled: (value: boolean | undefined) => void;
417
+ export declare const setIsDragAndDropEnabled: (value: boolean | undefined) => void;
399
418
  /** Gets whether drag and drop is enabled for a given app. */
400
- declare const useIsDragAndDropEnabled: () => boolean | undefined;
419
+ export declare const useIsDragAndDropEnabled: () => boolean | undefined;
401
420
  /** Adds an event handler for when the drag and drop enabled state changes. */
402
- declare const addIsDragAndDropEnabledEventHandler: () => void;
421
+ export declare const addIsDragAndDropEnabledEventHandler: () => void;
403
422
  /** Sets the allowed document types for a given app. */
404
- declare const setAllowedDocumentTypes: (value: string[] | undefined) => void;
423
+ export declare const setAllowedDocumentTypes: (value: string[] | undefined) => void;
405
424
  /** Defines the document types a drive supports.
406
425
  *
407
- * Defaults to all of the document types registered in the reactor.
426
+ * Unset or empty, it means every document type registered in the reactor.
408
427
  */
409
- declare function useAllowedDocumentTypes(): string[] | undefined;
428
+ export declare function useAllowedDocumentTypes(): string[] | undefined;
410
429
  /** Adds an event handler for when the allowed document types for a given app changes. */
411
- declare const addAllowedDocumentTypesEventHandler: () => void;
412
- declare const phAppConfigSetters: PHAppConfigSetters$1;
413
- declare const phDocumentEditorConfigSetters: PHDocumentEditorConfigSetters$1;
414
- declare const phAppConfigHooks: PHAppConfigHooks$1;
415
- declare const phDocumentEditorConfigHooks: PHDocumentEditorConfigHooks$1;
430
+ export declare const addAllowedDocumentTypesEventHandler: () => void;
431
+ export declare const phAppConfigSetters: PHAppConfigSetters$1;
432
+ export declare const phDocumentEditorConfigSetters: PHDocumentEditorConfigSetters$1;
433
+ export declare const phAppConfigHooks: PHAppConfigHooks$1;
434
+ export declare const phDocumentEditorConfigHooks: PHDocumentEditorConfigHooks$1;
416
435
  //#endregion
417
436
  //#region src/hooks/config/set-config-by-key.d.ts
418
- declare function setPHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
419
- declare function setPHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey, value: PHAppConfig$1[TKey] | undefined): void;
420
- declare function setPHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey, value: PHDocumentEditorConfig$1[TKey] | undefined): void;
437
+ export declare function setPHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
438
+ export declare function setPHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey, value: PHAppConfig$1[TKey] | undefined): void;
439
+ export declare function setPHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey, value: PHDocumentEditorConfig$1[TKey] | undefined): void;
421
440
  //#endregion
422
441
  //#region src/hooks/config/set-config-by-object.d.ts
423
- declare function setDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
424
- declare function useSetDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
425
- declare function useResetPHGlobalConfig(defaultConfigForReset: PHGlobalConfig$1): () => void;
426
- declare function setPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
427
- declare function useSetPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
442
+ export declare function setDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
443
+ export declare function useSetDefaultPHGlobalConfig(config: PHGlobalConfig$1): void;
444
+ export declare function useResetPHGlobalConfig(defaultConfigForReset: PHGlobalConfig$1): () => void;
445
+ export declare function setPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
446
+ export declare function useSetPHGlobalConfig(config: Partial<PHGlobalConfig$1>): void;
428
447
  /** Sets the global drive config.
429
448
  *
430
449
  * Pass in a partial object of the global drive config to set.
431
450
  */
432
- declare function setPHAppConfig(config: Partial<PHAppConfig$1>): void;
451
+ export declare function setPHAppConfig(config: Partial<PHAppConfig$1>): void;
433
452
  /** Sets the global document config.
434
453
  *
435
454
  * Pass in a partial object of the global document config to set.
436
455
  */
437
- declare function setPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
456
+ export declare function setPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
438
457
  /** Wrapper hook for setting the global app config.
439
458
  *
440
459
  * Automatically sets the global app config when the component mounts.
441
460
  *
442
461
  * Pass in a partial object of the global app config to set.
443
462
  */
444
- declare function useSetPHAppConfig(config: Partial<PHAppConfig$1>): void;
463
+ export declare function useSetPHAppConfig(config: Partial<PHAppConfig$1>): void;
445
464
  /** Wrapper hook for setting the global document editor config.
446
465
  *
447
466
  * Automatically sets the global document editor config when the component mounts.
448
467
  *
449
468
  * Pass in a partial object of the global document editor config to set.
450
469
  */
451
- declare function useSetPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
470
+ export declare function useSetPHDocumentEditorConfig(config: Partial<PHDocumentEditorConfig$1>): void;
452
471
  //#endregion
453
472
  //#region src/hooks/config/use-value-by-key.d.ts
454
- declare function usePHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey): _powerhousedao_reactor_browser0.PHGlobalConfig[TKey];
473
+ export declare function usePHGlobalConfigByKey<TKey extends PHGlobalConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
455
474
  /** Gets the value of an item in the global drive config for a given key.
456
475
  *
457
476
  * Strongly typed, inferred from type definition for the key.
458
477
  */
459
- declare function usePHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey): _powerhousedao_reactor_browser0.PHGlobalConfig[TKey];
478
+ export declare function usePHAppConfigByKey<TKey extends PHAppConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
460
479
  /** Gets the value of an item in the global document config for a given key.
461
480
  *
462
481
  * Strongly typed, inferred from type definition for the key.
463
482
  */
464
- declare function usePHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey): _powerhousedao_reactor_browser0.PHGlobalConfig[TKey];
483
+ export declare function usePHDocumentEditorConfigByKey<TKey extends PHDocumentEditorConfigKey$1>(key: TKey): import("@powerhousedao/reactor-browser").PHGlobalConfig[TKey];
465
484
  //#endregion
466
485
  //#region src/hooks/config/utils.d.ts
467
- declare function callGlobalSetterForKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
486
+ export declare function callGlobalSetterForKey<TKey extends PHGlobalConfigKey$1>(key: TKey, value: PHGlobalConfig$1[TKey] | undefined): void;
468
487
  //#endregion
469
488
  //#region src/hooks/drives.d.ts
470
489
  /** Returns all of the drives in the reactor */
471
- declare const useDrives: UsePHGlobalValue<DocumentDriveDocument[]>;
490
+ export declare const useDrives: UsePHGlobalValue<DocumentDriveDocument[]>;
472
491
  /** Sets the drives in the reactor */
473
- declare const setDrives: SetPHGlobalValue<DocumentDriveDocument[]>;
492
+ export declare const setDrives: SetPHGlobalValue<DocumentDriveDocument[]>;
474
493
  /** Adds an event handler for the drives */
475
- declare const addDrivesEventHandler: () => void;
494
+ export declare const addDrivesEventHandler: () => void;
476
495
  //#endregion
477
496
  //#region src/hooks/loading.d.ts
478
- declare const useLoading: () => boolean | undefined, setLoading: (value: boolean | undefined) => void, addLoadingEventHandler: () => void;
479
- declare const loading: LOADING;
497
+ export declare const useLoading: () => boolean | undefined, setLoading: (value: boolean | undefined) => void, addLoadingEventHandler: () => void;
498
+ export declare const loading: LOADING;
480
499
  //#endregion
481
500
  //#region src/hooks/connection-state.d.ts
482
501
  /**
483
502
  * Returns a map of remote name to connection state snapshot for all remotes.
484
503
  * Re-renders when any remote's connection state changes.
485
504
  */
486
- declare function useConnectionStates(): ReadonlyMap<string, ConnectionStateSnapshot$1>;
505
+ export declare function useConnectionStates(): ReadonlyMap<string, ConnectionStateSnapshot$1>;
487
506
  /**
488
507
  * Returns the connection state snapshot for a specific remote by name.
489
508
  */
490
- declare function useConnectionState(remoteName: string): ConnectionStateSnapshot$1 | undefined;
509
+ export declare function useConnectionState(remoteName: string): ConnectionStateSnapshot$1 | undefined;
491
510
  //#endregion
492
511
  //#region src/hooks/document-by-id.d.ts
493
512
  /** Returns a document by id. */
494
- declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action$1>;
513
+ export declare function useDocumentById(id: string | null | undefined): UseDispatchResult<PHDocument$1, Action$1>;
495
514
  /** Returns documents by ids. */
496
- declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
515
+ export declare function useDocumentsByIds(ids: string[] | null | undefined): PHDocument$1[];
516
+ //#endregion
517
+ //#region src/hooks/link-props.d.ts
518
+ type ClickLike = Pick<MouseEvent, "button" | "metaKey" | "ctrlKey" | "shiftKey" | "altKey" | "defaultPrevented" | "preventDefault">;
519
+ /** A plain primary click; modified and other-button clicks stay the browser's. */
520
+ export declare function isPlainClick(event: ClickLike): boolean;
521
+ export type LinkProps = {
522
+ href: string;
523
+ onClick: (event: ClickLike) => void;
524
+ onMouseEnter: () => void;
525
+ onFocus: () => void;
526
+ "aria-current"?: "page";
527
+ };
528
+ /** Props for an `<a>` that opens `target` in the app on a plain click, and
529
+ * leaves new tabs and windows to the browser; acts on the store in context. */
530
+ export declare function useLinkProps(target: PHNavigationTarget$1 | undefined, open?: () => void): LinkProps;
531
+ //#endregion
532
+ //#region src/hooks/document-link.d.ts
533
+ /** Where a document opens: the loaded drive that lists it, or undefined while none does. */
534
+ export declare function useDocumentTarget(documentId: string | null | undefined): PHDriveTarget | undefined;
535
+ /** `useLinkProps` for a document by id, e.g. a `useDocumentsOfType` row;
536
+ * undefined while no loaded drive lists it. */
537
+ export declare function useDocumentLinkProps(documentId: string | null | undefined): LinkProps | undefined;
538
+ //#endregion
539
+ //#region src/hooks/documents-of-type.d.ts
540
+ export type DocumentsOfTypeOptions = {
541
+ /** Documents per page; 25 by default. */
542
+ limit?: number;
543
+ };
544
+ export type DocumentsOfType<TState extends PHBaseState> = {
545
+ /** The loaded pages' documents that pass the module's schema. */
546
+ documents: PHDocument$1<TState>[];
547
+ /** Documents of the type that fail it, e.g. written by another version of the model. */
548
+ invalid: PHDocument$1[];
549
+ hasNextPage: boolean;
550
+ isLoadingNextPage: boolean;
551
+ /** Loads the next page; does nothing while one loads or when there is none. */
552
+ loadNextPage: () => void;
553
+ /** The last failure loading a further page; a failed first page throws. */
554
+ error: unknown;
555
+ };
556
+ type ModelOf = Pick<DocumentModelModule$1, "documentModel">;
557
+ /** The documents of `module`'s type across every drive, a page at a time and
558
+ * checked against its schema; suspends until the first page has loaded. */
559
+ export declare function useDocumentsOfType<TState extends PHBaseState>(module: DocumentModelModule$1<TState>, { limit }?: DocumentsOfTypeOptions): DocumentsOfType<TState>;
560
+ /** Loads the first page `useDocumentsOfType` reads, e.g. in a route loader, so it doesn't suspend. */
561
+ export declare function loadDocumentsOfType(module: ModelOf, { limit }?: DocumentsOfTypeOptions): Promise<void>;
497
562
  //#endregion
498
563
  //#region src/hooks/document-of-type.d.ts
499
564
  /** Returns a document of a specific type, throws an error if the found document has a different type */
500
- declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$1<TAction>];
565
+ export declare function useDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentId: string | null | undefined, documentType: string | null | undefined): never[] | [TDocument, DocumentDispatch$2<TAction>];
501
566
  //#endregion
502
567
  //#region src/hooks/document-types.d.ts
503
568
  /** Returns the document types a app supports.
504
569
  *
505
- * If present, uses the `allowedDocumentTypes` config value.
506
- * Otherwise, uses the supported document types from the reactor.
570
+ * Uses the `allowedDocumentTypes` config value when it lists any types.
571
+ * Unset or empty, it means every type, so the reactor's supported types are used.
507
572
  */
508
- declare function useDocumentTypes(): string[] | undefined;
573
+ export declare function useDocumentTypes(): string[] | undefined;
509
574
  //#endregion
510
575
  //#region src/hooks/document-version-status.d.ts
511
- type DocumentVersionStatus = {
576
+ export type DocumentVersionStatus = {
512
577
  kind: "current";
513
578
  documentVersion: number;
514
579
  } | {
@@ -525,47 +590,85 @@ type DocumentVersionStatus = {
525
590
  * Classifies a document's model version against the installed module
526
591
  * versions. Pure logic, extracted for testing.
527
592
  */
528
- declare function getDocumentVersionStatus(documentVersion: number, availableVersions: number[], hasUpgradePath: (fromVersion: number, toVersion: number) => boolean): DocumentVersionStatus | undefined;
593
+ export declare function getDocumentVersionStatus(documentVersion: number, availableVersions: number[], hasUpgradePath: (fromVersion: number, toVersion: number) => boolean): DocumentVersionStatus | undefined;
529
594
  /**
530
595
  * Compares the given document's model version against the versions available
531
596
  * from installed Vetra packages. Returns undefined while packages load or
532
597
  * when the document type has no installed modules.
533
598
  */
534
- declare function useDocumentVersionStatus(document: PHDocument$1 | undefined): DocumentVersionStatus | undefined;
599
+ export declare function useDocumentVersionStatus(document: PHDocument$1 | undefined): DocumentVersionStatus | undefined;
535
600
  //#endregion
536
601
  //#region src/hooks/download-document.d.ts
537
- declare function useDownloadDocument(id: string | undefined): () => Promise<void>;
602
+ export declare function useDownloadDocument(id: string | undefined): () => Promise<void>;
538
603
  //#endregion
539
604
  //#region src/hooks/download-folder.d.ts
540
605
  /**
541
606
  * Downloads the selected drive's folder (or the whole drive when no folder
542
607
  * is given) as a single zip archive mirroring the folder tree.
543
608
  */
544
- declare function useDownloadFolder(folderNode?: FolderNode): () => Promise<void>;
609
+ export declare function useDownloadFolder(folderNode?: FolderNode): () => Promise<void>;
545
610
  //#endregion
546
611
  //#region src/hooks/drive-by-id.d.ts
547
- declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction>];
612
+ export declare function useDriveById(driveId: string | undefined | null): [DocumentDriveDocument, DocumentDispatch<DocumentDriveAction>];
613
+ //#endregion
614
+ //#region src/hooks/drive-context.d.ts
615
+ /** The drive a drive app shows. `open`/`preload` replace the app's navigation,
616
+ * e.g. for a host that keeps the open node in local state. */
617
+ export type DriveContextValue = {
618
+ drive: DocumentDriveDocument;
619
+ dispatch: DocumentDispatch$1<DocumentDriveAction>;
620
+ /** The open folder; undefined at the drive's root or on a document. */
621
+ folder?: FolderNode;
622
+ /** The open node, a folder or a document. */
623
+ nodeId?: string;
624
+ open?: (node: Node | undefined, options?: PHNavigateOptions) => void;
625
+ preload?: (node: Node | undefined) => void;
626
+ };
627
+ /** Hosts render a drive app inside this; `useSelectedDrive`, `useSelectedNode`
628
+ * and `useSelectedFolder` below read it, and opening nodes calls its `open`. */
629
+ export declare function DriveProvider(props: {
630
+ value: DriveContextValue;
631
+ children: ReactNode;
632
+ }): import("react/jsx-runtime").JSX.Element;
633
+ /** The nearest drive app's drive, or undefined outside one. */
634
+ export declare function useDriveContext(): DriveContextValue | undefined;
635
+ //#endregion
636
+ //#region src/hooks/editor-context.d.ts
637
+ /** The document an editor is rendered with, and a dispatch bound to it. */
638
+ export type EditorDocumentContextValue = readonly [PHDocument$1, DocumentDispatch$1];
639
+ /** Hosts render an editor inside this, with the same `document` and `dispatch`
640
+ * as its props; `useSelected*Document` hooks below read them. */
641
+ export declare function EditorDocumentProvider(props: {
642
+ document: PHDocument$1;
643
+ dispatch: DocumentDispatch$1;
644
+ children: ReactNode;
645
+ }): import("react/jsx-runtime").JSX.Element;
646
+ /** The nearest editor's document and dispatch, or undefined outside one. */
647
+ export declare function useEditorDocumentContext(): EditorDocumentContextValue | undefined;
548
648
  //#endregion
549
649
  //#region src/hooks/editor-modules.d.ts
550
- declare function useEditorModules(): EditorModule[] | undefined;
551
- declare function useAppModules(): EditorModule[] | undefined;
552
- declare function useFallbackEditorModule(documentType: string | null | undefined): EditorModule | undefined;
553
- declare function useAppModuleById(id: string | null | undefined): EditorModule | undefined;
554
- declare function useDefaultAppModule(): EditorModule | undefined;
555
- declare function useEditorModuleById(id: string | null | undefined): EditorModule | undefined;
556
- declare function useEditorModulesForDocumentType(documentType: string | null | undefined): EditorModule[] | undefined;
650
+ export declare function useEditorModules(): EditorModule[] | undefined;
651
+ export declare function useAppModules(): EditorModule[] | undefined;
652
+ export declare function useFallbackEditorModule(documentType: string | null | undefined): EditorModule | undefined;
653
+ export declare function useAppModuleById(id: string | null | undefined): EditorModule | undefined;
654
+ export declare function useDefaultAppModule(): EditorModule | undefined;
655
+ export declare function useEditorModuleById(id: string | null | undefined): EditorModule | undefined;
656
+ export declare function useEditorModulesForDocumentType(documentType: string | null | undefined): EditorModule[] | undefined;
657
+ /** The editor for `document`: its preferred editor if that edits its type,
658
+ * else the first editor for its type. */
659
+ export declare function useEditorModuleFor(document: PHDocument$1 | null | undefined): EditorModule | undefined;
557
660
  //#endregion
558
661
  //#region src/hooks/use-editor-preloader.d.ts
559
- declare function useEditorPreloader(): void;
662
+ export declare function useEditorPreloader(): void;
560
663
  //#endregion
561
664
  //#region src/hooks/features.d.ts
562
- declare const useFeatures: UsePHGlobalValue<Map<string, boolean>>;
563
- declare const setFeatures: SetPHGlobalValue<Map<string, boolean>>;
564
- declare const addFeaturesEventHandler: AddPHGlobalEventHandler;
665
+ export declare const useFeatures: UsePHGlobalValue<Map<string, boolean>>;
666
+ export declare const setFeatures: SetPHGlobalValue<Map<string, boolean>>;
667
+ export declare const addFeaturesEventHandler: AddPHGlobalEventHandler;
565
668
  //#endregion
566
669
  //#region src/hooks/file-drag-and-drop.d.ts
567
- declare const EDITOR_FILE_DROP_OPT_OUT_ATTR = "data-accepts-files";
568
- declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>): {
670
+ export declare const EDITOR_FILE_DROP_OPT_OUT_ATTR = "data-accepts-files";
671
+ export declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefined) => Promise<void>): {
569
672
  onDragEnter: DragEventHandler;
570
673
  onDragOver: DragEventHandler;
571
674
  onDragLeave: DragEventHandler;
@@ -574,65 +677,87 @@ declare function useDropFile(handleAddFile: (file: File, parent: Node$1 | undefi
574
677
  };
575
678
  //#endregion
576
679
  //#region src/hooks/folder-by-id.d.ts
577
- declare function useFolderById(id: string | null | undefined): FolderNode | undefined;
680
+ export declare function useFolderById(id: string | null | undefined): FolderNode | undefined;
578
681
  //#endregion
579
682
  //#region src/hooks/graphql-reactor-client.d.ts
580
- declare const useGraphQLReactorClient: UsePHGlobalValue<ReactorGraphQLClient>;
581
- declare const setGraphQLReactorClient: SetPHGlobalValue<ReactorGraphQLClient>;
582
- declare const addGraphQLReactorClientEventHandler: () => void;
683
+ export declare const useGraphQLReactorClient: UsePHGlobalValue<ReactorGraphQLClient>;
684
+ export declare const setGraphQLReactorClient: SetPHGlobalValue<ReactorGraphQLClient>;
685
+ export declare const addGraphQLReactorClientEventHandler: () => void;
583
686
  //#endregion
584
687
  //#region src/hooks/init-graphql-reactor-client.d.ts
585
- declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:4001/graphql", driveId?: "powerhouse"): boolean;
688
+ export declare function useInitReactorGraphqlClient(switchboardUrl?: "http://localhost:4001/graphql", driveId?: "powerhouse"): boolean;
586
689
  //#endregion
587
690
  //#region src/hooks/items-in-selected-drive.d.ts
588
691
  /** Returns the nodes in the selected drive. */
589
- declare function useNodesInSelectedDrive(): _powerhousedao_shared_document_drive0.Node[] | undefined;
692
+ export declare function useNodesInSelectedDrive(): Node[] | undefined;
590
693
  /** Returns the file nodes in the selected drive. */
591
- declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
694
+ export declare function useFileNodesInSelectedDrive(): FileNode[] | undefined;
592
695
  /** Returns the folder nodes in the selected drive. */
593
- declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
696
+ export declare function useFolderNodesInSelectedDrive(): FolderNode[] | undefined;
594
697
  /** Returns the documents in the selected drive. */
595
- declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
698
+ export declare function useDocumentsInSelectedDrive(): PHDocument$1[] | undefined;
596
699
  /** Returns the document types supported by the selected drive, as defined by the document model documents present in the drive */
597
- declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
700
+ export declare function useDocumentTypesInSelectedDrive(): string[] | undefined;
598
701
  //#endregion
599
702
  //#region src/hooks/items-in-selected-folder.d.ts
600
703
  /** Returns the nodes in the selected folder. */
601
- declare function useNodesInSelectedFolder(): Node[] | undefined;
704
+ export declare function useNodesInSelectedFolder(): Node[] | undefined;
602
705
  /** Returns the file nodes in the selected folder. */
603
- declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
706
+ export declare function useFileNodesInSelectedFolder(): FileNode[] | undefined;
604
707
  /** Returns the folder nodes in the selected folder. */
605
- declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
708
+ export declare function useFolderNodesInSelectedFolder(): FolderNode[] | undefined;
606
709
  /** Returns the documents in the selected folder. */
607
- declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
710
+ export declare function useDocumentsInSelectedFolder(): PHDocument$1[] | undefined;
608
711
  //#endregion
609
712
  //#region src/hooks/make-ph-event-functions.d.ts
610
- declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
713
+ /** Calls `onChange` whenever `key` is set: through the bound store, or the
714
+ * `ph:<key>Updated` event on pages that bound none. */
715
+ export declare function subscribeToPHValue(key: PHGlobalKey$1, onChange: () => void): () => void;
716
+ export declare function makePHEventFunctions<TKey extends PHGlobalKey$1>(key: TKey): {
611
717
  useValue: () => PHGlobal$1[TKey] | undefined;
612
718
  setValue: (value: PHGlobal$1[TKey] | undefined) => void;
613
719
  addEventHandler: () => void;
720
+ subscribeToValue: (onStoreChange: () => void) => () => void;
721
+ getSnapshot: () => PHGlobal$1[TKey] | undefined;
614
722
  };
615
723
  //#endregion
616
724
  //#region src/hooks/modals.d.ts
617
725
  /** Returns the current modal */
618
- declare const usePHModal: () => PHModal$1 | undefined;
726
+ export declare const usePHModal: () => PHModal$1 | undefined;
619
727
  /** Sets the current modal */
620
- declare const setPHModal: (value: PHModal$1 | undefined) => void;
728
+ export declare const setPHModal: (value: PHModal$1 | undefined) => void;
621
729
  /** Adds an event handler for the modal */
622
- declare const addModalEventHandler: () => void;
623
- /** Shows a modal */
624
- declare function showPHModal(modal: PHModal$1): void;
625
- /** Closes the current modal */
626
- declare function closePHModal(): void;
730
+ export declare const addModalEventHandler: () => void;
731
+ /** The query param that names a routed modal. */
732
+ export declare const MODAL_SEARCH_PARAM = "modal";
733
+ /** Whether `modal` lives in the URL rather than the store. */
734
+ export declare function isRoutedModal(modal: PHModal$1 | undefined): boolean;
735
+ /** The query params that open `modal`; undefined for one the store holds. */
736
+ export declare function modalSearch(modal: PHModal$1): Record<string, string> | undefined;
737
+ /** The routed modal `search` opens, if any. */
738
+ export declare function modalFromSearch(search: Record<string, unknown>): PHModal$1 | undefined;
739
+ /** `search` without a routed modal's params. */
740
+ export declare function withoutModalSearch(search: Record<string, string>): PHSearchUpdate$1;
741
+ /** Shows a modal. With a host navigation, a routed one opens in the URL, in
742
+ * place of the current entry, and "settings" opens the settings page. */
743
+ export declare function showPHModal(modal: PHModal$1): void;
744
+ /** Closes the current modal; a routed one leaves the URL in place of the entry,
745
+ * and a confirmation opened over it closes with it. */
746
+ export declare function closePHModal(): void;
747
+ /** The href that opens `modal` over the current page. */
748
+ export declare function modalHref(modal: PHModal$1): string;
749
+ /** Props for an `<a>` that opens a routed `modal` over the current page on a
750
+ * plain click; new tabs and copied links get its URL. */
751
+ export declare function useModalLinkProps(modal: PHModal$1): Pick<LinkProps, "href" | "onClick">;
627
752
  /** Shows the create document modal */
628
- declare function showCreateDocumentModal(documentType: string, documentModelVersion?: number): void;
753
+ export declare function showCreateDocumentModal(documentType: string, documentModelVersion?: number): void;
629
754
  /** Shows the delete node modal */
630
- declare function showDeleteNodeModal(nodeOrId: Node | string): void;
755
+ export declare function showDeleteNodeModal(nodeOrId: Node | string): void;
631
756
  //#endregion
632
757
  //#region src/hooks/node-actions.d.ts
633
- declare function useNodeActions(): {
758
+ export declare function useNodeActions(): {
634
759
  onAddFile: (file: File, parent: Node | undefined) => Promise<AddedFileNode | undefined>;
635
- onAddFolder: (name: string, parent: Node | undefined) => Promise<_powerhousedao_shared_document_drive0.FolderNode | undefined>;
760
+ onAddFolder: (name: string, parent: Node | undefined) => Promise<import("@powerhousedao/shared/document-drive").FolderNode | undefined>;
636
761
  onRenameNode: (newName: string, node: Node) => Promise<Node | undefined>;
637
762
  onCopyNode: (src: Node, target: Node | undefined) => Promise<void>;
638
763
  onMoveNode: (src: Node, target: Node | undefined) => Promise<void>;
@@ -643,89 +768,197 @@ declare function useNodeActions(): {
643
768
  //#endregion
644
769
  //#region src/hooks/node-by-id.d.ts
645
770
  /** Returns a node in the selected drive by id. */
646
- declare function useNodeById(id: string | null | undefined): Node | undefined;
771
+ export declare function useNodeById(id: string | null | undefined): Node | undefined;
647
772
  //#endregion
648
773
  //#region src/hooks/node-path.d.ts
649
774
  /** Returns the path to a node in the selected drive */
650
- declare function useNodePathById(id: string | null | undefined): Node[];
775
+ export declare function useNodePathById(id: string | null | undefined): Node[];
651
776
  /** Returns the path to the currently selected node in the selected drive. */
652
- declare function useSelectedNodePath(): Node[];
777
+ export declare function useSelectedNodePath(): Node[];
653
778
  //#endregion
654
779
  //#region src/hooks/package-discovery.d.ts
655
- declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
656
- declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
657
- declare const addPackageDiscoveryServiceEventHandler: () => void;
780
+ export declare const usePackageDiscoveryService: () => IPackageDiscoveryService | undefined;
781
+ export declare const setPackageDiscoveryService: (value: IPackageDiscoveryService | undefined) => void;
782
+ export declare const addPackageDiscoveryServiceEventHandler: () => void;
658
783
  //#endregion
659
784
  //#region src/hooks/parent-folder.d.ts
660
- declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
661
- declare function useParentFolderForSelectedNode(): FolderNode | undefined;
785
+ export declare function useNodeParentFolderById(id: string | null | undefined): FolderNode | undefined;
786
+ export declare function useParentFolderForSelectedNode(): FolderNode | undefined;
662
787
  //#endregion
663
788
  //#region src/hooks/revision-history.d.ts
664
- /** Returns whether revision history is visible */
665
- declare const useRevisionHistoryVisible: () => boolean | undefined;
666
- /** Sets revision history visibility */
667
- declare const setRevisionHistoryVisible: (value: boolean | undefined) => void;
668
- /** Adds event handler for revision history visibility */
669
- declare const addRevisionHistoryVisibleEventHandler: () => void;
670
- /** Shows the revision history */
671
- declare function showRevisionHistory(): void;
672
- /** Hides the revision history */
673
- declare function hideRevisionHistory(): void;
789
+ /** The query param that opens the document's revision history: `?history`. */
790
+ export declare const REVISION_HISTORY_PARAM = "history";
791
+ /** The history page shown, from 1 (the newest operations): `?history&historyPage=2`.
792
+ * Its own name: a drive app or editor may page by `page`. */
793
+ export declare const REVISION_HISTORY_PAGE_PARAM = "historyPage";
794
+ /** The page a `page` param names: a positive integer, else the first. */
795
+ export declare function parseRevisionHistoryPage(value: string | undefined): number;
796
+ /** Whether the URL opens the revision history. */
797
+ export declare function useRevisionHistoryVisible(): boolean;
798
+ /** The revision history page the URL names, from 1. */
799
+ export declare function useRevisionHistoryPage(): number;
800
+ /** Shows the revision history: a new history entry, so Back closes it. */
801
+ export declare function showRevisionHistory(): void;
802
+ /** Hides the revision history. */
803
+ export declare function hideRevisionHistory(): void;
804
+ /** Opens history page `page`, from 1; Back returns to the page before. */
805
+ export declare function setRevisionHistoryPage(page: number): void;
806
+ /** Shows or hides the revision history. */
807
+ export declare function setRevisionHistoryVisible(visible: boolean | undefined): void;
808
+ /** @deprecated The revision history is a URL param now; there is no store value to watch. */
809
+ export declare function addRevisionHistoryVisibleEventHandler(): void;
674
810
  //#endregion
675
811
  //#region src/hooks/selected-document.d.ts
676
- /** Returns the selected document id */
677
- declare function useSelectedDocumentId(): string | undefined;
678
- /** Returns the selected document. */
679
- declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action$1>];
812
+ /** Returns the selected document id: the editor's document, else the drive
813
+ * app's open document, else the app's selection. */
814
+ export declare function useSelectedDocumentId(): string | undefined;
680
815
  /** Returns the selected document. */
681
- declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action$1>;
816
+ export declare function useSelectedDocument(): readonly [PHDocument$1, DispatchFn<Action$1>];
817
+ /** Returns the selected document: the editor's, else the app's selection. */
818
+ export declare function useSelectedDocumentSafe(): UseDispatchResult<PHDocument$1, Action$1>;
682
819
  /** Returns the selected document of a specific type, throws an error if the found document has a different type */
683
- declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
684
- declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentType: string): [TDocument, DocumentDispatch$1<TAction>];
820
+ export declare function useSelectedDocumentOfType(documentType: null | undefined): never[];
821
+ export declare function useSelectedDocumentOfType<TDocument extends PHDocument$1, TAction extends Action$1>(documentType: string): [TDocument, DocumentDispatch$2<TAction>];
822
+ //#endregion
823
+ //#region src/hooks/navigation.d.ts
824
+ /** Fired on `window` when the fallback navigator rewrites the URL. */
825
+ export declare const PH_LOCATION_CHANGE_EVENT = "ph:locationchange";
826
+ /** Params read at boot or app-wide; they survive every navigation. Others,
827
+ * e.g. a document's own, are dropped when the target changes. */
828
+ export declare const GLOBAL_SEARCH_PARAMS: readonly ["driveUrl", "theme", "embed", "LOG_LEVEL", "reactorWorker"];
829
+ /** Feature flags are any `FEATURE_*` param, so they are retained by prefix. */
830
+ export declare const FEATURE_FLAG_PARAM_PREFIX = "FEATURE_";
831
+ /** Whether `key` is a param every navigation keeps. */
832
+ export declare function isGlobalSearchParam(key: string): boolean;
833
+ /** A query string's params; repeated keys keep their last value. */
834
+ export declare function searchToRecord(search: string): Record<string, string>;
835
+ /** `prev` with `update` applied; an `undefined` value removes the key. */
836
+ export declare function applySearchUpdate(prev: Record<string, string>, update: PHSearchUpdate$1): Record<string, string>;
837
+ /** `params` as a query string, with an empty value as a bare key: `history`, not `history=`. */
838
+ export declare function searchParamsToString(params: URLSearchParams): string;
839
+ /** `?a=1&b=2`, or an empty string for no params. */
840
+ export declare function recordToSearch(record: Record<string, string>): string;
841
+ /** The settings page's path; its tabs are below it. */
842
+ export declare const SETTINGS_PATH = "/settings";
843
+ export declare function isSettingsTarget(target: PHNavigationTarget$1 | undefined): target is PHSettingsTarget$1;
844
+ /** The pathname a target opens at, base path included. */
845
+ export declare function targetPathname(target: PHNavigationTarget$1 | undefined): string;
846
+ /** History state key: the index of the entry a document was opened from. */
847
+ export declare const OPENED_FROM_STATE_KEY = "phOpenedFrom";
848
+ /** The index to go back to from `index`, when it lies before it. */
849
+ export declare function openedFromIndex(state: object | undefined, index: number): number | undefined;
850
+ /** @internal Selects what the browser fallback opens; sync-selection.ts sets it. */
851
+ export declare function setBrowserOpenSync(sync: () => void): void;
852
+ export declare const browserNavigation: PHNavigation$1;
853
+ /** True when the store has a host navigation, not the browser fallback. */
854
+ export declare function hasHostNavigation(): boolean;
855
+ /** The app store's navigation, else the browser fallback. */
856
+ export declare function getPHNavigation(): PHNavigation$1;
857
+ /** The current pathname as the navigation sees it, base path included. */
858
+ export declare function getCurrentPathname(): string;
859
+ /** Opens `target`; without `search`, a target already open is left alone. */
860
+ export declare function openTarget(target: PHNavigationTarget$1 | undefined, options?: PHNavigateOptions$1): void;
861
+ /** Opens `target` through `navigation`, unless it is open already. */
862
+ export declare function openTargetWith(navigation: PHNavigation$1, target: PHNavigationTarget$1 | undefined, options?: PHNavigateOptions$1): void;
863
+ /** Asks the host navigation to warm `target`; a no-op without one. */
864
+ export declare function preloadTarget(target: PHNavigationTarget$1 | undefined): void;
865
+ /** The href `target` opens at through `navigation`, base path included. */
866
+ export declare function getTargetHref(target: PHNavigationTarget$1 | undefined, navigation?: PHNavigation$1): string;
867
+ export declare function resolveSearchUpdate(prev: Record<string, string>, update: SearchParamsUpdate$1): Record<string, string>;
868
+ /** Rewrites the current query params through the app store's navigation. */
869
+ export declare function setSearchParams(update: SearchParamsUpdate$1, options?: {
870
+ replace?: boolean;
871
+ }): void;
872
+ //#endregion
873
+ //#region src/hooks/url-state.d.ts
874
+ /** The nearest store's navigation, else the bound store's, else the browser's.
875
+ * Hosts set it once, so hook order holds. */
876
+ export declare function usePHNavigation(): PHNavigation$1;
877
+ /** The current query params. */
878
+ export declare function useSearchParams(): Record<string, string>;
879
+ /** Sets query params: an object merges into them, a function returns them all. */
880
+ export declare function useSetSearchParams(): SetSearchParams$1;
685
881
  //#endregion
686
882
  //#region src/hooks/selected-drive.d.ts
687
- /** Returns the selected drive id */
688
- declare const useSelectedDriveId: () => string | undefined;
883
+ /** Returns the selected drive id: the drive app's drive, else the app's selection. */
884
+ export declare function useSelectedDriveId(): string | undefined;
689
885
  /** Sets the selected drive id */
690
- declare const setSelectedDriveId: (value: string | undefined) => void;
691
- /** Adds an event handler for the selected drive id */
692
- declare const addSelectedDriveIdEventHandler: () => void;
886
+ export declare const setSelectedDriveId: (value: string | undefined) => void;
887
+ /** Adds an event handler for the selected drive id
888
+ * @deprecated `ph:setSelectedDriveId` bypasses the URL; use `setSelectedDrive`. */
889
+ export declare const addSelectedDriveIdEventHandler: () => void;
693
890
  /** Returns the selected drive */
694
- declare function useSelectedDrive(): [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
891
+ export declare function useSelectedDrive(): [DocumentDriveDocument, DocumentDispatch$2<DocumentDriveAction>];
695
892
  /** Returns the selected drive, or undefined if no drive is selected */
696
- declare function useSelectedDriveSafe(): readonly [undefined, undefined] | [DocumentDriveDocument, DocumentDispatch$1<DocumentDriveAction>];
697
- declare function setSelectedDrive(driveOrDriveSlug: string | DocumentDriveDocument | undefined): void;
698
- declare function addSetSelectedDriveOnPopStateEventHandler(): void;
893
+ export declare function useSelectedDriveSafe(): [DocumentDriveDocument, DocumentDispatch$2<DocumentDriveAction>] | readonly [undefined, undefined];
894
+ type DriveRef = string | DocumentDriveDocument | undefined;
895
+ /** Selects a drive in the app's store. */
896
+ export declare function setSelectedDrive(driveOrDriveSlug: DriveRef): void;
897
+ /** `setSelectedDrive`, as a hook. */
898
+ export declare function useSetSelectedDrive(): (drive: DriveRef) => void;
899
+ /** Warms a drive's view before it is opened, e.g. on hover. */
900
+ export declare function preloadDrive(drive: DocumentDriveDocument | undefined): void;
901
+ /** `preloadDrive`, as a hook. */
902
+ export declare function usePreloadDrive(): (drive: DocumentDriveDocument | undefined) => void;
699
903
  //#endregion
700
904
  //#region src/hooks/selected-folder.d.ts
701
- /** Returns the selected folder. */
702
- declare function useSelectedFolder(): FolderNode | undefined;
905
+ /** Returns the selected folder: the drive app's open folder, else the app's. */
906
+ export declare function useSelectedFolder(): FolderNode | undefined;
703
907
  //#endregion
704
908
  //#region src/hooks/set-selected-node.d.ts
705
- declare const addSelectedNodeIdEventHandler: () => void;
706
- /** Sets the selected node (file or folder). */
707
- declare function setSelectedNode(nodeOrNodeSlug: Node | string | undefined): void;
708
- declare function addResetSelectedNodeEventHandler(): void;
709
- declare function addSetSelectedNodeOnPopStateEventHandler(): void;
909
+ /** Sets the selected node id without touching the URL. */
910
+ export declare const setSelectedNodeId: (value: string | undefined) => void;
911
+ /** @deprecated `ph:setSelectedNodeId` bypasses the URL; use `setSelectedNode`. */
912
+ export declare const addSelectedNodeIdEventHandler: () => void;
913
+ type NodeRef = Node | string | undefined;
914
+ /** Sets the selected node (file or folder) of the app's store; `search` sets
915
+ * the params it opens with. Inside a drive app, use `useSetSelectedNode`. */
916
+ export declare function setSelectedNode(node: NodeRef, options?: PHNavigateOptions$1): void;
917
+ /** Opens a node: through the drive app's `open` when it has one, else the
918
+ * app's navigation in the drive app's drive. */
919
+ export declare function useSetSelectedNode(): (node: NodeRef, options?: PHNavigateOptions$1) => void;
920
+ /** Opens a node, or with `undefined` its drive. */
921
+ export declare const useOpenNode: () => (node: Node | undefined, options?: PHNavigateOptions$1) => void;
922
+ /** Where a node of `drive`, else of the open drive, navigates to. */
923
+ export declare function getNodeTarget(node: Node | undefined, drive?: DocumentDriveDocument): PHNavigationTarget$1 | undefined;
924
+ /** Where a node navigates to: in the drive app's drive, else the open drive. */
925
+ export declare function useNodeTarget(node: Node | undefined): PHNavigationTarget$1 | undefined;
926
+ /** Warms a node's view before it is opened, e.g. on hover. */
927
+ export declare function preloadNode(node: Node | undefined, drive?: DocumentDriveDocument): void;
928
+ /** `preloadNode` through the drive app's `preload`, if it has one. */
929
+ export declare function usePreloadNode(): (node: Node | undefined) => void;
930
+ export declare function addResetSelectedNodeEventHandler(): void;
931
+ //#endregion
932
+ //#region src/hooks/sync-selection.d.ts
933
+ /** Applies a path's selection without writing the URL; idempotent.
934
+ * @deprecated Set the store's `navigation`; its route loaders write the selection. */
935
+ export declare function syncSelectionFromPath(pathname?: string): void;
936
+ /** Syncs the selection on back/forward when no host navigation is set.
937
+ * @deprecated Set the store's `navigation`; its router handles back/forward. */
938
+ export declare function addSyncSelectionOnPopStateEventHandler(): void;
939
+ /** @deprecated Set the store's `navigation`; its router handles back/forward. */
940
+ export declare const addSetSelectedDriveOnPopStateEventHandler: typeof addSyncSelectionOnPopStateEventHandler;
941
+ /** @deprecated Set the store's `navigation`; its router handles back/forward. */
942
+ export declare const addSetSelectedNodeOnPopStateEventHandler: typeof addSyncSelectionOnPopStateEventHandler;
710
943
  //#endregion
711
944
  //#region src/hooks/selected-node.d.ts
712
945
  /** Returns the selected node. */
713
- declare function useSelectedNode(): Node | undefined;
946
+ export declare function useSelectedNode(): Node | undefined;
714
947
  //#endregion
715
948
  //#region src/hooks/selected-timeline-item.d.ts
716
949
  /** Returns the selected timeline item */
717
- declare const useSelectedTimelineItem: () => TimelineItem | null | undefined;
950
+ export declare const useSelectedTimelineItem: () => TimelineItem | null | undefined;
718
951
  /** Sets the selected timeline item */
719
- declare const setSelectedTimelineItem: (value: TimelineItem | null | undefined) => void;
952
+ export declare const setSelectedTimelineItem: (value: TimelineItem | null | undefined) => void;
720
953
  /** Adds event handler for selected timeline item */
721
- declare const addSelectedTimelineItemEventHandler: () => void;
954
+ export declare const addSelectedTimelineItemEventHandler: () => void;
722
955
  //#endregion
723
956
  //#region src/hooks/subgraph-modules.d.ts
724
- declare function useSubgraphModules(): SubgraphModule[] | undefined;
957
+ export declare function useSubgraphModules(): SubgraphModule[] | undefined;
725
958
  //#endregion
726
959
  //#region src/hooks/supported-document-types.d.ts
727
960
  /** Returns the supported document types for the reactor (derived from the document model modules) */
728
- declare function useSupportedDocumentTypesInReactor(): string[] | undefined;
961
+ export declare function useSupportedDocumentTypesInReactor(): string[] | undefined;
729
962
  //#endregion
730
963
  //#region src/hooks/theme.d.ts
731
964
  type Theme = "light" | "dark";
@@ -752,8 +985,8 @@ declare global {
752
985
  interface WindowEventMap extends ThemeWindowEvents {}
753
986
  }
754
987
  declare function setTheme(storedTheme: StoredTheme): void;
755
- declare function initTheme(): void;
756
- declare function useTheme(): {
988
+ export declare function initTheme(): void;
989
+ export declare function useTheme(): {
757
990
  readonly theme: Theme;
758
991
  readonly isSystem: boolean;
759
992
  readonly setTheme: typeof setTheme;
@@ -761,19 +994,19 @@ declare function useTheme(): {
761
994
  //#endregion
762
995
  //#region src/hooks/timeline-revision.d.ts
763
996
  /** Returns the selected timeline revision. */
764
- declare const useSelectedTimelineRevision: () => string | number | null | undefined;
997
+ export declare const useSelectedTimelineRevision: () => string | number | null | undefined;
765
998
  /** Sets the selected timeline revision. */
766
- declare const setSelectedTimelineRevision: (value: string | number | null | undefined) => void;
999
+ export declare const setSelectedTimelineRevision: (value: string | number | null | undefined) => void;
767
1000
  /** Adds an event handler for the selected timeline revision. */
768
- declare const addSelectedTimelineRevisionEventHandler: () => void;
1001
+ export declare const addSelectedTimelineRevisionEventHandler: () => void;
769
1002
  //#endregion
770
1003
  //#region src/hooks/toast.d.ts
771
1004
  /** Returns the toast function */
772
- declare const usePHToast: () => PHToastFn | undefined;
1005
+ export declare const usePHToast: () => PHToastFn | undefined;
773
1006
  /** Sets the toast function */
774
- declare const setPHToast: (value: PHToastFn | undefined) => void;
1007
+ export declare const setPHToast: (value: PHToastFn | undefined) => void;
775
1008
  /** Adds an event handler for the toast */
776
- declare const addToastEventHandler: () => void;
1009
+ export declare const addToastEventHandler: () => void;
777
1010
  //#endregion
778
1011
  //#region src/hooks/use-can-execute.d.ts
779
1012
  /**
@@ -785,7 +1018,7 @@ declare const addToastEventHandler: () => void;
785
1018
  * controls as it did before it asked, and let the submit path refuse. Reading it
786
1019
  * as a denial would disable every control wherever enforcement is off.
787
1020
  */
788
- type CanExecuteStatus = "idle" | "loading" | "ready" | "unsupported" | "error";
1021
+ export type CanExecuteStatus = "idle" | "loading" | "ready" | "unsupported" | "error";
789
1022
  type InternalState = {
790
1023
  status: CanExecuteStatus;
791
1024
  evaluations?: Evaluation[];
@@ -796,7 +1029,7 @@ type InternalState = {
796
1029
  error?: Error;
797
1030
  };
798
1031
  /** What `useCanExecute` returns; exported so consumers can name it. */
799
- type CanExecuteState = InternalState & {
1032
+ export type CanExecuteState = InternalState & {
800
1033
  refetch: () => void;
801
1034
  };
802
1035
  /**
@@ -833,10 +1066,10 @@ type CanExecuteState = InternalState & {
833
1066
  * @param branch - Branch to evaluate against, defaulting to main
834
1067
  * @param subject - Optional subject to decide for instead of the client's signer
835
1068
  */
836
- declare function useCanExecute(documentId: string | null | undefined, candidates: ActionCandidate[], branch?: string, subject?: AuthSubject): CanExecuteState;
1069
+ export declare function useCanExecute(documentId: string | null | undefined, candidates: ActionCandidate[], branch?: string, subject?: AuthSubject): CanExecuteState;
837
1070
  //#endregion
838
1071
  //#region src/hooks/use-drive-system-info.d.ts
839
- type DriveSystemInfoState = {
1072
+ export type DriveSystemInfoState = {
840
1073
  status: "local";
841
1074
  } | {
842
1075
  status: "loading";
@@ -850,17 +1083,18 @@ type DriveSystemInfoState = {
850
1083
  gitUrl: string | null;
851
1084
  host: string;
852
1085
  };
853
- declare function deriveSystemUrl(channelUrl: string): string | null;
854
- declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): DriveSystemInfoState;
1086
+ export declare function deriveSystemUrl(channelUrl: string): string | null;
1087
+ export declare function useDriveSystemInfo(drive: DocumentDriveDocument | undefined): DriveSystemInfoState;
855
1088
  //#endregion
856
1089
  //#region src/hooks/use-editor-file-drop.d.ts
857
- type UseEditorFileDropOptions = {
1090
+ export type UseEditorFileDropOptions = {
858
1091
  /** Lowercase file extensions including the dot (e.g. [".png", ".pdf"]).
859
1092
  * When omitted, all files are accepted. */
860
- accept?: readonly string[]; /** Called with the files that passed the extension filter. */
1093
+ accept?: readonly string[];
1094
+ /** Called with the files that passed the extension filter. */
861
1095
  onFiles: (files: File[]) => void;
862
1096
  };
863
- type UseEditorFileDropResult = {
1097
+ export type UseEditorFileDropResult = {
864
1098
  /** Spread onto the editor's root element. Includes the opt-out attribute
865
1099
  * so the outer DropZone leaves file drops alone within this subtree. */
866
1100
  dragProps: {
@@ -868,10 +1102,11 @@ type UseEditorFileDropResult = {
868
1102
  onDragOver: DragEventHandler<Element>;
869
1103
  onDragLeave: DragEventHandler<Element>;
870
1104
  onDrop: DragEventHandler<Element>;
871
- } & Record<typeof EDITOR_FILE_DROP_OPT_OUT_ATTR, "">; /** True while a file drag is hovering anywhere inside the editor root. */
1105
+ } & Record<typeof EDITOR_FILE_DROP_OPT_OUT_ATTR, "">;
1106
+ /** True while a file drag is hovering anywhere inside the editor root. */
872
1107
  isDragOver: boolean;
873
1108
  };
874
- declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditorFileDropResult;
1109
+ export declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditorFileDropResult;
875
1110
  //#endregion
876
1111
  //#region src/hooks/use-get-switchboard-link.d.ts
877
1112
  /**
@@ -885,7 +1120,7 @@ declare function useEditorFileDrop(options: UseEditorFileDropOptions): UseEditor
885
1120
  * @param document - The document to create a switchboard URL generator for
886
1121
  * @returns An async function that returns the switchboard URL, or null if not applicable
887
1122
  */
888
- declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
1123
+ export declare function useGetSwitchboardLink(document: PHDocument$1 | undefined): (() => Promise<string>) | null;
889
1124
  //#endregion
890
1125
  //#region src/types/upload.d.ts
891
1126
  type DocumentTypeIcon = "analytics-processor" | "relational-processor" | "codegen-processor" | "app" | "document-model" | "editor" | "package" | "subgraph";
@@ -905,16 +1140,16 @@ type FileUploadProgressCallback = (progress: FileUploadProgress) => void;
905
1140
  type UseOnDropFile = (documentTypesOverride?: string[]) => (file: File, targetFolder?: Node, onProgress?: FileUploadProgressCallback, resolveConflict?: ConflictResolution) => Promise<FileNode | undefined>;
906
1141
  //#endregion
907
1142
  //#region src/hooks/use-on-drop-file.d.ts
908
- declare const useOnDropFile: UseOnDropFile;
1143
+ export declare const useOnDropFile: UseOnDropFile;
909
1144
  //#endregion
910
1145
  //#region src/hooks/user-permissions.d.ts
911
- declare function useUserPermissions(): {
1146
+ export declare function useUserPermissions(): {
912
1147
  isAllowedToCreateDocuments: boolean;
913
1148
  isAllowedToEditDocuments: boolean;
914
1149
  };
915
1150
  //#endregion
916
1151
  //#region src/hooks/vetra-packages.d.ts
917
- declare const useVetraPackageManager: () => IPackageManager | undefined;
1152
+ export declare const useVetraPackageManager: () => IPackageManager | undefined;
918
1153
  /**
919
1154
  * Returns all of the Vetra packages loaded by the Connect instance.
920
1155
  *
@@ -922,11 +1157,23 @@ declare const useVetraPackageManager: () => IPackageManager | undefined;
922
1157
  * manager is registered: `useSyncExternalStore` loops when the snapshot
923
1158
  * changes on every read, which a fresh `[]` does.
924
1159
  */
925
- declare const useVetraPackages: () => DocumentModelLib[];
1160
+ export declare const useVetraPackages: () => DocumentModelLib[];
926
1161
  /** Adds the Vetra package manager event handler */
927
- declare const addVetraPackageManagerEventHandler: () => void;
1162
+ export declare const addVetraPackageManagerEventHandler: () => void;
1163
+ /**
1164
+ * Non-react access to the Vetra package manager: calls `callback` once a
1165
+ * manager is available - immediately when already set, otherwise when
1166
+ * `setVetraPackageManager` publishes one. Returns an unsubscribe. The worker
1167
+ * wiring uses this to forward package updates from plain boot code.
1168
+ */
1169
+ export declare function onVetraPackageManager(callback: (packageManager: IPackageManager) => void): () => void;
928
1170
  /** Sets the Vetra package manager and registers its packages */
929
- declare function setVetraPackageManager(packageManager: IPackageManager): void;
1171
+ export declare function setVetraPackageManager(packageManager: IPackageManager): void;
1172
+ //#endregion
1173
+ //#region src/hooks/close-node.d.ts
1174
+ /** Leaves a node's view: back to the entry it was opened from, past entries
1175
+ * pushed inside it; else, e.g. after a deep link, to its parent in place. */
1176
+ export declare function useCloseNode(nodeId: string | null | undefined): () => void;
930
1177
  //#endregion
931
1178
  //#region src/hooks/attachment-progress.d.ts
932
1179
  /**
@@ -941,7 +1188,8 @@ declare function setVetraPackageManager(packageManager: IPackageManager): void;
941
1188
  * silently scaling by 100.
942
1189
  */
943
1190
  type AttachmentProgressState = {
944
- /** 0-100. Always 0 while `indeterminate`, since no position is known. */percent: number;
1191
+ /** 0-100. Always 0 while `indeterminate`, since no position is known. */
1192
+ percent: number;
945
1193
  loaded: number;
946
1194
  total: number | undefined;
947
1195
  indeterminate: boolean;
@@ -949,7 +1197,7 @@ type AttachmentProgressState = {
949
1197
  //#endregion
950
1198
  //#region src/hooks/use-attachments.d.ts
951
1199
  /** Returns an IAttachmentClient wrapping the current IAttachmentService, or undefined if none is set. */
952
- declare function useAttachments(): IAttachmentClient | undefined;
1200
+ export declare function useAttachments(): IAttachmentClient | undefined;
953
1201
  /**
954
1202
  * Upload lifecycle stage, derived from the client's own `AttachmentStage` plus
955
1203
  * an `idle` state the client has no reason to model.
@@ -959,10 +1207,11 @@ declare function useAttachments(): IAttachmentClient | undefined;
959
1207
  * `UploadStatus` enum was a parallel vocabulary that had already drifted (it
960
1208
  * never gained `Reserving`).
961
1209
  */
962
- type AttachmentUploadStage = "idle" | "hashing" | "reserving" | "uploading" | "done" | "error";
963
- type AttachmentDownloadStage = "idle" | "requesting-download-target" | "downloading" | "done" | "error";
964
- type UseAttachmentPreviewInput = {
965
- documentId: string; /** Pass null/undefined to render nothing (the hook stays idle). */
1210
+ export type AttachmentUploadStage = "idle" | "hashing" | "reserving" | "uploading" | "done" | "error";
1211
+ export type AttachmentDownloadStage = "idle" | "requesting-download-target" | "downloading" | "done" | "error";
1212
+ export type UseAttachmentPreviewInput = {
1213
+ documentId: string;
1214
+ /** Pass null/undefined to render nothing (the hook stays idle). */
966
1215
  ref: AttachmentDownloadInput["ref"] | null | undefined;
967
1216
  /**
968
1217
  * How many times a failed attempt is retried before the hook settles on
@@ -971,16 +1220,19 @@ type UseAttachmentPreviewInput = {
971
1220
  * downloads and only learns the (document, ref) pair once the operation
972
1221
  * has synced and been projected. Defaults to 3.
973
1222
  */
974
- retries?: number; /** Fixed delay between attempts, in milliseconds. Defaults to 3000. */
1223
+ retries?: number;
1224
+ /** Fixed delay between attempts, in milliseconds. Defaults to 3000. */
975
1225
  retryDelayMs?: number;
976
1226
  };
977
- type UseAttachmentPreviewReturn = {
978
- /** Object URL ready for img/iframe/video src; undefined while loading or on error. */url: string | undefined;
1227
+ export type UseAttachmentPreviewReturn = {
1228
+ /** Object URL ready for img/iframe/video src; undefined while loading or on error. */
1229
+ url: string | undefined;
979
1230
  header: AttachmentHeader | undefined;
980
1231
  loading: boolean;
981
1232
  error: Error | undefined;
982
1233
  stage: AttachmentDownloadStage;
983
- progress: AttachmentProgressState; /** 1-based attempt currently in flight; 0 while idle. */
1234
+ progress: AttachmentProgressState;
1235
+ /** 1-based attempt currently in flight; 0 while idle. */
984
1236
  attempt: number;
985
1237
  maxAttempts: number;
986
1238
  /**
@@ -999,15 +1251,11 @@ type UseAttachmentPreviewReturn = {
999
1251
  * appears as soon as the server's reference index catches up. Progress resets
1000
1252
  * per attempt; nothing resumes.
1001
1253
  */
1002
- declare function useAttachmentPreview({
1003
- documentId,
1004
- ref,
1005
- retries,
1006
- retryDelayMs
1007
- }: UseAttachmentPreviewInput): UseAttachmentPreviewReturn;
1008
- type UseAttachmentUploadReturn = {
1254
+ export declare function useAttachmentPreview({ documentId, ref, retries, retryDelayMs }: UseAttachmentPreviewInput): UseAttachmentPreviewReturn;
1255
+ export type UseAttachmentUploadReturn = {
1009
1256
  preprocess: (file: Blob) => Promise<PreprocessResult>;
1010
- upload: (results: PreprocessResult) => Promise<void>; /** Aborts the transfer in flight; the upload promise rejects. */
1257
+ upload: (results: PreprocessResult) => Promise<void>;
1258
+ /** Aborts the transfer in flight; the upload promise rejects. */
1011
1259
  cancel: () => void;
1012
1260
  /**
1013
1261
  * Returns to idle, discarding the previous result and error. Aborts a
@@ -1028,11 +1276,33 @@ type UseAttachmentUploadReturn = {
1028
1276
  * rather than reimplementing the flow, which is what makes progress, dedup
1029
1277
  * reporting and cancellation identical to the non-React path.
1030
1278
  */
1031
- declare function useAttachmentUpload(): UseAttachmentUploadReturn;
1279
+ export declare function useAttachmentUpload(): UseAttachmentUploadReturn;
1280
+ //#endregion
1281
+ //#region src/hooks/backend-auth.d.ts
1282
+ /** Whether the app's backend refused this tab's caller, and how. */
1283
+ export declare const useBackendAuth: UsePHGlobalValue<BackendAuthState>;
1284
+ /** Records (or clears, with `undefined`) a backend's refusal of the caller. */
1285
+ export declare const setBackendAuth: SetPHGlobalValue<BackendAuthState>;
1286
+ export declare const addBackendAuthEventHandler: () => void;
1287
+ /**
1288
+ * The HTTP status with which a backend refused the caller, or null when the
1289
+ * error is something else.
1290
+ *
1291
+ * Covers every shape a refusal reaches the browser in: the sync layer's
1292
+ * errors (`isDriveAuthError`), graphql-request's `ClientError` from the
1293
+ * remote GraphQL client (`response.status`, and "(Code: 401)" in its
1294
+ * message), and the router's partial-failure error that wraps one such
1295
+ * failure per backend.
1296
+ */
1297
+ export declare function backendAuthStatusOf(error: unknown): 401 | 403 | null;
1298
+ /** True when a backend refused the caller as unauthenticated or unauthorized. */
1299
+ export declare function isBackendAuthError(error: unknown): boolean;
1300
+ /** Records the refusal `error` carries, if it is one; returns whether it was. */
1301
+ export declare function recordBackendAuthError(error: unknown, backend?: string): boolean;
1032
1302
  //#endregion
1033
1303
  //#region src/pglite/drop.d.ts
1034
- declare function truncateAllTables(pg: PGlite, schema?: string): Promise<void>;
1035
- declare function dropAllReactorStorage(pg: PGlite): Promise<void>;
1304
+ export declare function truncateAllTables(pg: PGlite, schema?: string): Promise<void>;
1305
+ export declare function dropAllReactorStorage(pg: PGlite): Promise<void>;
1036
1306
  //#endregion
1037
1307
  //#region src/pglite/usePGlite.d.ts
1038
1308
  interface PGliteState {
@@ -1040,18 +1310,102 @@ interface PGliteState {
1040
1310
  isLoading: boolean;
1041
1311
  error: Error | null;
1042
1312
  }
1043
- declare function setPGliteDB(pglite: Partial<PGliteState>): void;
1313
+ export declare function setPGliteDB(pglite: Partial<PGliteState>): void;
1044
1314
  //#endregion
1045
1315
  //#region src/reactor.d.ts
1046
- type ReactorDefaultDrivesConfig = {
1316
+ export type ReactorDefaultDrivesConfig = {
1047
1317
  defaultDrivesUrl?: string[];
1048
1318
  };
1049
- type RefreshReactorDataConfig = {
1319
+ export type RefreshReactorDataConfig = {
1050
1320
  debounceDelayMs?: number;
1051
1321
  immediateThresholdMs?: number;
1052
1322
  };
1053
- declare const refreshReactorData: (reactor: IReactorClient$1, immediate?: boolean) => Promise<void>;
1054
- declare const refreshReactorDataClient: (reactor: IReactorClient$1 | undefined, immediate?: boolean) => Promise<void>;
1323
+ export declare const refreshReactorData: (reactor: IReactorReadClient$1, immediate?: boolean) => Promise<void>;
1324
+ export declare const refreshReactorDataClient: (reactor: IReactorReadClient$1 | undefined, immediate?: boolean) => Promise<void>;
1325
+ /**
1326
+ * Re-reads one drive and replaces it in the drives store. Only that drive
1327
+ * crosses the wire: the list used to be re-fetched whole on any drive change,
1328
+ * every drive's node tree included, which on a large mail drive was ten
1329
+ * megabytes per change. Without a store (before init) the whole list loads.
1330
+ */
1331
+ export declare function refreshDrive(reactor: IReactorReadClient$1, driveId: string): Promise<void>;
1332
+ /**
1333
+ * Brings the drives store in line with which drives exist: ids come from a
1334
+ * headers-only listing, a drive not held yet is loaded on its own, and a drive
1335
+ * no longer listed is dropped. Drives already held are kept as they are.
1336
+ */
1337
+ export declare function refreshDriveMembership(reactor: IReactorReadClient$1): Promise<void>;
1338
+ export type DriveChangeHandlerOptions = {
1339
+ /** The least time between two re-reads of the same drive; default 10 s. */
1340
+ minIntervalMs?: number;
1341
+ onError?: (error: unknown) => void;
1342
+ };
1343
+ /**
1344
+ * Routes a drive-type document change to the smallest refresh: an update
1345
+ * re-reads that one drive and invalidates its node cache, at most once per
1346
+ * `minIntervalMs` while it keeps changing (at once after a write from this
1347
+ * tab, see `markLocalDriveWrite`); a creation or deletion refreshes the
1348
+ * membership and loads only what is new.
1349
+ */
1350
+ export declare function createDriveChangeHandler(reactor: IReactorReadClient$1, options?: DriveChangeHandlerOptions): (event: DocumentChangeEvent) => void;
1351
+ //#endregion
1352
+ //#region src/routing/drive-arrivals.d.ts
1353
+ /** Drives that may still arrive, e.g. while the first sync runs. */
1354
+ export type DriveArrivals = {
1355
+ isPending(): boolean;
1356
+ /** Whether more of `driveId`'s content may arrive: its remote's first sync. */
1357
+ isDrivePending(driveId: string): boolean;
1358
+ /** Calls `listener` whenever the drives or `isPending()` may have changed. */
1359
+ subscribe(listener: () => void): () => void;
1360
+ };
1361
+ /** Counts a background drive addition as pending until it settles. */
1362
+ export declare function trackDriveArrival<T>(promise: Promise<T>): Promise<T>;
1363
+ /** Resolves once `store.drives` lists `driveId`, or after `maxWaitMs`: a
1364
+ * finished first pull does not mean the drive is listed yet. */
1365
+ export declare function untilDriveListed(store: PHStore, driveId: string, maxWaitMs?: number): Promise<void>;
1366
+ /** Drives still on their way into `store`: being added or first syncing. */
1367
+ export declare function createDriveArrivals(store: PHStore): DriveArrivals;
1368
+ //#endregion
1369
+ //#region src/routing/resolve-drive-route.d.ts
1370
+ export type DriveRouteResult = {
1371
+ kind: "drive";
1372
+ driveId: string;
1373
+ nodeId?: string;
1374
+ } | {
1375
+ kind: "drive-not-found";
1376
+ } | {
1377
+ kind: "node-not-found";
1378
+ driveId: string;
1379
+ };
1380
+ export type ResolveDriveRouteOptions = {
1381
+ store: PHStore;
1382
+ /** Without it, a missing drive is never waited for. */
1383
+ arrivals?: DriveArrivals;
1384
+ driveSlug: string;
1385
+ nodeSlug?: string;
1386
+ signal: AbortSignal;
1387
+ /** A preload only uses what is already here. */
1388
+ preload?: boolean;
1389
+ };
1390
+ /** How long a navigation waits for its document and editor before it shows;
1391
+ * past it the view commits and renders them as they load. */
1392
+ export declare const PREFETCH_WAIT_MS = 3000;
1393
+ export declare const DRIVE_ARRIVAL_MAX_WAIT_MS = 15000;
1394
+ /** A listed drive by slug, id, or a `<name>-<id>` slug's trailing id. */
1395
+ export declare function findDriveBySlugOrId(store: PHStore, ref: string): DocumentDriveDocument | undefined;
1396
+ /** Resolves with `read()` once it is defined, nothing is still arriving, the
1397
+ * signal aborts or the cap passes. */
1398
+ export declare function waitForArrival<T>(read: () => T | undefined, arrivals: DriveArrivals | undefined, signal: AbortSignal, maxWaitMs?: number): Promise<T | undefined>;
1399
+ /** Asks the reactor directly: a just-created drive may not be listed yet. */
1400
+ export declare function fetchDrive(store: PHStore, ref: string, signal?: AbortSignal): Promise<DocumentDriveDocument | undefined>;
1401
+ /** Loads a drive's app module so its view renders without suspending;
1402
+ * undefined when it is already loaded, so a warm open waits on nothing. */
1403
+ export declare function preloadDriveApp(store: PHStore, drive: DocumentDriveDocument): Promise<undefined> | undefined;
1404
+ /** Warms a file node's document and its editor module. */
1405
+ export declare function prefetchDocument(store: PHStore, node: Node): Promise<void>;
1406
+ /** Resolves a drive route's slugs, waiting for drives that are still syncing,
1407
+ * and warms what the resolved view needs. */
1408
+ export declare function resolveDriveRoute(options: ResolveDriveRouteOptions): Promise<DriveRouteResult>;
1055
1409
  //#endregion
1056
1410
  //#region src/registry/types.d.ts
1057
1411
  interface PublishEvent {
@@ -1060,7 +1414,7 @@ interface PublishEvent {
1060
1414
  }
1061
1415
  //#endregion
1062
1416
  //#region src/registry/client.d.ts
1063
- declare class RegistryClient {
1417
+ export declare class RegistryClient {
1064
1418
  readonly apiUrl: string;
1065
1419
  constructor(cdnUrl: string);
1066
1420
  getPackages(): Promise<PackageInfo[]>;
@@ -1070,39 +1424,37 @@ declare class RegistryClient {
1070
1424
  }
1071
1425
  //#endregion
1072
1426
  //#region src/registry/fetchers.d.ts
1073
- declare function trimTrailingSlash(url: string): string;
1074
- declare function getPackages(registryUrl: string): Promise<PackageInfo[]>;
1427
+ export declare function trimTrailingSlash(url: string): string;
1428
+ export declare function getPackages(registryUrl: string): Promise<PackageInfo[]>;
1429
+ export declare function searchPackages(registryUrl: string, search: string): Promise<PackageInfo[]>;
1075
1430
  /**
1076
- * Fetch one page of the registry listing (trimmed items). Backed by the
1077
- * paginated `GET /packages?limit=&offset=&search=` mode. Used by the Package
1431
+ * One page of the registry listing (trimmed items). Used by the Package
1078
1432
  * Manager's Available tab for infinite scroll + server-side search.
1079
1433
  */
1080
- declare function getPackagePage(registryUrl: string, params: {
1434
+ export declare function getPackagePage(registryUrl: string, params: {
1081
1435
  limit: number;
1082
1436
  offset: number;
1083
1437
  search?: string;
1084
1438
  }): Promise<PackagePage>;
1085
1439
  /**
1086
- * Fetch full package info for every package exposing a given document type,
1087
- * via the legacy `?documentType=` filter (returns full PackageInfo objects,
1088
- * not just names). Used by the MissingPackageModal to offer installs without
1089
- * loading the entire paginated listing.
1440
+ * Full package info for every package exposing a given document type, to offer
1441
+ * installs without loading the whole listing.
1090
1442
  */
1091
- declare function getPackagesForDocumentType(registryUrl: string, documentType: string): Promise<PackageInfo[]>;
1092
- declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
1443
+ export declare function getPackagesForDocumentType(registryUrl: string, documentType: string): Promise<PackageInfo[]>;
1444
+ export declare function getPackagesByDocumentType(registryUrl: string, documentType: string): Promise<string[]>;
1093
1445
  /**
1094
1446
  * Fetch full metadata (versions + dist-tags) for one package from the
1095
1447
  * single-package endpoint. Returns null when the package no longer exists
1096
1448
  * upstream.
1097
1449
  */
1098
- declare function getPackageInfo(registryUrl: string, name: string): Promise<PackageInfo | null>;
1450
+ export declare function getPackageInfo(registryUrl: string, name: string): Promise<PackageInfo | null>;
1099
1451
  //#endregion
1100
1452
  //#region src/remote-controller/action-tracker.d.ts
1101
1453
  /**
1102
1454
  * Tracks pending actions with their operation context (prevOpHash, prevOpIndex).
1103
1455
  * Actions are accumulated until flushed (on push).
1104
1456
  */
1105
- declare class ActionTracker {
1457
+ export declare class ActionTracker {
1106
1458
  private pending;
1107
1459
  /** Track a new action with its operation context. */
1108
1460
  track(action: Action$1, prevOpHash: string, prevOpIndex: number): void;
@@ -1117,7 +1469,7 @@ declare class ActionTracker {
1117
1469
  }
1118
1470
  //#endregion
1119
1471
  //#region src/remote-controller/remote-client.d.ts
1120
- declare class RemoteClient implements IRemoteClient {
1472
+ export declare class RemoteClient implements IRemoteClient {
1121
1473
  private readonly client;
1122
1474
  private readonly pageSize;
1123
1475
  constructor(client: RemoteControllerGraphQLClient, pageSize?: number);
@@ -1174,20 +1526,26 @@ type InferState<C> = C extends PHDocumentController<infer S> ? S : never;
1174
1526
  * Extract action methods from a controller type.
1175
1527
  * These are the dynamically-added methods (not on the base PHDocumentController prototype).
1176
1528
  */
1177
- type ActionMethodsOf<C, TRemote> = { [K in Exclude<keyof C, keyof PHDocumentController<any>>]: C[K] extends ((input: infer I) => unknown) ? (input: I) => TRemote & ActionMethodsOf<C, TRemote> : C[K] };
1529
+ type ActionMethodsOf<C, TRemote> = { [K in Exclude<keyof C, keyof PHDocumentController<any>>]: C[K] extends ((input: infer I) => unknown) ? (input: I) => TRemote & ActionMethodsOf<C, TRemote> : C[K]; };
1178
1530
  /** The full return type: RemoteDocumentController + action methods. */
1179
1531
  type RemoteDocumentControllerWith<C extends PHDocumentController<any>> = RemoteDocumentController<C> & ActionMethodsOf<C, RemoteDocumentController<C>>;
1180
1532
  /**
1181
1533
  * A controller that wraps a PHDocumentController with remote push/pull capabilities.
1182
1534
  * Composes a local controller and adds GraphQL-based sync with a reactor server.
1183
1535
  */
1184
- declare class RemoteDocumentController<TController extends PHDocumentController<any>> implements IRemoteController<InferState<TController>> {
1536
+ export declare class RemoteDocumentController<TController extends PHDocumentController<any>> implements IRemoteController<InferState<TController>> {
1185
1537
  private inner;
1186
1538
  private readonly remoteClient;
1187
1539
  private readonly tracker;
1188
1540
  private readonly options;
1189
1541
  private documentId;
1542
+ /** The remote's id for the document; `documentId` may be a slug. */
1543
+ private canonicalDocumentId?;
1190
1544
  private remoteRevision;
1545
+ /** What the first push creates the remote from, until it has. */
1546
+ private uncreated?;
1547
+ /** A wrapped new document takes the host's signature policy at its first push. */
1548
+ private takesHostPolicy;
1191
1549
  private hasPulled;
1192
1550
  private pushScheduled;
1193
1551
  private pushQueue;
@@ -1215,12 +1573,22 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1215
1573
  * Wrap an existing controller instance with remote capabilities.
1216
1574
  * Pending local actions on the inner controller are NOT tracked
1217
1575
  * (only new actions through the remote controller are tracked).
1576
+ * Without a `documentId`, the first push creates the remote from the
1577
+ * wrapped document's header, under the host's create signature policy.
1218
1578
  */
1219
1579
  static from<C extends PHDocumentController<any>>(controller: C, options: RemoteControllerOptions): RemoteDocumentControllerWith<C>;
1220
- /** Create the document on the remote if it doesn't exist yet. */
1580
+ /** Heads the new document with the host's versions for its type, as `newDocument` does; a host without `createDefaults` creates it with `createEmptyDocument`. */
1581
+ private headNewDocument;
1582
+ /** Creates the remote from the local header, so both run the versions its creator chose. */
1221
1583
  private ensureRemoteDocument;
1584
+ /** Puts the uncreated document under the host's policy; a host without `createDefaults` creates it with `createEmptyDocument`. */
1585
+ private takeHostSignaturePolicy;
1222
1586
  /** Set up interceptors for all action methods on the inner controller. */
1223
1587
  private setupActionInterceptors;
1588
+ /** Runs `apply`, then tracks the operation it added for push. */
1589
+ private applyAndTrack;
1590
+ /** Recreates the inner controller over `document` and re-intercepts it. */
1591
+ private replaceInner;
1224
1592
  /**
1225
1593
  * Find the new operation added after applying an action,
1226
1594
  * by comparing current operation counts against a previous snapshot.
@@ -1243,6 +1611,11 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1243
1611
  private pullAndReplay;
1244
1612
  /** Prepare actions for push, optionally signing them. */
1245
1613
  private prepareActionsForPush;
1614
+ /**
1615
+ * The remote's id for `documentId`, which may be a slug. A signature binds
1616
+ * the id the remote verifies against, so a slug is never signed.
1617
+ */
1618
+ private resolveCanonicalDocumentId;
1246
1619
  /** Sign an action using the configured signer, preserving existing signatures. */
1247
1620
  private signAction;
1248
1621
  /**
@@ -1281,15 +1654,15 @@ declare class RemoteDocumentController<TController extends PHDocumentController<
1281
1654
  //#endregion
1282
1655
  //#region src/remote-controller/utils.d.ts
1283
1656
  /** Error thrown when a push conflict is detected with the "reject" strategy. */
1284
- declare class ConflictError extends Error {
1657
+ export declare class ConflictError extends Error {
1285
1658
  readonly conflict: ConflictInfo;
1286
1659
  constructor(conflict: ConflictInfo);
1287
1660
  }
1288
1661
  /** Convert remote operations to local DocumentOperations format. */
1289
- declare function convertRemoteOperations(operationsByScope: Record<string, RemoteOperation[]>): DocumentOperations;
1662
+ export declare function convertRemoteOperations(operationsByScope: Record<string, RemoteOperation[]>): DocumentOperations;
1290
1663
  //#endregion
1291
1664
  //#region src/storage/base-storage.d.ts
1292
- declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
1665
+ export declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
1293
1666
  abstract get(key: string): V | undefined;
1294
1667
  abstract set(key: string, value: V): void;
1295
1668
  abstract delete(key: string): boolean;
@@ -1303,7 +1676,7 @@ declare abstract class BaseStorage<V> implements Iterable<[string, V]> {
1303
1676
  }
1304
1677
  //#endregion
1305
1678
  //#region src/storage/local-storage.d.ts
1306
- declare class BrowserLocalStorage<V> extends BaseStorage<V> {
1679
+ export declare class BrowserLocalStorage<V> extends BaseStorage<V> {
1307
1680
  #private;
1308
1681
  constructor(namespace: string);
1309
1682
  get(key: string): V | undefined;
@@ -1318,7 +1691,7 @@ declare class BrowserLocalStorage<V> extends BaseStorage<V> {
1318
1691
  }
1319
1692
  //#endregion
1320
1693
  //#region src/storage/types.d.ts
1321
- interface IStorage<TValue> {
1694
+ export interface IStorage<TValue> {
1322
1695
  get(key: string): TValue | undefined;
1323
1696
  set(key: string, value: TValue): void;
1324
1697
  delete(key: string): void;
@@ -1341,38 +1714,55 @@ type IReactorProcessorHostModule = IProcessorHostModule;
1341
1714
  type ProcessorFactoryBuilder = ProcessorFactoryBuilder$1<IProcessorHostModule>;
1342
1715
  //#endregion
1343
1716
  //#region src/utils/documents.d.ts
1344
- declare function isDocumentTypeSupported(documentType: string, supportedDocuments: string[] | null | undefined): boolean;
1717
+ export declare function isDocumentTypeSupported(documentType: string, supportedDocuments: string[] | null | undefined): boolean;
1345
1718
  //#endregion
1346
1719
  //#region src/utils/drives.d.ts
1347
- type UISyncStatus = "INITIAL_SYNC" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR" | "SYNCING";
1348
- declare function getDrives(reactor: IReactorClient$1): Promise<DocumentDriveDocument[]>;
1349
- declare function getSyncStatus(documentId: string, sharingType: SharingType): Promise<UISyncStatus | undefined>;
1350
- declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
1720
+ export type UISyncStatus = "INITIAL_SYNC" | "SUCCESS" | "CONFLICT" | "MISSING" | "ERROR" | "SYNCING";
1721
+ export declare function getDrives(reactor: IReactorReadClient$1): Promise<DocumentDriveDocument[]>;
1722
+ /**
1723
+ * The id of every drive, from a listing that carries headers only: a drive's
1724
+ * node tree can be megabytes (a mail drive with tens of thousands of files),
1725
+ * so membership is learned without it and a new drive is then loaded on its
1726
+ * own.
1727
+ */
1728
+ export declare function listDriveIds(reactor: IReactorReadClient$1): Promise<string[]>;
1729
+ /** One drive in full, or undefined once it is gone. */
1730
+ export declare function getDrive(reactor: IReactorReadClient$1, driveId: string): Promise<DocumentDriveDocument | undefined>;
1731
+ export declare function getSyncStatus(documentId: string, sharingType: SharingType): Promise<UISyncStatus | undefined>;
1732
+ export declare function getSyncStatusSync(documentId: string, sharingType: SharingType): UISyncStatus | undefined;
1733
+ /** A drive's display name: the header's (renames set it), else its creation name. */
1734
+ export declare function getDriveName(drive: DocumentDriveDocument): string;
1351
1735
  //#endregion
1352
1736
  //#region src/utils/download-document.d.ts
1353
1737
  declare function defaultHandleError(error: Error): void;
1354
- declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
1738
+ export declare function downloadDocument(document: PHDocument$1 | undefined, handleError?: typeof defaultHandleError): void;
1355
1739
  //#endregion
1356
1740
  //#region src/utils/get-revision-from-date.d.ts
1357
- declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: Operation$1[]) => number;
1741
+ export declare const getRevisionFromDate: (startDate?: Date, endDate?: Date, operations?: readonly Operation$1[]) => number;
1358
1742
  //#endregion
1359
1743
  //#region src/utils/nodes.d.ts
1360
1744
  /** Sorts nodes by name. */
1361
- declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
1745
+ export declare function sortNodesByName<T extends Node>(nodes: T[]): T[];
1362
1746
  /** Returns whether a node is a file. */
1363
- declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
1747
+ export declare function isFileNodeKind(node: Node | null | undefined): node is FileNode;
1364
1748
  /** Returns whether a node is a folder. */
1365
- declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
1749
+ export declare function isFolderNodeKind(node: Node | null | undefined): node is FolderNode;
1750
+ /** Every node of a drive from `read.drives`, paged until the last page;
1751
+ * `parentFolder` narrows it as `listNodes` does (null: the root level). */
1752
+ export declare function listAllDriveNodes(reader: IDriveReadClient, driveId: string, options?: {
1753
+ parentFolder?: string | null;
1754
+ signal?: AbortSignal;
1755
+ }): Promise<Node[]>;
1366
1756
  //#endregion
1367
1757
  //#region src/utils/preload-editor.d.ts
1368
- declare function preloadEditorModule(module: EditorModule): Promise<unknown> | undefined;
1369
- declare function hasPreloadBandwidth(): boolean;
1758
+ export declare function preloadEditorModule(module: EditorModule): Promise<unknown> | undefined;
1759
+ export declare function hasPreloadBandwidth(): boolean;
1370
1760
  //#endregion
1371
1761
  //#region src/utils/switchboard.d.ts
1372
- declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<string | undefined>;
1373
- declare function getSlugFromDriveUrl(driveUrl: string): string | undefined;
1374
- declare function getSwitchboardGatewayUrlFromDriveUrl(driveUrl: string): string;
1375
- declare function getDocumentGraphqlQuery(): string;
1762
+ export declare function getDriveIdBySlug(driveUrl: string, slug: string): Promise<string | undefined>;
1763
+ export declare function getSlugFromDriveUrl(driveUrl: string): string | undefined;
1764
+ export declare function getSwitchboardGatewayUrlFromDriveUrl(driveUrl: string): string;
1765
+ export declare function getDocumentGraphqlQuery(): string;
1376
1766
  /**
1377
1767
  * The base URL of the switchboard that serves a drive's GraphQL channel.
1378
1768
  *
@@ -1380,23 +1770,23 @@ declare function getDocumentGraphqlQuery(): string;
1380
1770
  * suffix preserves any proxy prefix (e.g. `/api/reactor`). A URL that does
1381
1771
  * not end with the suffix is unexpected — fall back to its origin.
1382
1772
  */
1383
- declare function getSwitchboardBaseFromChannelUrl(channelUrl: string): string;
1773
+ export declare function getSwitchboardBaseFromChannelUrl(channelUrl: string): string;
1384
1774
  /**
1385
1775
  * Derives the subselection for the document's `global` state scope from the
1386
1776
  * model's state SDL (e.g. `name total`), expanding object fields
1387
1777
  * recursively. Throws when the schema is missing, unparseable, or has no
1388
1778
  * root object type — the caller falls back to the generic document query.
1389
1779
  */
1390
- declare function getDocumentStateSelection(model: DocumentModelModule): string;
1391
- declare function buildDocumentSubgraphQuery(documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1392
- declare function buildDocumentSubgraphUrl(channelUrl: string, documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1780
+ export declare function getDocumentStateSelection(model: DocumentModelModule): string;
1781
+ export declare function buildDocumentSubgraphQuery(documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1782
+ export declare function buildDocumentSubgraphUrl(channelUrl: string, documentType: string, identifier: string, model?: DocumentModelModule, authToken?: string): string;
1393
1783
  //#endregion
1394
1784
  //#region src/utils/upgrade-preview.d.ts
1395
- type UpgradeStepInfo = {
1785
+ export type UpgradeStepInfo = {
1396
1786
  toVersion: number;
1397
1787
  description: string;
1398
1788
  };
1399
- type DocumentUpgradePreview = {
1789
+ export type DocumentUpgradePreview = {
1400
1790
  fromVersion: number;
1401
1791
  toVersion: number;
1402
1792
  steps: UpgradeStepInfo[];
@@ -1411,7 +1801,7 @@ type DocumentUpgradePreview = {
1411
1801
  * the `path[]` notation, e.g. `todos[].status`. Only key presence is
1412
1802
  * compared — array length and primitive values are ignored.
1413
1803
  */
1414
- declare function diffStateShapes(before: unknown, after: unknown): {
1804
+ export declare function diffStateShapes(before: unknown, after: unknown): {
1415
1805
  added: string[];
1416
1806
  removed: string[];
1417
1807
  };
@@ -1426,45 +1816,58 @@ declare function diffStateShapes(before: unknown, after: unknown): {
1426
1816
  * already at (or above) the latest registered version, or the upgrade path
1427
1817
  * cannot be computed.
1428
1818
  */
1429
- declare function getDocumentUpgradePreview(document: PHDocument$1, registry: IDocumentModelRegistry | undefined): DocumentUpgradePreview | undefined;
1819
+ export declare function getDocumentUpgradePreview(document: PHDocument$1, registry: IDocumentModelRegistry | undefined): DocumentUpgradePreview | undefined;
1430
1820
  //#endregion
1431
1821
  //#region src/utils/url.d.ts
1432
- declare function resolveUrlPathname(path: string): string;
1433
- /** Returns the current path without the base path */
1434
- declare function getPathWithoutBase(path: string): string;
1435
- /** Makes a URL component for a drive. */
1436
- declare function makeDriveUrlComponent(drive: DocumentDriveDocument | undefined): string;
1437
- /** Makes a URL component for a node. */
1438
- declare function makeNodeSlug(node: Node | undefined): string;
1822
+ export declare function resolveUrlPathname(path: string): string;
1823
+ /** Returns the path without a leading base path */
1824
+ export declare function getPathWithoutBase(path: string): string;
1825
+ /** Makes a URL component for a drive.
1826
+ * @deprecated Open drives through the store's `navigation`; it builds the path. */
1827
+ export declare function makeDriveUrlComponent(drive: DocumentDriveDocument | undefined): string;
1828
+ /** A drive's URL component: its slug, else its id, prefixed with the slugged
1829
+ * name as `<name>-<id>` when the id is opaque (a UUID or derived id). */
1830
+ export declare function makeDriveSlug(drive: DocumentDriveDocument): string;
1831
+ /** The drive a URL slug names: its own slug, its id, or `<name>-<id>`. */
1832
+ export declare function findDriveBySlug(drives: readonly DocumentDriveDocument[] | undefined, ref: string | undefined): DocumentDriveDocument | undefined;
1833
+ /**
1834
+ * Makes a URL component for a node: `<slugged name>-<id>`. The id is kept
1835
+ * verbatim, since a v2-required id is case-sensitive base64url.
1836
+ */
1837
+ export declare function makeNodeSlug(node: Node | undefined): string;
1439
1838
  /** Extracts the node slug from a path.
1440
1839
  *
1441
1840
  * The path is expected to be in the format `/d/<drive-slug>/<node-slug>`.
1442
1841
  */
1443
- declare function extractNodeSlugFromPath(path: string): string | undefined;
1842
+ export declare function extractNodeSlugFromPath(path: string): string | undefined;
1444
1843
  /** Finds a UUID in a string, used for extracting node ids from node slugs in the URL. */
1445
- declare function findUuid(input: string | undefined): string | undefined;
1446
- declare function extractNodeIdFromSlug(nodeSlug: string | undefined): string | undefined;
1447
- declare function extractNodeIdFromPath(path: string): string | undefined;
1844
+ export declare function findUuid(input: string | undefined): string | undefined;
1845
+ /** The v2-required document id a slug ends with, if any. */
1846
+ export declare function findDerivedId(input: string | undefined): string | undefined;
1847
+ export declare function extractNodeIdFromSlug(nodeSlug: string | undefined): string | undefined;
1848
+ /** @deprecated Route loaders resolve the node; use `extractNodeIdFromSlug`. */
1849
+ export declare function extractNodeIdFromPath(path: string): string | undefined;
1448
1850
  /** Extracts the drive slug from a path.
1449
1851
  * Used for extracting drive ids from drive slugs in the URL.
1450
1852
  * Expects the path to be in the format `/d/<drive-slug>`.
1451
1853
  */
1452
- declare function extractDriveSlugFromPath(path: string): string;
1453
- declare function extractDriveIdFromSlug(driveSlug: string | undefined): string | undefined;
1454
- declare function extractDriveIdFromPath(path: string): string | undefined;
1455
- /**
1456
- * Creates a URL string with the given pathname while preserving existing query parameters.
1457
- */
1458
- declare function createUrlWithPreservedParams(pathname: string): string;
1854
+ export declare function extractDriveSlugFromPath(path: string): string;
1855
+ export declare function extractDriveIdFromSlug(driveSlug: string | undefined): string | undefined;
1856
+ /** @deprecated Route loaders resolve the drive; use `extractDriveIdFromSlug`. */
1857
+ export declare function extractDriveIdFromPath(path: string): string | undefined;
1858
+ /** Creates a URL string with the given pathname, keeping the query string.
1859
+ * @deprecated The store's `navigation` keeps global params across navigations. */
1860
+ export declare function createUrlWithPreservedParams(pathname: string): string;
1459
1861
  //#endregion
1460
1862
  //#region src/utils/user.d.ts
1461
- declare function getUserPermissions(): {
1863
+ export declare function getUserPermissions(): {
1462
1864
  isAllowedToCreateDocuments: boolean;
1463
1865
  isAllowedToEditDocuments: boolean;
1464
1866
  };
1465
1867
  //#endregion
1466
1868
  //#region src/utils/validate-document.d.ts
1467
- declare const validateDocument: (document: PHDocument$1) => ValidationError[];
1869
+ export declare const validateDocument: (document: PHDocument$1) => ValidationError[];
1468
1870
  //#endregion
1469
- export { ActionTracker, AddPHGlobalEventHandler, AttachmentDownloadStage, AttachmentUploadStage, BaseStorage, BearerTokenProvider, BrowserLocalStorage, BrowserReactorClientModule, BrowserReactorModule, type BulkImportJob, COMMON_PACKAGE_ID, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, CanExecuteState, CanExecuteStatus, ChannelScheme, ChevronDownIcon, ConflictError, type ConflictInfo, ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_EDITOR_ID, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, DRIVE_DOCUMENT_TYPES, type Database, DisconnectIcon, DiscoveryEvent, DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, DocumentDispatch, DocumentIntegrityService, DocumentModelNotFoundError, DocumentOperationsState, DocumentTypeIcon, DocumentTypeMismatchError, DocumentUpgradePreview, DocumentVersionStatus, DraggingNode, DriveCollectionId, type DriveInfo, DriveSystemInfoState, EDITOR_FILE_DROP_OPT_OUT_ATTR, FailedInstallation, FailedInstallationReason, FileUploadProgress, FileUploadProgressCallback, type FolderZipResult, FulfilledPromise, FullPHGlobalConfig, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, GraphQLClientDocumentCache, GraphQLClientDocumentEvent, GraphQLClientDocumentsEvent, GraphQLClientWindowEvents, GraphQLDocumentEventOperationName, GraphQLDocumentEvents, GraphQLDocumentEventsOperationName, GraphQLDocumentsEvents, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, type IChannel, IDocumentCache, type IDocumentModelLoader, IPackageDiscoveryService, IPackageListerUnsubscribe, IPackageManager, IPackagesListener, type IProcessor, IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, IReactorBrowserClient, type IReactorClient, IReactorProcessorHostModule, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, IStorage, InMemoryQueue, IntervalPollTimer, type Job, type JwtHandler, type KeyframeValidationIssue, LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, NoSelectedDocumentError, NodeKind, type OperationWithContext, PHAnalyticsGlobalConfig, PHAppConfig, PHAppConfigHooks, PHAppConfigKey, PHAppConfigSetters, PHCommonGlobalConfig, PHDocumentEditorConfig, PHDocumentEditorConfigHooks, PHDocumentEditorConfigKey, PHDocumentEditorConfigSetters, PHDrivesGlobalConfig, PHGlobal, PHGlobalConfig, PHGlobalConfigHooks, PHGlobalConfigHooksForKey, PHGlobalConfigKey, PHGlobalConfigSetters, PHGlobalConfigSettersForKey, PHGlobalEventHandlerAdders, PHGlobalKey, PHGlobalValue, PHModal, PHProcessorsGlobalConfig, PHRelationalProcessorsGlobalConfig, PHRenownGlobalConfig, PHSentryGlobalConfig, PHToastFn, PHToastOptions, PHToastType, PackageManagerInstallResult, type ParsedDriveUrl, PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, PromiseState, PromiseWithState, PropagationMode, PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, ReactorBuilder, ReactorClientBuilder, ReactorDefaultDrivesConfig, type ReactorFeatureFlags, ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, RefreshReactorDataConfig, RegistryClient, RejectedPromise, RelationalDbProcessor, RelationalDbWithLive, type Remote, RemoteClient, type RemoteControllerGraphQLClient, type RemoteControllerOptions, RemoteDocumentController, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, RenownInitOptions, RenownInitialAuth, RenownInitialUserProvider, RenownInitialUserProviderProps, RenownLoginButton, RenownLoginButtonProps, RenownLoginMethod, RenownLogo, RenownProps, RenownProvider, RenownProviderProps, RenownSessionCookieOptions, RenownSessionCookieState, RenownUserButton, RenownUserButtonMenuItem, RenownUserButtonProps, RenownWalletProvider, RenownWalletProviderProps, RevisionsListSelection, RunDocumentOptions, SdkFunctionWrapper, SetEvent, SetPHGlobalValue, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncOperation, SyncOperationStatus, type SyncStatus, TStateSchemaZodObject, TimelineBarItem, TimelineDividerItem, TimelineItem, type TrackedAction, TypedGraphQLDocument, UISyncStatus, UnsupportedDocumentTypeError, UpgradeStepInfo, UseAttachmentPreviewInput, UseAttachmentPreviewReturn, UseAttachmentUploadReturn, UseDispatchResult, UseEditorFileDropOptions, UseEditorFileDropResult, UseOnDropFile, UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, WorkerReactorClientModule, WorkerReactorModule, addAllowListEventHandler, addAllowedDocumentTypesEventHandler, addAnalyticsDatabaseNameEventHandler, addAttachmentServiceEventHandler, addBasePathEventHandler, addCliVersionEventHandler, addDefaultDrivesUrlEventHandler, addDisabledEditorsEventHandler, addDocument, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDrive, addDrivesEventHandler, addDrivesPreserveStrategyEventHandler, addEnabledEditorsEventHandler, addFeaturesEventHandler, addFileUploadOperationsChunkSizeEventHandler, addFileWithProgress, addFolder, addGaTrackingIdEventHandler, addGraphQLReactorClientEventHandler, addIsAddCloudDrivesEnabledEventHandler, addIsAddDriveEnabledEventHandler, addIsAddLocalDrivesEnabledEventHandler, addIsAddPublicDrivesEnabledEventHandler, addIsAnalyticsDatabaseWorkerEnabledEventHandler, addIsAnalyticsEnabledEventHandler, addIsAnalyticsExternalProcessorsEnabledEventHandler, addIsCloudDrivesEnabledEventHandler, addIsDeleteCloudDrivesEnabledEventHandler, addIsDeleteLocalDrivesEnabledEventHandler, addIsDeletePublicDrivesEnabledEventHandler, addIsDiffAnalyticsEnabledEventHandler, addIsDocumentModelSelectionSettingsEnabledEventHandler, addIsDragAndDropEnabledEventHandler, addIsDriveAnalyticsEnabledEventHandler, addIsEditorDebugModeEnabledEventHandler, addIsEditorReadModeEnabledEventHandler, addIsExternalControlsEnabledEventHandler, addIsExternalPackagesEnabledEventHandler, addIsExternalProcessorsEnabledEventHandler, addIsExternalRelationalProcessorsEnabledEventHandler, addIsLocalDrivesEnabledEventHandler, addIsPublicDrivesEnabledEventHandler, addIsRelationalProcessorsEnabledEventHandler, addIsSentryTracingEnabledEventHandler, addLoadingEventHandler, addLocalDrivesEnabledEventHandler, addLogLevelEventHandler, addModalEventHandler, addPHEventHandlers, addPackageDiscoveryServiceEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addRemoteDrive, addRenownAdaptersEventHandler, addRenownChainIdEventHandler, addRenownEventHandler, addRenownNetworkIdEventHandler, addRenownUrlEventHandler, addRequiresHardRefreshEventHandler, addResetSelectedNodeEventHandler, addRevisionHistoryVisibleEventHandler, addRouterBasenameEventHandler, addSelectedDriveIdEventHandler, addSelectedNodeIdEventHandler, addSelectedTimelineItemEventHandler, addSelectedTimelineRevisionEventHandler, addSentryDsnEventHandler, addSentryEnvEventHandler, addSentryReleaseEventHandler, addSetSelectedDriveOnPopStateEventHandler, addSetSelectedNodeOnPopStateEventHandler, addStudioModeEventHandler, addSwitchboardUrlEventHandler, addToastEventHandler, addVersionCheckIntervalEventHandler, addVersionEventHandler, addVetraPackageManagerEventHandler, addWarnOutdatedAppEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, buildDocumentSubgraphQuery, buildDocumentSubgraphUrl, buildFolderZip, callEventHandlerRegisterFunctions, callGlobalSetterForKey, clearGlobal, closePHModal, commonGlobalEventHandlerFunctions, convertRemoteOperations, createAnalyticsStore, createClient, createProcessorQuery, createUrlWithPreservedParams, deleteDrive, deleteNode, deriveSystemUrl, describeGraphQLDocument, diffStateShapes, dispatchActions, downloadDocument, downloadFolderZip, driveIdFromUrl, dropAllReactorStorage, ensurePHEventHandlers, expandBulkArchive, exportFile, extractDriveIdFromPath, extractDriveIdFromSlug, extractDriveSlugFromPath, extractNodeIdFromPath, extractNodeIdFromSlug, extractNodeSlugFromPath, fetchDriveInfo, findUuid, getAnalyticsStore, getDocumentExtension, getDocumentGraphqlQuery, getDocumentStateSelection, getDocumentUpgradePreview, getDocumentVersionStatus, getDriveIdBySlug, getDrives, getGlobal, getPackageInfo, getPackagePage, getPackages, getPackagesByDocumentType, getPackagesForDocumentType, getPathWithoutBase, getRevisionFromDate, getSlugFromDriveUrl, getSwitchboardBaseFromChannelUrl, getSwitchboardGatewayUrlFromDriveUrl, getSyncStatus, getSyncStatusSync, getUserPermissions, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, hasPreloadBandwidth, hideRevisionHistory, identifierFromMutateDocumentOperationVariables, initConnectCrypto, initRenownCrypto, initTheme, isAuthRefusalClose, isDocumentTypeSupported, isDriveAuthError, isExternalControlsEnabledEventFunctions, isFileNodeKind, isFolderNodeKind, isGraphQLReactorClient, loadFile, loading, login, logout, makeAuthConnectionParams, makeAuthMiddleware, makeDriveUrlComponent, makeNodeSlug, makePHEventFunctions, openRenown, packageFromDocumentModels, parseDriveUrl, phAppConfigHooks, phAppConfigSetters, phDocumentEditorConfigHooks, phDocumentEditorConfigSetters, phDocumentFromGetDocument, phDocumentFromMutation, phDocumentFromQuery, phDocumentsFromQuery, phGlobalConfigHooks, phGlobalConfigSetters, preloadEditorModule, prepareSignedActions, reactorGraphqlBatchFetchDocuments, reactorGraphqlCreateDocument, reactorGraphqlDeleteDocument, reactorGraphqlDeleteDocuments, reactorGraphqlFetchDocument, reactorGraphqlMutateDocument, readPromiseState, refreshReactorData, refreshReactorDataClient, renameDrive, renameDriveNode, resolveDocumentModelModule, resolveUrlPathname, revisionMapFromRevisionsList, setAllowList, setAllowedDocumentTypes, setAnalyticsDatabaseName, setAttachmentService, setBasePath, setCliVersion, setDefaultDrivesUrl, setDefaultPHGlobalConfig, setDisabledEditors, setDocumentCache, setDriveAvailableOffline, setDriveMetadata, setDriveSharingType, setDrives, setDrivesPreserveStrategy, setEnabledEditors, setFeatures, setFileUploadOperationsChunkSize, setGaTrackingId, setGlobal, setGraphQLReactorClient, setIsAddCloudDrivesEnabled, setIsAddDriveEnabled, setIsAddLocalDrivesEnabled, setIsAddPublicDrivesEnabled, setIsAnalyticsDatabaseWorkerEnabled, setIsAnalyticsEnabled, setIsAnalyticsExternalProcessorsEnabled, setIsCloudDrivesEnabled, setIsDeleteCloudDrivesEnabled, setIsDeleteLocalDrivesEnabled, setIsDeletePublicDrivesEnabled, setIsDiffAnalyticsEnabled, setIsDocumentModelSelectionSettingsEnabled, setIsDragAndDropEnabled, setIsDriveAnalyticsEnabled, setIsEditorDebugModeEnabled, setIsEditorReadModeEnabled, setIsExternalControlsEnabled, setIsExternalPackagesEnabled, setIsExternalProcessorsEnabled, setIsExternalRelationalProcessorsEnabled, setIsLocalDrivesEnabled, setIsPublicDrivesEnabled, setIsRelationalProcessorsEnabled, setIsSentryTracingEnabled, setLoading, setLocalDrivesEnabled, setLogLevel, setPGliteDB, setPHAppConfig, setPHAppConfigByKey, setPHDocumentEditorConfig, setPHDocumentEditorConfigByKey, setPHGlobalConfig, setPHGlobalConfigByKey, setPHModal, setPHToast, setPackageDiscoveryService, setPreferredEditorOnNode, setReactorClient, setReactorClientModule, setRenown, setRenownAdapters, setRenownChainId, setRenownNetworkId, setRenownUrl, setRequiresHardRefresh, setRevisionHistoryVisible, setRouterBasename, setSelectedDrive, setSelectedDriveId, setSelectedNode, setSelectedTimelineItem, setSelectedTimelineRevision, setSentryDsn, setSentryEnv, setSentryRelease, setStudioMode, setSwitchboardUrl, setVersion, setVersionCheckInterval, setVetraPackageManager, setWarnOutdatedApp, showCreateDocumentModal, showDeleteNodeModal, showPHModal, showRevisionHistory, signStampedAction, sortNodesByName, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, trimTrailingSlash, truncateAllTables, upgradeDocument, useAllowList, useAllowedDocumentModelModules, useAllowedDocumentTypes, useAnalyticsDatabaseName, useAppModuleById, useAppModules, useAttachmentPreview, useAttachmentService, useAttachmentUpload, useAttachments, useBasePath, useCanExecute, useCliVersion, useConnectionState, useConnectionStates, useDatabase, useDefaultAppModule, useDefaultDrivesUrl, useDid, useDisabledEditors, useDispatch, useDocument, useDocumentById, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOfType, useDocumentOperations, useDocumentSafe, useDocumentTypes, useDocumentTypesInSelectedDrive, useDocumentVersionStatus, useDocuments, useDocumentsByIds, useDocumentsInSelectedDrive, useDocumentsInSelectedFolder, useDownloadDocument, useDownloadFolder, useDragNode, useDriveById, useDriveSystemInfo, useDrives, useDrivesPreserveStrategy, useDropFile, useDropNode, useEditorFileDrop, useEditorModuleById, useEditorModules, useEditorModulesForDocumentType, useEditorPreloader, useEnabledEditors, useFallbackEditorModule, useFeatures, useFileNodesInSelectedDrive, useFileNodesInSelectedFolder, useFileUploadOperationsChunkSize, useFolderById, useFolderNodesInSelectedDrive, useFolderNodesInSelectedFolder, useGaTrackingId, useGetDocument, useGetDocumentAsync, useGetDocuments, useGetSwitchboardLink, useGraphQLReactorClient, useInitReactorGraphqlClient, useIsAddCloudDrivesEnabled, useIsAddDriveEnabled, useIsAddLocalDrivesEnabled, useIsAddPublicDrivesEnabled, useIsAnalyticsDatabaseWorkerEnabled, useIsAnalyticsEnabled, useIsAnalyticsExternalProcessorsEnabled, useIsCloudDrivesEnabled, useIsDeleteCloudDrivesEnabled, useIsDeleteLocalDrivesEnabled, useIsDeletePublicDrivesEnabled, useIsDiffAnalyticsEnabled, useIsDocumentModelSelectionSettingsEnabled, useIsDragAndDropEnabled, useIsDriveAnalyticsEnabled, useIsEditorDebugModeEnabled, useIsEditorReadModeEnabled, useIsExternalControlsEnabled, useIsExternalPackagesEnabled, useIsExternalProcessorsEnabled, useIsExternalRelationalProcessorsEnabled, useIsLocalDrivesEnabled, useIsPublicDrivesEnabled, useIsRelationalProcessorsEnabled, useIsSentryTracingEnabled, useLoading, useLocalDrivesEnabled, useLogLevel, useLoginStatus, useModelRegistry, useNodeActions, useNodeById, useNodeParentFolderById, useNodePathById, useNodesInSelectedDrive, useNodesInSelectedDriveOrFolder, useNodesInSelectedFolder, useOnDropFile, usePGlite, usePHAppConfigByKey, usePHDocumentEditorConfigByKey, usePHGlobalConfigByKey, usePHModal, usePHToast, usePackageDiscoveryService, useParentFolderForSelectedNode, useReactorClient, useReactorClientModule, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAdapters, useRenownAuth, useRenownAuthAsync, useRenownChainId, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownNetworkId, useRenownSessionCookie, useRenownSessionSynced, useRenownUrl, useRenownWalletAdapter, useRequiresHardRefresh, useResetPHGlobalConfig, useRevisionHistoryVisible, useRouterBasename, useSelectedDocument, useSelectedDocumentId, useSelectedDocumentOfType, useSelectedDocumentSafe, useSelectedDrive, useSelectedDriveId, useSelectedDriveSafe, useSelectedFolder, useSelectedNode, useSelectedNodePath, useSelectedTimelineItem, useSelectedTimelineRevision, useSentryDsn, useSentryEnv, useSentryRelease, useSetDefaultPHGlobalConfig, useSetPHAppConfig, useSetPHDocumentEditorConfig, useSetPHGlobalConfig, useStudioMode, useSubgraphModules, useSupportedDocumentTypesInReactor, useSwitchboardClient, useSwitchboardUrl, useSync, useSyncList, useTheme, useUser, useUserPermissions, useVersion, useVersionCheckInterval, useVetraPackageManager, useVetraPackages, useWarnOutdatedApp, validateDocument, viewFilterInputFromViewFilter, waitForDocumentReady };
1871
+ export { type AddPHGlobalEventHandler, type BackendAuthState, BatchJobFailedError, BearerTokenProvider, type BrowserReactorClientModule, type BrowserReactorModule, type BulkImportJob, CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChannelScheme, ChevronDownIcon, type ConflictInfo, type ConflictResolution, type ConflictStrategy, ConnectionParams, type ConnectionState, type ConnectionStateSnapshot, CopyIcon, CreateStoreOptions, DEFAULT_DRIVE_ID, DEFAULT_SWITCHBOARD_URL, DOMAIN_TYPE, type Database, DisconnectIcon, type DiscoveryEvent, type DiscoveryEventListener, DispatchFn, DocumentCache, type RemoteDocumentChangeEvent as DocumentChangeEvent, type DocumentChangeListener, DocumentChangeType, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentDispatch, DocumentIntegrityService, DocumentOperationsResult, DocumentOperationsState, type DocumentRefetchState, type DocumentTypeIcon, type DocumentsOfTypeEntry, DraggingNode, DriveCollectionId, DriveIdCall, type DriveInfo, DriveNodeQueries, DriveNodesCache, DriveNodesEntry, DriveNodesOptions, type FailedInstallation, type FailedInstallationReason, type FileUploadProgress, type FileUploadProgressCallback, type FolderZipResult, type FulfilledPromise, type FullPHGlobalConfig, GET_MANY_CHUNK_SIZE, GetDocumentAtConsistencyDocument, GetDocumentAtConsistencyResult, GetDocumentAtConsistencyVariables, GetDocumentQueryFields, GetDocumentQueryResult, type GetDocumentResult, type GetDocumentWithOperationsResult, type GetOperationsResult, GqlRequestChannel, type GraphQLClientDocumentEvent, type GraphQLClientDocumentsEvent, type GraphQLClientWindowEvents, type GraphQLDocumentEventOperationName, type GraphQLDocumentEvents, type GraphQLDocumentEventsOperationName, type GraphQLDocumentsEvents, GraphQLDriveNodeSource, GraphQLDriveReadClient, GraphQLOperationNotSupportedError, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLReactorReadClient, GraphQLRequestOptions, GraphQLWrongBackendError, type IChannel, IDLE_DOCUMENTS_OF_TYPE_ENTRY, IDLE_OPERATIONS_ENTRY, IDLE_REFETCH_STATE, type IDocumentCache, IDocumentCacheReader, type IDocumentModelLoader, type IDocumentTypeCache, IJobChangesSocket, type IOperationCache, type IPackageDiscoveryService, type IPackageListerUnsubscribe, type IPackageManager, type IPackagesListener, type IPeerAgreement, type IProcessor, type IProcessorHostModule, type IProcessorHostModuleBase, type IQueue, type IReactorBrowserClient, type IReactorBrowserReadClient, type IReactorBrowserWriteClient, type IReactorClient, type IReactorProcessorHostModule, type IReactorReadClient, type IReactorWriteClient, type IRelationalDb, type IRemoteClient, type IRemoteController, ISSUER_TYPE, InMemoryQueue, IntervalPollTimer, type Job, JobChangesEventPayload, JobChangesSocketOptions, JobFailedError, type JwtHandler, type KeyframeValidationIssue, type LOADING, type MergeHandler, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type NodeKind, type OperationWithContext, type OperationsCacheEntry, type PHAnalyticsGlobalConfig, type PHAppConfig, type PHAppConfigHooks, type PHAppConfigKey, type PHAppConfigSetters, type PHCommonGlobalConfig, type PHDocumentEditorConfig, type PHDocumentEditorConfigHooks, type PHDocumentEditorConfigKey, type PHDocumentEditorConfigSetters, type PHDriveTarget, type PHDrivesGlobalConfig, type PHGlobal, type PHGlobalConfig, type PHGlobalConfigHooks, type PHGlobalConfigHooksForKey, type PHGlobalConfigKey, type PHGlobalConfigSetters, type PHGlobalConfigSettersForKey, type PHGlobalEventHandlerAdders, type PHGlobalKey, type PHGlobalValue, type PHModal, type PHNavigateOptions, type PHNavigation, type PHNavigationTarget, type PHProcessorsGlobalConfig, type PHRelationalProcessorsGlobalConfig, type PHRenownGlobalConfig, type PHSearchUpdate, type PHSentryGlobalConfig, type PHSettingsTarget, PHStore, PHStoreProvider, type PHToastFn, type PHToastOptions, type PHToastType, type PackageManagerInstallResult, type ParsedDriveUrl, type PendingInstallation, PollBehavior, type ProcessorApp, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type PromiseState, type PromiseWithState, PropagationMode, type PublishEvent, type PushResult, QueryCallbackReturnType, REACTOR_SCHEMA, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, type ReactorBrowserHalves, ReactorBuilder, ReactorClientBuilder, type ReactorFeatureFlags, type ReactorGraphQLClient, ReactorOperationFieldsFragmentDoc, type RebuildResult, type RejectedPromise, RelationalDbOptions, RelationalDbProcessor, RelationalDbWithLive, type Remote, type RemoteControllerGraphQLClient, type RemoteControllerOptions, type RemoteDocumentControllerWith, type RemoteDocumentData, type RemoteFilter, type RemoteMeta, type RemoteOperation, type RemoteOperationResultPage, type RemotePeer, Renown, RenownAuth, RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, RenownAuthResolution, RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, RevisionsListSelection, type RunDocumentOptions, type SdkFunctionWrapper, type SearchParamsUpdate, type SetEvent, type SetPHGlobalValue, type SetSearchParams, type SignerConfig, type SnapshotValidationIssue, SpinnerIcon, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, type SyncHold, type SyncOperation, SyncOperationStatus, type SyncStatus, type TStateSchemaZodObject, type TimelineBarItem, type TimelineDividerItem, type TimelineItem, type TrackedAction, TypedGraphQLDocument, UseDispatchResult, UseDocumentOperationsOptions, type UseOnDropFile, type UsePHGlobalValue, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, type ValidationResult, type WorkerReactorClientModule, type WorkerReactorModule, type WriteHandle, type WriteReceipt, addAttachmentServiceEventHandler, addDocumentCacheEventHandler, addDraggingNodeEventHandler, addDriveNodesEventHandler, addFullReactorClientEventHandler, addPromiseState, addReactorClientEventHandler, addReactorClientModuleEventHandler, addReactorHalvesEventHandler, addRenownEventHandler, ambientRenownTokenProvider, baseDocumentModels, baseDocumentModelsMap, bindPHStoreToWindow, createAnalyticsStore, createClient, createDispatch, createGraphQLDriveNodeSource, createJobChangesSocket, createPHStore, createProcessorQuery, describeGraphQLDocument, dispatchActions, driveIdFromUrl, dropDriveNode, ensurePHEventHandlers, ensurePHStore, findIsServableOverGraphQL, getActivePHStore, getAnalyticsStore, getDriveNode, getFullReactorClient, getPHStore, getPHStoreSubscribe, graphqlDocumentEvents, graphqlDocumentsEvents, graphqlEventsToSyncDrive, initConnectCrypto, initRenownCrypto, invalidateDriveNodes, isAuthRefusalClose, isDocumentTypeCache, isDriveAuthError, isGraphQLReactorClient, isOperationCache, isoStringFromDateTime, loadDriveNodes, login, logout, makeAuthConnectionParams, makeAuthMiddleware, markLocalDriveWrite, notifyPHStore, openRenown, packageFromDocumentModels, parseDriveUrl, peekDriveNode, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, queriesUnknownArgument, queriesUnknownField, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setAttachmentService, setDocumentCache, setFullReactorClient, setReactorClient, setReactorClientModule, setRenown, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscribePHStore, subscriptionsUrlFromGraphqlUrl, takeLocalDriveWrite, toLegacyNode, useAttachmentService, useDatabase, useDid, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useDragNode, useDriveNode, useDriveNodes, useDriveNodesCache, useDropNode, useGetDocument, useGetDocumentAsync, useGetDocuments, useLoginStatus, useModelRegistry, usePGlite, usePHStore, useReactorClient, useReactorClientModule, useReactorHalves, useRelationalDb, useRelationalQuery, useRelationalQueryOptions, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter, useSwitchboardClient, useSync, useSyncList, useUser, viewFilterInputFromViewFilter };
1872
+ export {};
1470
1873
  //# sourceMappingURL=index.d.ts.map