@@ -38,11 +38,13 @@ import type { RuntimeSnippet } from '@next-core/types';
3838import type { RuntimeStoryboard } from ' @next-core/types' ;
3939import type { SiteMode } from ' @next-core/types' ;
4040import type { SiteTheme } from ' @next-core/types' ;
41+ import type { SiteVariant } from ' @next-core/types' ;
4142import type { SlotConfOfRoutes } from ' @next-core/types' ;
4243import type { StaticMenuConf } from ' @next-core/types' ;
4344import type { Storyboard } from ' @next-core/types' ;
4445import { StoryboardFunction } from ' @next-core/types' ;
4546import { supply } from ' @next-core/supply' ;
47+ import type { UseProviderContractConf } from ' @next-core/types' ;
4648import type { UseProviderResolveConf } from ' @next-core/types' ;
4749import type { UseSingleBrickConf } from ' @next-core/types' ;
4850
@@ -118,6 +120,7 @@ export interface CreateRootOptions {
118120 // (undocumented)
119121 portal? : HTMLElement ;
120122 scope? : " page" | " fragment" ;
123+ supportsUseChildren? : boolean ;
121124 unknownBricks? : " silent" | " throw" ;
122125 unsafe_penetrate? : boolean ;
123126}
@@ -230,6 +233,9 @@ function getRenderId(): string | undefined;
230233// @public (undocumented)
231234export const getRuntime: () => Runtime ;
232235
236+ // @public (undocumented)
237+ export function getThemeVariant(): SiteVariant ;
238+
233239// Warning: (ae-forgotten-export) The symbol "Kit" needs to be exported by the entry point index.d.ts
234240//
235241// @public (undocumented)
@@ -491,7 +497,7 @@ export interface RuntimeHooks {
491497 FLOW_API_PROVIDER: string ;
492498 registerFlowApiProvider(): void ;
493499 isFlowApiProvider(provider : string ): boolean ;
494- getArgsOfFlowApi(provider : string , originalArgs : unknown [], method ? : string , stream ? : boolean ): Promise <unknown []>;
500+ getArgsOfFlowApi(provider : string , originalArgs : unknown [] | UseProviderContractConf , method ? : string , stream ? : boolean ): Promise <unknown []>;
495501 collectContract(contracts : Contract [] | undefined ): void ;
496502 collectWidgetContract(contracts : Contract [] | undefined ): void ;
497503 clearCollectWidgetContract(): void ;
@@ -586,7 +592,7 @@ const symbolForRootRuntimeContext: unique symbol;
586592function unmountUseBrick({ rendererContext }: RenderUseBrickResult , mountResult : MountUseBrickResult ): void ;
587593
588594// @public (undocumented)
589- export function unstable_createRoot(container : HTMLElement | DocumentFragment , { portal : _portal , scope , unknownBricks , unsafe_penetrate , }?: CreateRootOptions ): {
595+ export function unstable_createRoot(container : HTMLElement | DocumentFragment , { portal : _portal , scope , unknownBricks , supportsUseChildren , unsafe_penetrate , }?: CreateRootOptions ): {
590596 render(brick : BrickConf | BrickConf [], { theme , uiVersion , language , context , functions , templates , i18n : i18nData , url , app , }?: RenderOptions ): Promise <void >;
591597 unmount(): void ;
592598};
0 commit comments