@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
35 lines (34 loc) • 1.39 kB
TypeScript
/**
* Web GlobalStatus Component
*/
import type { MemoExoticComponent } from 'react';
import GlobalStatusProvider from './GlobalStatusProvider';
import type { GlobalStatusAddProps, GlobalStatusInterceptorProps } from './GlobalStatus';
export declare class GlobalStatusInterceptor {
provider: ReturnType<typeof GlobalStatusProvider.init>;
statusId: string | undefined;
constructor(props: GlobalStatusInterceptorProps);
add(props: Partial<GlobalStatusAddProps>): import("./GlobalStatusProvider").GlobalStatusResult;
update(props: Record<string, unknown>): void;
remove(): void;
}
type GlobalStatusControllerProps = {
id?: string;
statusId?: string;
removeOnUnmount?: boolean;
[key: string]: unknown;
};
declare function GlobalStatusControllerComponent(ownProps: GlobalStatusControllerProps): null;
declare const GlobalStatusController: MemoExoticComponent<typeof GlobalStatusControllerComponent> & {
Remove: typeof GlobalStatusRemove;
Update: typeof GlobalStatusController;
};
type GlobalStatusRemovePropsLocal = {
id?: string;
statusId?: string;
[key: string]: unknown;
};
declare function GlobalStatusRemoveComponent(ownProps: GlobalStatusRemovePropsLocal): null;
declare const GlobalStatusRemove: MemoExoticComponent<typeof GlobalStatusRemoveComponent>;
export default GlobalStatusController;
export { GlobalStatusRemove };