import { type ComponentType } from "react"; import { type IDashboard } from "@gooddata/sdk-model"; import { type GoodDataSdkError } from "@gooddata/sdk-ui"; /** * @alpha */ export interface ISaveAsDialogProps { /** * Is SaveAs dialog visible? */ isVisible?: boolean; /** * Callback to be called, when user submits the save as dialog. */ onSubmit?: (title: string, switchToCopy?: boolean) => void; /** * Callback to be called, when user closes the save as dialog. */ onCancel?: () => void; /** * Callback to be called, when error occurs. */ onError?: (error: GoodDataSdkError) => void; /** * Callback to be called, when save as finished successfully. */ onSuccess?: (dashboard: IDashboard) => void; } /** * @alpha */ export type CustomSaveAsDialogComponent = ComponentType; //# sourceMappingURL=types.d.ts.map