@@ -803,7 +803,13 @@ export interface IndexSettingsDeprecationInfo {
803803
804804// @public (undocumented)
805805export interface IRenderOptions {
806+ // @internal @deprecated
807+ app? : {
808+ getId(): string ;
809+ };
806810 includeUserSettings? : boolean ;
811+ // @internal @deprecated
812+ vars? : Record <string , any >;
807813}
808814
809815// @public
@@ -832,7 +838,7 @@ export type IScopedClusterClient = Pick<ScopedClusterClient, 'callAsCurrentUser'
832838
833839// @public (undocumented)
834840export interface IScopedRenderingClient {
835- render(options ? : IRenderOptions ): Promise <string >;
841+ render(options ? : Pick < IRenderOptions , ' includeUserSettings ' > ): Promise <string >;
836842}
837843
838844// @public
@@ -932,21 +938,13 @@ export class LegacyInternals implements ILegacyInternals {
932938 // (undocumented)
933939 getInjectedUiAppVars(id : string ): Promise <Record <string , any >>;
934940 // (undocumented)
935- getVars(id : string , request : LegacyRequest , injected ? : LegacyVars ): Promise <Record <string , any >>;
941+ getVars(id : string , request : KibanaRequest | LegacyRequest , injected ? : LegacyVars ): Promise <Record <string , any >>;
936942 // Warning: (ae-forgotten-export) The symbol "VarsInjector" needs to be exported by the entry point index.d.ts
937943 //
938944 // (undocumented)
939945 injectUiAppVars(id : string , injector : VarsInjector ): void ;
940946 }
941947
942- // @internal @deprecated (undocumented)
943- export interface LegacyRenderOptions extends IRenderOptions {
944- app? : {
945- getId(): string ;
946- };
947- vars? : Record <string , any >;
948- }
949-
950948// @public @deprecated (undocumented)
951949export interface LegacyRequest extends Request {
952950}
@@ -1233,7 +1231,7 @@ export type RedirectResponseOptions = HttpResponseOptions & {
12331231
12341232// @internal (undocumented)
12351233export interface RenderingServiceSetup {
1236- render<R extends KibanaRequest | LegacyRequest >(request : R , uiSettings : IUiSettingsClient , options ? : R extends LegacyRequest ? LegacyRenderOptions : IRenderOptions ): Promise <string >;
1234+ render<R extends KibanaRequest | LegacyRequest >(request : R , uiSettings : IUiSettingsClient , options ? : IRenderOptions ): Promise <string >;
12371235}
12381236
12391237// @public
0 commit comments