import { type ComponentType } from "react"; import { type ILoadingProps } from "@gooddata/sdk-ui"; import { type LoadingComponentProvider, type OptionalLoadingComponentProvider } from "../../presentation/dashboardContexts/types.js"; import { type ILoadingCustomizer } from "../customizer.js"; import { type IDashboardCustomizationLogger } from "./customizationLogging.js"; import { type CustomizerMutationsContext } from "./types.js"; interface ILoadingCustomizerResult { LoadingComponent: ComponentType | undefined; } /** * Default implementation of the Loading rendering customizer. Notice that the state of the customizations * is kept separate from this class. * * This code is responsible for creation of the providers (if needed) and then updating the state * accordingly. The customizer state methods are responsible for doing correct updates of the state itself. This * decoupling is in place so that it is possible to seal the state and prevent write operations from some point * onward. See {@link SealedLoadingCustomizerState} for more motivation behind this. * * @internal */ export declare class DefaultLoadingCustomizer implements ILoadingCustomizer { private readonly logger; private readonly mutationContext; private state; private updated; constructor(logger: IDashboardCustomizationLogger, mutationContext: CustomizerMutationsContext, defaultProvider?: LoadingComponentProvider); withCustomProvider: (provider: (props: ILoadingProps) => ComponentType | undefined) => ILoadingCustomizer; withCustomDecorator(providerFactory: (next: LoadingComponentProvider) => OptionalLoadingComponentProvider): ILoadingCustomizer; getCustomizerResult: () => ILoadingCustomizerResult; sealCustomizer: () => void; } export {}; //# sourceMappingURL=loadingCustomizer.d.ts.map