diff --git a/docs/development/core/public/kibana-plugin-public.md b/docs/development/core/public/kibana-plugin-public.md
index 924dd53114c10..3552b695a9893 100644
--- a/docs/development/core/public/kibana-plugin-public.md
+++ b/docs/development/core/public/kibana-plugin-public.md
@@ -110,8 +110,6 @@ The plugin integrates with the core system via lifecycle events: `setup`
| [IContextProvider](./kibana-plugin-public.icontextprovider.md) | A function that returns a context value for a specific key of given context type. |
| [IToasts](./kibana-plugin-public.itoasts.md) | Methods for adding and removing global toast messages. See [ToastsApi](./kibana-plugin-public.toastsapi.md). |
| [MountPoint](./kibana-plugin-public.mountpoint.md) | A function that will should mount DOM content inside the provided container element and return a handler to unmount it. |
-| [OverlayBannerMount](./kibana-plugin-public.overlaybannermount.md) | A function that will mount the banner inside the provided element. |
-| [OverlayBannerUnmount](./kibana-plugin-public.overlaybannerunmount.md) | A function that will unmount the banner from the element. |
| [PluginInitializer](./kibana-plugin-public.plugininitializer.md) | The plugin
export at the root of a plugin's public
directory should conform to this interface. |
| [PluginOpaqueId](./kibana-plugin-public.pluginopaqueid.md) | |
| [RecursiveReadonly](./kibana-plugin-public.recursivereadonly.md) | |
diff --git a/docs/development/core/public/kibana-plugin-public.overlaybannermount.md b/docs/development/core/public/kibana-plugin-public.overlaybannermount.md
deleted file mode 100644
index 0fd0aca652cf0..0000000000000
--- a/docs/development/core/public/kibana-plugin-public.overlaybannermount.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [OverlayBannerMount](./kibana-plugin-public.overlaybannermount.md)
-
-## OverlayBannerMount type
-
-A function that will mount the banner inside the provided element.
-
-Signature:
-
-```typescript
-export declare type OverlayBannerMount = (element: HTMLElement) => OverlayBannerUnmount;
-```
diff --git a/docs/development/core/public/kibana-plugin-public.overlaybannersstart.add.md b/docs/development/core/public/kibana-plugin-public.overlaybannersstart.add.md
index 8c3e874804e08..8ce59d5d9ca78 100644
--- a/docs/development/core/public/kibana-plugin-public.overlaybannersstart.add.md
+++ b/docs/development/core/public/kibana-plugin-public.overlaybannersstart.add.md
@@ -9,14 +9,14 @@ Add a new banner
Signature:
```typescript
-add(mount: OverlayBannerMount, priority?: number): string;
+add(mount: MountPoint, priority?: number): string;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
-| mount | OverlayBannerMount
| |
+| mount | MountPoint
| |
| priority | number
| |
Returns:
diff --git a/docs/development/core/public/kibana-plugin-public.overlaybannersstart.replace.md b/docs/development/core/public/kibana-plugin-public.overlaybannersstart.replace.md
index 8f624c285b180..a8f6915ea9bb7 100644
--- a/docs/development/core/public/kibana-plugin-public.overlaybannersstart.replace.md
+++ b/docs/development/core/public/kibana-plugin-public.overlaybannersstart.replace.md
@@ -9,7 +9,7 @@ Replace a banner in place
Signature:
```typescript
-replace(id: string | undefined, mount: OverlayBannerMount, priority?: number): string;
+replace(id: string | undefined, mount: MountPoint, priority?: number): string;
```
## Parameters
@@ -17,7 +17,7 @@ replace(id: string | undefined, mount: OverlayBannerMount, priority?: number): s
| Parameter | Type | Description |
| --- | --- | --- |
| id | string | undefined
| |
-| mount | OverlayBannerMount
| |
+| mount | MountPoint
| |
| priority | number
| |
Returns:
diff --git a/docs/development/core/public/kibana-plugin-public.overlaybannerunmount.md b/docs/development/core/public/kibana-plugin-public.overlaybannerunmount.md
deleted file mode 100644
index c9a7c2b8fee92..0000000000000
--- a/docs/development/core/public/kibana-plugin-public.overlaybannerunmount.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-[Home](./index.md) > [kibana-plugin-public](./kibana-plugin-public.md) > [OverlayBannerUnmount](./kibana-plugin-public.overlaybannerunmount.md)
-
-## OverlayBannerUnmount type
-
-A function that will unmount the banner from the element.
-
-Signature:
-
-```typescript
-export declare type OverlayBannerUnmount = () => void;
-```
diff --git a/src/core/public/index.ts b/src/core/public/index.ts
index a3d6138d7b50c..e040b29814900 100644
--- a/src/core/public/index.ts
+++ b/src/core/public/index.ts
@@ -117,13 +117,7 @@ export {
InterceptedHttpResponse,
} from './http';
-export {
- OverlayStart,
- OverlayBannerMount,
- OverlayBannerUnmount,
- OverlayBannersStart,
- OverlayRef,
-} from './overlays';
+export { OverlayStart, OverlayBannersStart, OverlayRef } from './overlays';
export {
Toast,
diff --git a/src/core/public/overlays/banners/banners_service.tsx b/src/core/public/overlays/banners/banners_service.tsx
index 799ca43c7fa93..31d49b5952e87 100644
--- a/src/core/public/overlays/banners/banners_service.tsx
+++ b/src/core/public/overlays/banners/banners_service.tsx
@@ -25,33 +25,20 @@ import { PriorityMap } from './priority_map';
import { BannersList } from './banners_list';
import { UiSettingsClientContract } from '../../ui_settings';
import { I18nStart } from '../../i18n';
+import { MountPoint } from '../../types';
import { UserBannerService } from './user_banner_service';
-/**
- * A function that will unmount the banner from the element.
- * @public
- */
-export type OverlayBannerUnmount = () => void;
-
-/**
- * A function that will mount the banner inside the provided element.
- * @param element an element to render into
- * @returns a {@link OverlayBannerUnmount}
- * @public
- */
-export type OverlayBannerMount = (element: HTMLElement) => OverlayBannerUnmount;
-
/** @public */
export interface OverlayBannersStart {
/**
* Add a new banner
*
- * @param mount {@link OverlayBannerMount}
+ * @param mount {@link MountPoint}
* @param priority optional priority order to display this banner. Higher priority values are shown first.
* @returns a unique identifier for the given banner to be used with {@link OverlayBannersStart.remove} and
* {@link OverlayBannersStart.replace}
*/
- add(mount: OverlayBannerMount, priority?: number): string;
+ add(mount: MountPoint, priority?: number): string;
/**
* Remove a banner
@@ -65,12 +52,12 @@ export interface OverlayBannersStart {
* Replace a banner in place
*
* @param id the unique identifier for the banner returned by {@link OverlayBannersStart.add}
- * @param mount {@link OverlayBannerMount}
+ * @param mount {@link MountPoint}
* @param priority optional priority order to display this banner. Higher priority values are shown first.
* @returns a new identifier for the given banner to be used with {@link OverlayBannersStart.remove} and
* {@link OverlayBannersStart.replace}
*/
- replace(id: string | undefined, mount: OverlayBannerMount, priority?: number): string;
+ replace(id: string | undefined, mount: MountPoint, priority?: number): string;
/** @internal */
get$(): Observable;
@@ -80,7 +67,7 @@ export interface OverlayBannersStart {
/** @internal */
export interface OverlayBanner {
readonly id: string;
- readonly mount: OverlayBannerMount;
+ readonly mount: MountPoint;
readonly priority: number;
}
@@ -116,7 +103,7 @@ export class OverlayBannersService {
return true;
},
- replace(id: string | undefined, mount: OverlayBannerMount, priority = 0) {
+ replace(id: string | undefined, mount: MountPoint, priority = 0) {
if (!id || !banners$.value.has(id)) {
return this.add(mount, priority);
}
diff --git a/src/core/public/overlays/banners/index.ts b/src/core/public/overlays/banners/index.ts
index 9e908bd628003..a68dfa7ebadac 100644
--- a/src/core/public/overlays/banners/index.ts
+++ b/src/core/public/overlays/banners/index.ts
@@ -17,9 +17,4 @@
* under the License.
*/
-export {
- OverlayBannerMount,
- OverlayBannerUnmount,
- OverlayBannersStart,
- OverlayBannersService,
-} from './banners_service';
+export { OverlayBannersStart, OverlayBannersService } from './banners_service';
diff --git a/src/core/public/overlays/index.ts b/src/core/public/overlays/index.ts
index c49548abee0df..ff03e5dffb2ca 100644
--- a/src/core/public/overlays/index.ts
+++ b/src/core/public/overlays/index.ts
@@ -17,5 +17,5 @@
* under the License.
*/
-export { OverlayBannerMount, OverlayBannerUnmount, OverlayBannersStart } from './banners';
+export { OverlayBannersStart } from './banners';
export { OverlayService, OverlayStart, OverlayRef } from './overlay_service';
diff --git a/src/core/public/public.api.md b/src/core/public/public.api.md
index f9bba31107a5b..9b69fd910c8b9 100644
--- a/src/core/public/public.api.md
+++ b/src/core/public/public.api.md
@@ -1,1001 +1,995 @@
-## API Report File for "kibana"
-
-> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
-
-```ts
-
-import { Breadcrumb } from '@elastic/eui';
-import { EuiGlobalToastListToast } from '@elastic/eui';
-import { IconType } from '@elastic/eui';
-import { Observable } from 'rxjs';
-import React from 'react';
-import * as Rx from 'rxjs';
-import { ShallowPromise } from '@kbn/utility-types';
-import { UiSettingsParams as UiSettingsParams_2 } from 'src/core/server/types';
-import { UserProvidedValues as UserProvidedValues_2 } from 'src/core/server/types';
-
-// @public
-export interface App extends AppBase {
- mount: (context: AppMountContext, params: AppMountParameters) => AppUnmount | Promise;
-}
-
-// @public (undocumented)
-export interface AppBase {
- capabilities?: Partial;
- euiIconType?: string;
- icon?: string;
- // (undocumented)
- id: string;
- order?: number;
- title: string;
- tooltip$?: Observable;
-}
-
-// @public (undocumented)
-export interface ApplicationSetup {
- register(app: App): void;
- registerMountContext(contextName: T, provider: IContextProvider): void;
-}
-
-// @public (undocumented)
-export interface ApplicationStart {
- capabilities: RecursiveReadonly;
- getUrlForApp(appId: string, options?: {
- path?: string;
- }): string;
- navigateToApp(appId: string, options?: {
- path?: string;
- state?: any;
- }): void;
- registerMountContext(contextName: T, provider: IContextProvider): void;
-}
-
-// @public
-export interface AppMountContext {
- core: {
- application: Pick;
- chrome: ChromeStart;
- docLinks: DocLinksStart;
- http: HttpStart;
- i18n: I18nStart;
- notifications: NotificationsStart;
- overlays: OverlayStart;
- uiSettings: UiSettingsClientContract;
- injectedMetadata: {
- getInjectedVar: (name: string, defaultValue?: any) => unknown;
- };
- };
-}
-
-// @public (undocumented)
-export interface AppMountParameters {
- appBasePath: string;
- element: HTMLElement;
-}
-
-// @public
-export type AppUnmount = () => void;
-
-// @public
-export interface Capabilities {
- [key: string]: Record>;
- catalogue: Record;
- management: {
- [sectionId: string]: Record;
- };
- navLinks: Record;
-}
-
-// @public (undocumented)
-export interface ChromeBadge {
- // (undocumented)
- iconType?: IconType;
- // (undocumented)
- text: string;
- // (undocumented)
- tooltip: string;
-}
-
-// @public (undocumented)
-export interface ChromeBrand {
- // (undocumented)
- logo?: string;
- // (undocumented)
- smallLogo?: string;
-}
-
-// @public (undocumented)
-export type ChromeBreadcrumb = Breadcrumb;
-
-// @public
-export interface ChromeDocTitle {
- // @internal (undocumented)
- __legacy: {
- setBaseTitle(baseTitle: string): void;
- };
- change(newTitle: string | string[]): void;
- reset(): void;
-}
-
-// @public (undocumented)
-export type ChromeHelpExtension = (element: HTMLDivElement) => () => void;
-
-// @public (undocumented)
-export interface ChromeNavControl {
- // (undocumented)
- mount(targetDomElement: HTMLElement): () => void;
- // (undocumented)
- order?: number;
-}
-
-// @public
-export interface ChromeNavControls {
- // @internal (undocumented)
- getLeft$(): Observable;
- // @internal (undocumented)
- getRight$(): Observable;
- registerLeft(navControl: ChromeNavControl): void;
- registerRight(navControl: ChromeNavControl): void;
-}
-
-// @public (undocumented)
-export interface ChromeNavLink {
- // @deprecated
- readonly active?: boolean;
- readonly baseUrl: string;
- // @deprecated
- readonly disabled?: boolean;
- readonly euiIconType?: string;
- readonly hidden?: boolean;
- readonly icon?: string;
- readonly id: string;
- // @internal
- readonly legacy: boolean;
- // @deprecated
- readonly linkToLastSubUrl?: boolean;
- readonly order?: number;
- // @deprecated
- readonly subUrlBase?: string;
- readonly title: string;
- readonly tooltip?: string;
- // @deprecated
- readonly url?: string;
-}
-
-// @public
-export interface ChromeNavLinks {
- enableForcedAppSwitcherNavigation(): void;
- get(id: string): ChromeNavLink | undefined;
- getAll(): Array>;
- getForceAppSwitcherNavigation$(): Observable;
- getNavLinks$(): Observable>>;
- has(id: string): boolean;
- showOnly(id: string): void;
- update(id: string, values: ChromeNavLinkUpdateableFields): ChromeNavLink | undefined;
-}
-
-// @public (undocumented)
-export type ChromeNavLinkUpdateableFields = Partial>;
-
-// @public
-export interface ChromeRecentlyAccessed {
- // Warning: (ae-unresolved-link) The @link reference could not be resolved: No member was found with name "basePath"
- add(link: string, label: string, id: string): void;
- get$(): Observable;
- get(): ChromeRecentlyAccessedHistoryItem[];
-}
-
-// @public (undocumented)
-export interface ChromeRecentlyAccessedHistoryItem {
- // (undocumented)
- id: string;
- // (undocumented)
- label: string;
- // (undocumented)
- link: string;
-}
-
-// @public
-export interface ChromeStart {
- addApplicationClass(className: string): void;
- docTitle: ChromeDocTitle;
- getApplicationClasses$(): Observable;
- getBadge$(): Observable;
- getBrand$(): Observable;
- getBreadcrumbs$(): Observable;
- getHelpExtension$(): Observable;
- getIsCollapsed$(): Observable;
- getIsVisible$(): Observable;
- navControls: ChromeNavControls;
- navLinks: ChromeNavLinks;
- recentlyAccessed: ChromeRecentlyAccessed;
- removeApplicationClass(className: string): void;
- setAppTitle(appTitle: string): void;
- setBadge(badge?: ChromeBadge): void;
- setBrand(brand: ChromeBrand): void;
- setBreadcrumbs(newBreadcrumbs: ChromeBreadcrumb[]): void;
- setHelpExtension(helpExtension?: ChromeHelpExtension): void;
- setIsCollapsed(isCollapsed: boolean): void;
- setIsVisible(isVisible: boolean): void;
-}
-
-// @public
-export interface ContextSetup {
- createContextContainer>(): IContextContainer;
-}
-
-// @internal (undocumented)
-export interface CoreContext {
- // Warning: (ae-forgotten-export) The symbol "CoreId" needs to be exported by the entry point index.d.ts
- //
- // (undocumented)
- coreId: CoreId;
- // (undocumented)
- env: {
- mode: Readonly;
- packageInfo: Readonly;
- };
-}
-
-// @public
-export interface CoreSetup {
- // (undocumented)
- application: ApplicationSetup;
- // (undocumented)
- context: ContextSetup;
- // (undocumented)
- fatalErrors: FatalErrorsSetup;
- // (undocumented)
- http: HttpSetup;
- // @deprecated
- injectedMetadata: {
- getInjectedVar: (name: string, defaultValue?: any) => unknown;
- };
- // (undocumented)
- notifications: NotificationsSetup;
- // (undocumented)
- uiSettings: UiSettingsClientContract;
-}
-
-// @public
-export interface CoreStart {
- // (undocumented)
- application: ApplicationStart;
- // (undocumented)
- chrome: ChromeStart;
- // (undocumented)
- docLinks: DocLinksStart;
- // (undocumented)
- http: HttpStart;
- // (undocumented)
- i18n: I18nStart;
- // @deprecated
- injectedMetadata: {
- getInjectedVar: (name: string, defaultValue?: any) => unknown;
- };
- // (undocumented)
- notifications: NotificationsStart;
- // (undocumented)
- overlays: OverlayStart;
- // (undocumented)
- savedObjects: SavedObjectsStart;
- // (undocumented)
- uiSettings: UiSettingsClientContract;
-}
-
-// @internal
-export class CoreSystem {
- // Warning: (ae-forgotten-export) The symbol "Params" needs to be exported by the entry point index.d.ts
- constructor(params: Params);
- // (undocumented)
- setup(): Promise<{
- fatalErrors: FatalErrorsSetup;
- } | undefined>;
- // (undocumented)
- start(): Promise;
- // (undocumented)
- stop(): void;
- }
-
-// @public (undocumented)
-export interface DocLinksStart {
- // (undocumented)
- readonly DOC_LINK_VERSION: string;
- // (undocumented)
- readonly ELASTIC_WEBSITE_URL: string;
- // (undocumented)
- readonly links: {
- readonly filebeat: {
- readonly base: string;
- readonly installation: string;
- readonly configuration: string;
- readonly elasticsearchOutput: string;
- readonly startup: string;
- readonly exportedFields: string;
- };
- readonly auditbeat: {
- readonly base: string;
- };
- readonly metricbeat: {
- readonly base: string;
- };
- readonly heartbeat: {
- readonly base: string;
- };
- readonly logstash: {
- readonly base: string;
- };
- readonly functionbeat: {
- readonly base: string;
- };
- readonly winlogbeat: {
- readonly base: string;
- };
- readonly aggs: {
- readonly date_histogram: string;
- readonly date_range: string;
- readonly filter: string;
- readonly filters: string;
- readonly geohash_grid: string;
- readonly histogram: string;
- readonly ip_range: string;
- readonly range: string;
- readonly significant_terms: string;
- readonly terms: string;
- readonly avg: string;
- readonly avg_bucket: string;
- readonly max_bucket: string;
- readonly min_bucket: string;
- readonly sum_bucket: string;
- readonly cardinality: string;
- readonly count: string;
- readonly cumulative_sum: string;
- readonly derivative: string;
- readonly geo_bounds: string;
- readonly geo_centroid: string;
- readonly max: string;
- readonly median: string;
- readonly min: string;
- readonly moving_avg: string;
- readonly percentile_ranks: string;
- readonly serial_diff: string;
- readonly std_dev: string;
- readonly sum: string;
- readonly top_hits: string;
- };
- readonly scriptedFields: {
- readonly scriptFields: string;
- readonly scriptAggs: string;
- readonly painless: string;
- readonly painlessApi: string;
- readonly painlessSyntax: string;
- readonly luceneExpressions: string;
- };
- readonly indexPatterns: {
- readonly loadingData: string;
- readonly introduction: string;
- };
- readonly kibana: string;
- readonly siem: string;
- readonly query: {
- readonly luceneQuerySyntax: string;
- readonly queryDsl: string;
- readonly kueryQuerySyntax: string;
- };
- readonly date: {
- readonly dateMath: string;
- };
- };
-}
-
-// @public (undocumented)
-export interface EnvironmentMode {
- // (undocumented)
- dev: boolean;
- // (undocumented)
- name: 'development' | 'production';
- // (undocumented)
- prod: boolean;
-}
-
-// @public
-export interface ErrorToastOptions {
- title: string;
- toastMessage?: string;
-}
-
-// @public
-export interface FatalErrorInfo {
- // (undocumented)
- message: string;
- // (undocumented)
- stack: string | undefined;
-}
-
-// @public
-export interface FatalErrorsSetup {
- add: (error: string | Error, source?: string) => never;
- get$: () => Rx.Observable;
-}
-
-// @public
-export type HandlerContextType> = T extends HandlerFunction ? U : never;
-
-// @public
-export type HandlerFunction = (context: T, ...args: any[]) => any;
-
-// @public
-export type HandlerParameters> = T extends (context: any, ...args: infer U) => any ? U : never;
-
-// @public (undocumented)
-export type HttpBody = BodyInit | null | any;
-
-// @public (undocumented)
-export interface HttpErrorRequest {
- // (undocumented)
- error: Error;
- // (undocumented)
- request: Request;
-}
-
-// @public (undocumented)
-export interface HttpErrorResponse extends HttpResponse {
- // (undocumented)
- error: Error | IHttpFetchError;
-}
-
-// @public
-export interface HttpFetchOptions extends HttpRequestInit {
- headers?: HttpHeadersInit;
- prependBasePath?: boolean;
- query?: HttpFetchQuery;
-}
-
-// @public (undocumented)
-export interface HttpFetchQuery {
- // (undocumented)
- [key: string]: string | number | boolean | undefined;
-}
-
-// @public
-export type HttpHandler = (path: string, options?: HttpFetchOptions) => Promise;
-
-// @public (undocumented)
-export interface HttpHeadersInit {
- // (undocumented)
- [name: string]: any;
-}
-
-// @public
-export interface HttpInterceptor {
- request?(request: Request, controller: IHttpInterceptController): Promise | Request | void;
- requestError?(httpErrorRequest: HttpErrorRequest, controller: IHttpInterceptController): Promise | Request | void;
- response?(httpResponse: HttpResponse, controller: IHttpInterceptController): Promise | InterceptedHttpResponse | void;
- responseError?(httpErrorResponse: HttpErrorResponse, controller: IHttpInterceptController): Promise | InterceptedHttpResponse | void;
-}
-
-// @public
-export interface HttpRequestInit {
- body?: BodyInit | null;
- cache?: RequestCache;
- credentials?: RequestCredentials;
- // (undocumented)
- headers?: HttpHeadersInit;
- integrity?: string;
- keepalive?: boolean;
- method?: string;
- mode?: RequestMode;
- redirect?: RequestRedirect;
- referrer?: string;
- referrerPolicy?: ReferrerPolicy;
- signal?: AbortSignal | null;
- window?: null;
-}
-
-// @public (undocumented)
-export interface HttpResponse extends InterceptedHttpResponse {
- // (undocumented)
- request: Readonly;
-}
-
-// @public (undocumented)
-export interface HttpServiceBase {
- addLoadingCount(countSource$: Observable): void;
- anonymousPaths: IAnonymousPaths;
- basePath: IBasePath;
- delete: HttpHandler;
- fetch: HttpHandler;
- get: HttpHandler;
- getLoadingCount$(): Observable;
- head: HttpHandler;
- intercept(interceptor: HttpInterceptor): () => void;
- options: HttpHandler;
- patch: HttpHandler;
- post: HttpHandler;
- put: HttpHandler;
- removeAllInterceptors(): void;
- // @internal (undocumented)
- stop(): void;
-}
-
-// @public
-export type HttpSetup = HttpServiceBase;
-
-// @public
-export type HttpStart = HttpServiceBase;
-
-// @public
-export interface I18nStart {
- Context: ({ children }: {
- children: React.ReactNode;
- }) => JSX.Element;
-}
-
-// Warning: (ae-missing-release-tag) "IAnonymousPaths" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
-//
-// @public
-export interface IAnonymousPaths {
- isAnonymous(path: string): boolean;
- register(path: string): void;
-}
-
-// @public
-export interface IBasePath {
- get: () => string;
- prepend: (url: string) => string;
- remove: (url: string) => string;
-}
-
-// @public
-export interface IContextContainer> {
- createHandler(pluginOpaqueId: PluginOpaqueId, handler: THandler): (...rest: HandlerParameters) => ShallowPromise>;
- registerContext>(pluginOpaqueId: PluginOpaqueId, contextName: TContextName, provider: IContextProvider): this;
-}
-
-// @public
-export type IContextProvider, TContextName extends keyof HandlerContextType> = (context: Partial>, ...rest: HandlerParameters) => Promise[TContextName]> | HandlerContextType[TContextName];
-
-// @public (undocumented)
-export interface IHttpFetchError extends Error {
- // (undocumented)
- readonly body?: any;
- // @deprecated (undocumented)
- readonly req: Request;
- // (undocumented)
- readonly request: Request;
- // @deprecated (undocumented)
- readonly res?: Response;
- // (undocumented)
- readonly response?: Response;
-}
-
-// @public
-export interface IHttpInterceptController {
- halt(): void;
- halted: boolean;
-}
-
-// @public (undocumented)
-export interface InterceptedHttpResponse {
- // (undocumented)
- body?: HttpBody;
- // (undocumented)
- response?: Response;
-}
-
-// @public
-export type IToasts = Pick;
-
-// @public @deprecated
-export interface LegacyCoreSetup extends CoreSetup {
- // Warning: (ae-forgotten-export) The symbol "InjectedMetadataSetup" needs to be exported by the entry point index.d.ts
- //
- // @deprecated (undocumented)
- injectedMetadata: InjectedMetadataSetup;
-}
-
-// @public @deprecated
-export interface LegacyCoreStart extends CoreStart {
- // Warning: (ae-forgotten-export) The symbol "InjectedMetadataStart" needs to be exported by the entry point index.d.ts
- //
- // @deprecated (undocumented)
- injectedMetadata: InjectedMetadataStart;
-}
-
-// @public (undocumented)
-export interface LegacyNavLink {
- // (undocumented)
- euiIconType?: string;
- // (undocumented)
- icon?: string;
- // (undocumented)
- id: string;
- // (undocumented)
- order: number;
- // (undocumented)
- title: string;
- // (undocumented)
- url: string;
-}
-
-// @public
-export type MountPoint = (element: HTMLElement) => UnmountCallback;
-
-// @public (undocumented)
-export interface NotificationsSetup {
- // (undocumented)
- toasts: ToastsSetup;
-}
-
-// @public (undocumented)
-export interface NotificationsStart {
- // (undocumented)
- toasts: ToastsStart;
-}
-
-// @public
-export type OverlayBannerMount = (element: HTMLElement) => OverlayBannerUnmount;
-
-// @public (undocumented)
-export interface OverlayBannersStart {
- add(mount: OverlayBannerMount, priority?: number): string;
- // Warning: (ae-forgotten-export) The symbol "OverlayBanner" needs to be exported by the entry point index.d.ts
- //
- // @internal (undocumented)
- get$(): Observable;
- // (undocumented)
- getComponent(): JSX.Element;
- remove(id: string): boolean;
- replace(id: string | undefined, mount: OverlayBannerMount, priority?: number): string;
-}
-
-// @public
-export type OverlayBannerUnmount = () => void;
-
-// @public
-export interface OverlayRef {
- close(): Promise;
- onClose: Promise;
-}
-
-// @public (undocumented)
-export interface OverlayStart {
- // (undocumented)
- banners: OverlayBannersStart;
- // (undocumented)
- openFlyout: (flyoutChildren: React.ReactNode, flyoutProps?: {
- closeButtonAriaLabel?: string;
- 'data-test-subj'?: string;
- }) => OverlayRef;
- // (undocumented)
- openModal: (modalChildren: React.ReactNode, modalProps?: {
- className?: string;
- closeButtonAriaLabel?: string;
- 'data-test-subj'?: string;
- }) => OverlayRef;
-}
-
-// @public (undocumented)
-export interface PackageInfo {
- // (undocumented)
- branch: string;
- // (undocumented)
- buildNum: number;
- // (undocumented)
- buildSha: string;
- // (undocumented)
- dist: boolean;
- // (undocumented)
- version: string;
-}
-
-// @public
-export interface Plugin {
- // (undocumented)
- setup(core: CoreSetup, plugins: TPluginsSetup): TSetup | Promise;
- // (undocumented)
- start(core: CoreStart, plugins: TPluginsStart): TStart | Promise;
- // (undocumented)
- stop?(): void;
-}
-
-// @public
-export type PluginInitializer = (core: PluginInitializerContext) => Plugin;
-
-// @public
-export interface PluginInitializerContext {
- // (undocumented)
- readonly env: {
- mode: Readonly;
- packageInfo: Readonly;
- };
- readonly opaqueId: PluginOpaqueId;
-}
-
-// @public (undocumented)
-export type PluginOpaqueId = symbol;
-
-// Warning: (ae-forgotten-export) The symbol "RecursiveReadonlyArray" needs to be exported by the entry point index.d.ts
-//
-// @public (undocumented)
-export type RecursiveReadonly = T extends (...args: any[]) => any ? T : T extends any[] ? RecursiveReadonlyArray : T extends object ? Readonly<{
- [K in keyof T]: RecursiveReadonly;
-}> : T;
-
-// @public (undocumented)
-export interface SavedObject {
- attributes: T;
- // (undocumented)
- error?: {
- message: string;
- statusCode: number;
- };
- id: string;
- migrationVersion?: SavedObjectsMigrationVersion;
- references: SavedObjectReference[];
- type: string;
- updated_at?: string;
- version?: string;
-}
-
-// @public
-export type SavedObjectAttribute = SavedObjectAttributeSingle | SavedObjectAttributeSingle[];
-
-// @public
-export interface SavedObjectAttributes {
- // (undocumented)
- [key: string]: SavedObjectAttribute;
-}
-
-// @public
-export type SavedObjectAttributeSingle = string | number | boolean | null | undefined | SavedObjectAttributes;
-
-// @public
-export interface SavedObjectReference {
- // (undocumented)
- id: string;
- // (undocumented)
- name: string;
- // (undocumented)
- type: string;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBaseOptions {
- namespace?: string;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBatchResponse {
- // (undocumented)
- savedObjects: Array>;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBulkCreateObject extends SavedObjectsCreateOptions {
- // (undocumented)
- attributes: T;
- // (undocumented)
- type: string;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBulkCreateOptions {
- overwrite?: boolean;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBulkUpdateObject {
- // (undocumented)
- attributes: T;
- // (undocumented)
- id: string;
- // (undocumented)
- references?: SavedObjectReference[];
- // (undocumented)
- type: string;
- // (undocumented)
- version?: string;
-}
-
-// @public (undocumented)
-export interface SavedObjectsBulkUpdateOptions {
- // (undocumented)
- namespace?: string;
-}
-
-// @public
-export class SavedObjectsClient {
- // @internal
- constructor(http: HttpServiceBase);
- bulkCreate: (objects?: SavedObjectsBulkCreateObject[], options?: SavedObjectsBulkCreateOptions) => Promise>;
- bulkGet: (objects?: {
- id: string;
- type: string;
- }[]) => Promise>;
- bulkUpdate(objects?: SavedObjectsBulkUpdateObject[]): Promise>;
- create: (type: string, attributes: T, options?: SavedObjectsCreateOptions) => Promise>;
- delete: (type: string, id: string) => Promise<{}>;
- find: (options: Pick) => Promise>;
- get: (type: string, id: string) => Promise>;
- update(type: string, id: string, attributes: T, { version, migrationVersion, references }?: SavedObjectsUpdateOptions): Promise>;
-}
-
-// @public
-export type SavedObjectsClientContract = PublicMethodsOf;
-
-// @public (undocumented)
-export interface SavedObjectsCreateOptions {
- id?: string;
- migrationVersion?: SavedObjectsMigrationVersion;
- overwrite?: boolean;
- // (undocumented)
- references?: SavedObjectReference[];
-}
-
-// @public (undocumented)
-export interface SavedObjectsFindOptions extends SavedObjectsBaseOptions {
- // (undocumented)
- defaultSearchOperator?: 'AND' | 'OR';
- fields?: string[];
- // (undocumented)
- filter?: string;
- // (undocumented)
- hasReference?: {
- type: string;
- id: string;
- };
- // (undocumented)
- page?: number;
- // (undocumented)
- perPage?: number;
- search?: string;
- searchFields?: string[];
- // (undocumented)
- sortField?: string;
- // (undocumented)
- sortOrder?: string;
- // (undocumented)
- type: string | string[];
-}
-
-// @public
-export interface SavedObjectsFindResponsePublic extends SavedObjectsBatchResponse {
- // (undocumented)
- page: number;
- // (undocumented)
- perPage: number;
- // (undocumented)
- total: number;
-}
-
-// @public
-export interface SavedObjectsMigrationVersion {
- // (undocumented)
- [pluginName: string]: string;
-}
-
-// @public (undocumented)
-export interface SavedObjectsStart {
- // (undocumented)
- client: SavedObjectsClientContract;
-}
-
-// @public (undocumented)
-export interface SavedObjectsUpdateOptions {
- migrationVersion?: SavedObjectsMigrationVersion;
- // (undocumented)
- references?: SavedObjectReference[];
- // (undocumented)
- version?: string;
-}
-
-// @public
-export class SimpleSavedObject {
- constructor(client: SavedObjectsClient, { id, type, version, attributes, error, references, migrationVersion }: SavedObject);
- // (undocumented)
- attributes: T;
- // (undocumented)
- delete(): Promise<{}>;
- // (undocumented)
- error: SavedObject['error'];
- // (undocumented)
- get(key: string): any;
- // (undocumented)
- has(key: string): boolean;
- // (undocumented)
- id: SavedObject['id'];
- // (undocumented)
- migrationVersion: SavedObject['migrationVersion'];
- // (undocumented)
- references: SavedObject['references'];
- // (undocumented)
- save(): Promise>;
- // (undocumented)
- set(key: string, value: any): T;
- // (undocumented)
- type: SavedObject['type'];
- // (undocumented)
- _version?: SavedObject['version'];
-}
-
-// Warning: (ae-missing-release-tag) "Toast" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
-//
-// @public (undocumented)
-export type Toast = ToastInputFields & {
- id: string;
-};
-
-// @public
-export type ToastInput = string | ToastInputFields;
-
-// @public
-export type ToastInputFields = Pick> & {
- title?: string | MountPoint;
- text?: string | MountPoint;
-};
-
-// @public
-export class ToastsApi implements IToasts {
- constructor(deps: {
- uiSettings: UiSettingsClientContract;
- });
- add(toastOrTitle: ToastInput): Toast;
- addDanger(toastOrTitle: ToastInput): Toast;
- addError(error: Error, options: ErrorToastOptions): Toast;
- addSuccess(toastOrTitle: ToastInput): Toast;
- addWarning(toastOrTitle: ToastInput): Toast;
- get$(): Rx.Observable;
- // @internal (undocumented)
- registerOverlays(overlays: OverlayStart): void;
- remove(toastOrId: Toast | string): void;
- }
-
-// @public (undocumented)
-export type ToastsSetup = IToasts;
-
-// @public (undocumented)
-export type ToastsStart = IToasts;
-
-// @public (undocumented)
-export class UiSettingsClient {
- // Warning: (ae-forgotten-export) The symbol "UiSettingsClientParams" needs to be exported by the entry point index.d.ts
- constructor(params: UiSettingsClientParams);
- get$(key: string, defaultOverride?: any): Rx.Observable;
- get(key: string, defaultOverride?: any): any;
- getAll(): Record>;
- getSaved$(): Rx.Observable<{
- key: string;
- newValue: any;
- oldValue: any;
- }>;
- getUpdate$(): Rx.Observable<{
- key: string;
- newValue: any;
- oldValue: any;
- }>;
- getUpdateErrors$(): Rx.Observable;
- isCustom(key: string): boolean;
- isDeclared(key: string): boolean;
- isDefault(key: string): boolean;
- isOverridden(key: string): boolean;
- overrideLocalDefault(key: string, newDefault: any): void;
- remove(key: string): Promise;
- set(key: string, val: any): Promise;
- stop(): void;
- }
-
-// @public
-export type UiSettingsClientContract = PublicMethodsOf;
-
-// @public (undocumented)
-export interface UiSettingsState {
- // (undocumented)
- [key: string]: UiSettingsParams_2 & UserProvidedValues_2;
-}
-
-// @public
-export type UnmountCallback = () => void;
-
-
-```
+## API Report File for "kibana"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import { Breadcrumb } from '@elastic/eui';
+import { EuiGlobalToastListToast } from '@elastic/eui';
+import { IconType } from '@elastic/eui';
+import { Observable } from 'rxjs';
+import React from 'react';
+import * as Rx from 'rxjs';
+import { ShallowPromise } from '@kbn/utility-types';
+import { UiSettingsParams as UiSettingsParams_2 } from 'src/core/server/types';
+import { UserProvidedValues as UserProvidedValues_2 } from 'src/core/server/types';
+
+// @public
+export interface App extends AppBase {
+ mount: (context: AppMountContext, params: AppMountParameters) => AppUnmount | Promise;
+}
+
+// @public (undocumented)
+export interface AppBase {
+ capabilities?: Partial;
+ euiIconType?: string;
+ icon?: string;
+ // (undocumented)
+ id: string;
+ order?: number;
+ title: string;
+ tooltip$?: Observable;
+}
+
+// @public (undocumented)
+export interface ApplicationSetup {
+ register(app: App): void;
+ registerMountContext(contextName: T, provider: IContextProvider): void;
+}
+
+// @public (undocumented)
+export interface ApplicationStart {
+ capabilities: RecursiveReadonly;
+ getUrlForApp(appId: string, options?: {
+ path?: string;
+ }): string;
+ navigateToApp(appId: string, options?: {
+ path?: string;
+ state?: any;
+ }): void;
+ registerMountContext(contextName: T, provider: IContextProvider): void;
+}
+
+// @public
+export interface AppMountContext {
+ core: {
+ application: Pick;
+ chrome: ChromeStart;
+ docLinks: DocLinksStart;
+ http: HttpStart;
+ i18n: I18nStart;
+ notifications: NotificationsStart;
+ overlays: OverlayStart;
+ uiSettings: UiSettingsClientContract;
+ injectedMetadata: {
+ getInjectedVar: (name: string, defaultValue?: any) => unknown;
+ };
+ };
+}
+
+// @public (undocumented)
+export interface AppMountParameters {
+ appBasePath: string;
+ element: HTMLElement;
+}
+
+// @public
+export type AppUnmount = () => void;
+
+// @public
+export interface Capabilities {
+ [key: string]: Record>;
+ catalogue: Record;
+ management: {
+ [sectionId: string]: Record;
+ };
+ navLinks: Record;
+}
+
+// @public (undocumented)
+export interface ChromeBadge {
+ // (undocumented)
+ iconType?: IconType;
+ // (undocumented)
+ text: string;
+ // (undocumented)
+ tooltip: string;
+}
+
+// @public (undocumented)
+export interface ChromeBrand {
+ // (undocumented)
+ logo?: string;
+ // (undocumented)
+ smallLogo?: string;
+}
+
+// @public (undocumented)
+export type ChromeBreadcrumb = Breadcrumb;
+
+// @public
+export interface ChromeDocTitle {
+ // @internal (undocumented)
+ __legacy: {
+ setBaseTitle(baseTitle: string): void;
+ };
+ change(newTitle: string | string[]): void;
+ reset(): void;
+}
+
+// @public (undocumented)
+export type ChromeHelpExtension = (element: HTMLDivElement) => () => void;
+
+// @public (undocumented)
+export interface ChromeNavControl {
+ // (undocumented)
+ mount(targetDomElement: HTMLElement): () => void;
+ // (undocumented)
+ order?: number;
+}
+
+// @public
+export interface ChromeNavControls {
+ // @internal (undocumented)
+ getLeft$(): Observable;
+ // @internal (undocumented)
+ getRight$(): Observable;
+ registerLeft(navControl: ChromeNavControl): void;
+ registerRight(navControl: ChromeNavControl): void;
+}
+
+// @public (undocumented)
+export interface ChromeNavLink {
+ // @deprecated
+ readonly active?: boolean;
+ readonly baseUrl: string;
+ // @deprecated
+ readonly disabled?: boolean;
+ readonly euiIconType?: string;
+ readonly hidden?: boolean;
+ readonly icon?: string;
+ readonly id: string;
+ // @internal
+ readonly legacy: boolean;
+ // @deprecated
+ readonly linkToLastSubUrl?: boolean;
+ readonly order?: number;
+ // @deprecated
+ readonly subUrlBase?: string;
+ readonly title: string;
+ readonly tooltip?: string;
+ // @deprecated
+ readonly url?: string;
+}
+
+// @public
+export interface ChromeNavLinks {
+ enableForcedAppSwitcherNavigation(): void;
+ get(id: string): ChromeNavLink | undefined;
+ getAll(): Array>;
+ getForceAppSwitcherNavigation$(): Observable;
+ getNavLinks$(): Observable>>;
+ has(id: string): boolean;
+ showOnly(id: string): void;
+ update(id: string, values: ChromeNavLinkUpdateableFields): ChromeNavLink | undefined;
+}
+
+// @public (undocumented)
+export type ChromeNavLinkUpdateableFields = Partial>;
+
+// @public
+export interface ChromeRecentlyAccessed {
+ // Warning: (ae-unresolved-link) The @link reference could not be resolved: No member was found with name "basePath"
+ add(link: string, label: string, id: string): void;
+ get$(): Observable;
+ get(): ChromeRecentlyAccessedHistoryItem[];
+}
+
+// @public (undocumented)
+export interface ChromeRecentlyAccessedHistoryItem {
+ // (undocumented)
+ id: string;
+ // (undocumented)
+ label: string;
+ // (undocumented)
+ link: string;
+}
+
+// @public
+export interface ChromeStart {
+ addApplicationClass(className: string): void;
+ docTitle: ChromeDocTitle;
+ getApplicationClasses$(): Observable;
+ getBadge$(): Observable;
+ getBrand$(): Observable;
+ getBreadcrumbs$(): Observable;
+ getHelpExtension$(): Observable;
+ getIsCollapsed$(): Observable;
+ getIsVisible$(): Observable;
+ navControls: ChromeNavControls;
+ navLinks: ChromeNavLinks;
+ recentlyAccessed: ChromeRecentlyAccessed;
+ removeApplicationClass(className: string): void;
+ setAppTitle(appTitle: string): void;
+ setBadge(badge?: ChromeBadge): void;
+ setBrand(brand: ChromeBrand): void;
+ setBreadcrumbs(newBreadcrumbs: ChromeBreadcrumb[]): void;
+ setHelpExtension(helpExtension?: ChromeHelpExtension): void;
+ setIsCollapsed(isCollapsed: boolean): void;
+ setIsVisible(isVisible: boolean): void;
+}
+
+// @public
+export interface ContextSetup {
+ createContextContainer>(): IContextContainer;
+}
+
+// @internal (undocumented)
+export interface CoreContext {
+ // Warning: (ae-forgotten-export) The symbol "CoreId" needs to be exported by the entry point index.d.ts
+ //
+ // (undocumented)
+ coreId: CoreId;
+ // (undocumented)
+ env: {
+ mode: Readonly;
+ packageInfo: Readonly;
+ };
+}
+
+// @public
+export interface CoreSetup {
+ // (undocumented)
+ application: ApplicationSetup;
+ // (undocumented)
+ context: ContextSetup;
+ // (undocumented)
+ fatalErrors: FatalErrorsSetup;
+ // (undocumented)
+ http: HttpSetup;
+ // @deprecated
+ injectedMetadata: {
+ getInjectedVar: (name: string, defaultValue?: any) => unknown;
+ };
+ // (undocumented)
+ notifications: NotificationsSetup;
+ // (undocumented)
+ uiSettings: UiSettingsClientContract;
+}
+
+// @public
+export interface CoreStart {
+ // (undocumented)
+ application: ApplicationStart;
+ // (undocumented)
+ chrome: ChromeStart;
+ // (undocumented)
+ docLinks: DocLinksStart;
+ // (undocumented)
+ http: HttpStart;
+ // (undocumented)
+ i18n: I18nStart;
+ // @deprecated
+ injectedMetadata: {
+ getInjectedVar: (name: string, defaultValue?: any) => unknown;
+ };
+ // (undocumented)
+ notifications: NotificationsStart;
+ // (undocumented)
+ overlays: OverlayStart;
+ // (undocumented)
+ savedObjects: SavedObjectsStart;
+ // (undocumented)
+ uiSettings: UiSettingsClientContract;
+}
+
+// @internal
+export class CoreSystem {
+ // Warning: (ae-forgotten-export) The symbol "Params" needs to be exported by the entry point index.d.ts
+ constructor(params: Params);
+ // (undocumented)
+ setup(): Promise<{
+ fatalErrors: FatalErrorsSetup;
+ } | undefined>;
+ // (undocumented)
+ start(): Promise;
+ // (undocumented)
+ stop(): void;
+ }
+
+// @public (undocumented)
+export interface DocLinksStart {
+ // (undocumented)
+ readonly DOC_LINK_VERSION: string;
+ // (undocumented)
+ readonly ELASTIC_WEBSITE_URL: string;
+ // (undocumented)
+ readonly links: {
+ readonly filebeat: {
+ readonly base: string;
+ readonly installation: string;
+ readonly configuration: string;
+ readonly elasticsearchOutput: string;
+ readonly startup: string;
+ readonly exportedFields: string;
+ };
+ readonly auditbeat: {
+ readonly base: string;
+ };
+ readonly metricbeat: {
+ readonly base: string;
+ };
+ readonly heartbeat: {
+ readonly base: string;
+ };
+ readonly logstash: {
+ readonly base: string;
+ };
+ readonly functionbeat: {
+ readonly base: string;
+ };
+ readonly winlogbeat: {
+ readonly base: string;
+ };
+ readonly aggs: {
+ readonly date_histogram: string;
+ readonly date_range: string;
+ readonly filter: string;
+ readonly filters: string;
+ readonly geohash_grid: string;
+ readonly histogram: string;
+ readonly ip_range: string;
+ readonly range: string;
+ readonly significant_terms: string;
+ readonly terms: string;
+ readonly avg: string;
+ readonly avg_bucket: string;
+ readonly max_bucket: string;
+ readonly min_bucket: string;
+ readonly sum_bucket: string;
+ readonly cardinality: string;
+ readonly count: string;
+ readonly cumulative_sum: string;
+ readonly derivative: string;
+ readonly geo_bounds: string;
+ readonly geo_centroid: string;
+ readonly max: string;
+ readonly median: string;
+ readonly min: string;
+ readonly moving_avg: string;
+ readonly percentile_ranks: string;
+ readonly serial_diff: string;
+ readonly std_dev: string;
+ readonly sum: string;
+ readonly top_hits: string;
+ };
+ readonly scriptedFields: {
+ readonly scriptFields: string;
+ readonly scriptAggs: string;
+ readonly painless: string;
+ readonly painlessApi: string;
+ readonly painlessSyntax: string;
+ readonly luceneExpressions: string;
+ };
+ readonly indexPatterns: {
+ readonly loadingData: string;
+ readonly introduction: string;
+ };
+ readonly kibana: string;
+ readonly siem: string;
+ readonly query: {
+ readonly luceneQuerySyntax: string;
+ readonly queryDsl: string;
+ readonly kueryQuerySyntax: string;
+ };
+ readonly date: {
+ readonly dateMath: string;
+ };
+ };
+}
+
+// @public (undocumented)
+export interface EnvironmentMode {
+ // (undocumented)
+ dev: boolean;
+ // (undocumented)
+ name: 'development' | 'production';
+ // (undocumented)
+ prod: boolean;
+}
+
+// @public
+export interface ErrorToastOptions {
+ title: string;
+ toastMessage?: string;
+}
+
+// @public
+export interface FatalErrorInfo {
+ // (undocumented)
+ message: string;
+ // (undocumented)
+ stack: string | undefined;
+}
+
+// @public
+export interface FatalErrorsSetup {
+ add: (error: string | Error, source?: string) => never;
+ get$: () => Rx.Observable;
+}
+
+// @public
+export type HandlerContextType> = T extends HandlerFunction ? U : never;
+
+// @public
+export type HandlerFunction = (context: T, ...args: any[]) => any;
+
+// @public
+export type HandlerParameters> = T extends (context: any, ...args: infer U) => any ? U : never;
+
+// @public (undocumented)
+export type HttpBody = BodyInit | null | any;
+
+// @public (undocumented)
+export interface HttpErrorRequest {
+ // (undocumented)
+ error: Error;
+ // (undocumented)
+ request: Request;
+}
+
+// @public (undocumented)
+export interface HttpErrorResponse extends HttpResponse {
+ // (undocumented)
+ error: Error | IHttpFetchError;
+}
+
+// @public
+export interface HttpFetchOptions extends HttpRequestInit {
+ headers?: HttpHeadersInit;
+ prependBasePath?: boolean;
+ query?: HttpFetchQuery;
+}
+
+// @public (undocumented)
+export interface HttpFetchQuery {
+ // (undocumented)
+ [key: string]: string | number | boolean | undefined;
+}
+
+// @public
+export type HttpHandler = (path: string, options?: HttpFetchOptions) => Promise;
+
+// @public (undocumented)
+export interface HttpHeadersInit {
+ // (undocumented)
+ [name: string]: any;
+}
+
+// @public
+export interface HttpInterceptor {
+ request?(request: Request, controller: IHttpInterceptController): Promise | Request | void;
+ requestError?(httpErrorRequest: HttpErrorRequest, controller: IHttpInterceptController): Promise | Request | void;
+ response?(httpResponse: HttpResponse, controller: IHttpInterceptController): Promise | InterceptedHttpResponse | void;
+ responseError?(httpErrorResponse: HttpErrorResponse, controller: IHttpInterceptController): Promise | InterceptedHttpResponse | void;
+}
+
+// @public
+export interface HttpRequestInit {
+ body?: BodyInit | null;
+ cache?: RequestCache;
+ credentials?: RequestCredentials;
+ // (undocumented)
+ headers?: HttpHeadersInit;
+ integrity?: string;
+ keepalive?: boolean;
+ method?: string;
+ mode?: RequestMode;
+ redirect?: RequestRedirect;
+ referrer?: string;
+ referrerPolicy?: ReferrerPolicy;
+ signal?: AbortSignal | null;
+ window?: null;
+}
+
+// @public (undocumented)
+export interface HttpResponse extends InterceptedHttpResponse {
+ // (undocumented)
+ request: Readonly;
+}
+
+// @public (undocumented)
+export interface HttpServiceBase {
+ addLoadingCount(countSource$: Observable): void;
+ anonymousPaths: IAnonymousPaths;
+ basePath: IBasePath;
+ delete: HttpHandler;
+ fetch: HttpHandler;
+ get: HttpHandler;
+ getLoadingCount$(): Observable;
+ head: HttpHandler;
+ intercept(interceptor: HttpInterceptor): () => void;
+ options: HttpHandler;
+ patch: HttpHandler;
+ post: HttpHandler;
+ put: HttpHandler;
+ removeAllInterceptors(): void;
+ // @internal (undocumented)
+ stop(): void;
+}
+
+// @public
+export type HttpSetup = HttpServiceBase;
+
+// @public
+export type HttpStart = HttpServiceBase;
+
+// @public
+export interface I18nStart {
+ Context: ({ children }: {
+ children: React.ReactNode;
+ }) => JSX.Element;
+}
+
+// Warning: (ae-missing-release-tag) "IAnonymousPaths" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
+//
+// @public
+export interface IAnonymousPaths {
+ isAnonymous(path: string): boolean;
+ register(path: string): void;
+}
+
+// @public
+export interface IBasePath {
+ get: () => string;
+ prepend: (url: string) => string;
+ remove: (url: string) => string;
+}
+
+// @public
+export interface IContextContainer> {
+ createHandler(pluginOpaqueId: PluginOpaqueId, handler: THandler): (...rest: HandlerParameters) => ShallowPromise>;
+ registerContext>(pluginOpaqueId: PluginOpaqueId, contextName: TContextName, provider: IContextProvider): this;
+}
+
+// @public
+export type IContextProvider, TContextName extends keyof HandlerContextType> = (context: Partial>, ...rest: HandlerParameters) => Promise[TContextName]> | HandlerContextType[TContextName];
+
+// @public (undocumented)
+export interface IHttpFetchError extends Error {
+ // (undocumented)
+ readonly body?: any;
+ // @deprecated (undocumented)
+ readonly req: Request;
+ // (undocumented)
+ readonly request: Request;
+ // @deprecated (undocumented)
+ readonly res?: Response;
+ // (undocumented)
+ readonly response?: Response;
+}
+
+// @public
+export interface IHttpInterceptController {
+ halt(): void;
+ halted: boolean;
+}
+
+// @public (undocumented)
+export interface InterceptedHttpResponse {
+ // (undocumented)
+ body?: HttpBody;
+ // (undocumented)
+ response?: Response;
+}
+
+// @public
+export type IToasts = Pick;
+
+// @public @deprecated
+export interface LegacyCoreSetup extends CoreSetup {
+ // Warning: (ae-forgotten-export) The symbol "InjectedMetadataSetup" needs to be exported by the entry point index.d.ts
+ //
+ // @deprecated (undocumented)
+ injectedMetadata: InjectedMetadataSetup;
+}
+
+// @public @deprecated
+export interface LegacyCoreStart extends CoreStart {
+ // Warning: (ae-forgotten-export) The symbol "InjectedMetadataStart" needs to be exported by the entry point index.d.ts
+ //
+ // @deprecated (undocumented)
+ injectedMetadata: InjectedMetadataStart;
+}
+
+// @public (undocumented)
+export interface LegacyNavLink {
+ // (undocumented)
+ euiIconType?: string;
+ // (undocumented)
+ icon?: string;
+ // (undocumented)
+ id: string;
+ // (undocumented)
+ order: number;
+ // (undocumented)
+ title: string;
+ // (undocumented)
+ url: string;
+}
+
+// @public
+export type MountPoint = (element: HTMLElement) => UnmountCallback;
+
+// @public (undocumented)
+export interface NotificationsSetup {
+ // (undocumented)
+ toasts: ToastsSetup;
+}
+
+// @public (undocumented)
+export interface NotificationsStart {
+ // (undocumented)
+ toasts: ToastsStart;
+}
+
+// @public (undocumented)
+export interface OverlayBannersStart {
+ add(mount: MountPoint, priority?: number): string;
+ // Warning: (ae-forgotten-export) The symbol "OverlayBanner" needs to be exported by the entry point index.d.ts
+ //
+ // @internal (undocumented)
+ get$(): Observable;
+ // (undocumented)
+ getComponent(): JSX.Element;
+ remove(id: string): boolean;
+ replace(id: string | undefined, mount: MountPoint, priority?: number): string;
+}
+
+// @public
+export interface OverlayRef {
+ close(): Promise;
+ onClose: Promise;
+}
+
+// @public (undocumented)
+export interface OverlayStart {
+ // (undocumented)
+ banners: OverlayBannersStart;
+ // (undocumented)
+ openFlyout: (flyoutChildren: React.ReactNode, flyoutProps?: {
+ closeButtonAriaLabel?: string;
+ 'data-test-subj'?: string;
+ }) => OverlayRef;
+ // (undocumented)
+ openModal: (modalChildren: React.ReactNode, modalProps?: {
+ className?: string;
+ closeButtonAriaLabel?: string;
+ 'data-test-subj'?: string;
+ }) => OverlayRef;
+}
+
+// @public (undocumented)
+export interface PackageInfo {
+ // (undocumented)
+ branch: string;
+ // (undocumented)
+ buildNum: number;
+ // (undocumented)
+ buildSha: string;
+ // (undocumented)
+ dist: boolean;
+ // (undocumented)
+ version: string;
+}
+
+// @public
+export interface Plugin {
+ // (undocumented)
+ setup(core: CoreSetup, plugins: TPluginsSetup): TSetup | Promise;
+ // (undocumented)
+ start(core: CoreStart, plugins: TPluginsStart): TStart | Promise;
+ // (undocumented)
+ stop?(): void;
+}
+
+// @public
+export type PluginInitializer = (core: PluginInitializerContext) => Plugin;
+
+// @public
+export interface PluginInitializerContext {
+ // (undocumented)
+ readonly env: {
+ mode: Readonly;
+ packageInfo: Readonly;
+ };
+ readonly opaqueId: PluginOpaqueId;
+}
+
+// @public (undocumented)
+export type PluginOpaqueId = symbol;
+
+// Warning: (ae-forgotten-export) The symbol "RecursiveReadonlyArray" needs to be exported by the entry point index.d.ts
+//
+// @public (undocumented)
+export type RecursiveReadonly = T extends (...args: any[]) => any ? T : T extends any[] ? RecursiveReadonlyArray : T extends object ? Readonly<{
+ [K in keyof T]: RecursiveReadonly;
+}> : T;
+
+// @public (undocumented)
+export interface SavedObject {
+ attributes: T;
+ // (undocumented)
+ error?: {
+ message: string;
+ statusCode: number;
+ };
+ id: string;
+ migrationVersion?: SavedObjectsMigrationVersion;
+ references: SavedObjectReference[];
+ type: string;
+ updated_at?: string;
+ version?: string;
+}
+
+// @public
+export type SavedObjectAttribute = SavedObjectAttributeSingle | SavedObjectAttributeSingle[];
+
+// @public
+export interface SavedObjectAttributes {
+ // (undocumented)
+ [key: string]: SavedObjectAttribute;
+}
+
+// @public
+export type SavedObjectAttributeSingle = string | number | boolean | null | undefined | SavedObjectAttributes;
+
+// @public
+export interface SavedObjectReference {
+ // (undocumented)
+ id: string;
+ // (undocumented)
+ name: string;
+ // (undocumented)
+ type: string;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBaseOptions {
+ namespace?: string;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBatchResponse {
+ // (undocumented)
+ savedObjects: Array>;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBulkCreateObject extends SavedObjectsCreateOptions {
+ // (undocumented)
+ attributes: T;
+ // (undocumented)
+ type: string;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBulkCreateOptions {
+ overwrite?: boolean;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBulkUpdateObject {
+ // (undocumented)
+ attributes: T;
+ // (undocumented)
+ id: string;
+ // (undocumented)
+ references?: SavedObjectReference[];
+ // (undocumented)
+ type: string;
+ // (undocumented)
+ version?: string;
+}
+
+// @public (undocumented)
+export interface SavedObjectsBulkUpdateOptions {
+ // (undocumented)
+ namespace?: string;
+}
+
+// @public
+export class SavedObjectsClient {
+ // @internal
+ constructor(http: HttpServiceBase);
+ bulkCreate: (objects?: SavedObjectsBulkCreateObject[], options?: SavedObjectsBulkCreateOptions) => Promise>;
+ bulkGet: (objects?: {
+ id: string;
+ type: string;
+ }[]) => Promise>;
+ bulkUpdate(objects?: SavedObjectsBulkUpdateObject[]): Promise>;
+ create: (type: string, attributes: T, options?: SavedObjectsCreateOptions) => Promise>;
+ delete: (type: string, id: string) => Promise<{}>;
+ find: (options: Pick) => Promise>;
+ get: (type: string, id: string) => Promise>;
+ update(type: string, id: string, attributes: T, { version, migrationVersion, references }?: SavedObjectsUpdateOptions): Promise>;
+}
+
+// @public
+export type SavedObjectsClientContract = PublicMethodsOf;
+
+// @public (undocumented)
+export interface SavedObjectsCreateOptions {
+ id?: string;
+ migrationVersion?: SavedObjectsMigrationVersion;
+ overwrite?: boolean;
+ // (undocumented)
+ references?: SavedObjectReference[];
+}
+
+// @public (undocumented)
+export interface SavedObjectsFindOptions extends SavedObjectsBaseOptions {
+ // (undocumented)
+ defaultSearchOperator?: 'AND' | 'OR';
+ fields?: string[];
+ // (undocumented)
+ filter?: string;
+ // (undocumented)
+ hasReference?: {
+ type: string;
+ id: string;
+ };
+ // (undocumented)
+ page?: number;
+ // (undocumented)
+ perPage?: number;
+ search?: string;
+ searchFields?: string[];
+ // (undocumented)
+ sortField?: string;
+ // (undocumented)
+ sortOrder?: string;
+ // (undocumented)
+ type: string | string[];
+}
+
+// @public
+export interface SavedObjectsFindResponsePublic extends SavedObjectsBatchResponse {
+ // (undocumented)
+ page: number;
+ // (undocumented)
+ perPage: number;
+ // (undocumented)
+ total: number;
+}
+
+// @public
+export interface SavedObjectsMigrationVersion {
+ // (undocumented)
+ [pluginName: string]: string;
+}
+
+// @public (undocumented)
+export interface SavedObjectsStart {
+ // (undocumented)
+ client: SavedObjectsClientContract;
+}
+
+// @public (undocumented)
+export interface SavedObjectsUpdateOptions {
+ migrationVersion?: SavedObjectsMigrationVersion;
+ // (undocumented)
+ references?: SavedObjectReference[];
+ // (undocumented)
+ version?: string;
+}
+
+// @public
+export class SimpleSavedObject {
+ constructor(client: SavedObjectsClient, { id, type, version, attributes, error, references, migrationVersion }: SavedObject);
+ // (undocumented)
+ attributes: T;
+ // (undocumented)
+ delete(): Promise<{}>;
+ // (undocumented)
+ error: SavedObject['error'];
+ // (undocumented)
+ get(key: string): any;
+ // (undocumented)
+ has(key: string): boolean;
+ // (undocumented)
+ id: SavedObject['id'];
+ // (undocumented)
+ migrationVersion: SavedObject['migrationVersion'];
+ // (undocumented)
+ references: SavedObject['references'];
+ // (undocumented)
+ save(): Promise>;
+ // (undocumented)
+ set(key: string, value: any): T;
+ // (undocumented)
+ type: SavedObject['type'];
+ // (undocumented)
+ _version?: SavedObject['version'];
+}
+
+// Warning: (ae-missing-release-tag) "Toast" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
+//
+// @public (undocumented)
+export type Toast = ToastInputFields & {
+ id: string;
+};
+
+// @public
+export type ToastInput = string | ToastInputFields;
+
+// @public
+export type ToastInputFields = Pick> & {
+ title?: string | MountPoint;
+ text?: string | MountPoint;
+};
+
+// @public
+export class ToastsApi implements IToasts {
+ constructor(deps: {
+ uiSettings: UiSettingsClientContract;
+ });
+ add(toastOrTitle: ToastInput): Toast;
+ addDanger(toastOrTitle: ToastInput): Toast;
+ addError(error: Error, options: ErrorToastOptions): Toast;
+ addSuccess(toastOrTitle: ToastInput): Toast;
+ addWarning(toastOrTitle: ToastInput): Toast;
+ get$(): Rx.Observable;
+ // @internal (undocumented)
+ registerOverlays(overlays: OverlayStart): void;
+ remove(toastOrId: Toast | string): void;
+ }
+
+// @public (undocumented)
+export type ToastsSetup = IToasts;
+
+// @public (undocumented)
+export type ToastsStart = IToasts;
+
+// @public (undocumented)
+export class UiSettingsClient {
+ // Warning: (ae-forgotten-export) The symbol "UiSettingsClientParams" needs to be exported by the entry point index.d.ts
+ constructor(params: UiSettingsClientParams);
+ get$(key: string, defaultOverride?: any): Rx.Observable;
+ get(key: string, defaultOverride?: any): any;
+ getAll(): Record>;
+ getSaved$(): Rx.Observable<{
+ key: string;
+ newValue: any;
+ oldValue: any;
+ }>;
+ getUpdate$(): Rx.Observable<{
+ key: string;
+ newValue: any;
+ oldValue: any;
+ }>;
+ getUpdateErrors$(): Rx.Observable;
+ isCustom(key: string): boolean;
+ isDeclared(key: string): boolean;
+ isDefault(key: string): boolean;
+ isOverridden(key: string): boolean;
+ overrideLocalDefault(key: string, newDefault: any): void;
+ remove(key: string): Promise;
+ set(key: string, val: any): Promise;
+ stop(): void;
+ }
+
+// @public
+export type UiSettingsClientContract = PublicMethodsOf;
+
+// @public (undocumented)
+export interface UiSettingsState {
+ // (undocumented)
+ [key: string]: UiSettingsParams_2 & UserProvidedValues_2;
+}
+
+// @public
+export type UnmountCallback = () => void;
+
+
+```