@uipath/apollo-wind 2.94.1 → 2.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,24 @@
1
+ import type { PortalContainerOverride } from '../portal-container';
2
+ import { type ByoModelDialogLabels } from './labels';
3
+ import type { ByoEditTarget, ByoModelDialogApi, ByoSavedModel } from './types';
4
+ export interface ByoModelDialogProps {
5
+ open: boolean;
6
+ onOpenChange: (open: boolean) => void;
7
+ api: ByoModelDialogApi;
8
+ /** Called once the model passed its test and was saved. The dialog closes itself afterwards. */
9
+ onSaved: (model: ByoSavedModel) => Promise<void> | void;
10
+ /** A saved model to edit. Without it the dialog adds a new model. */
11
+ editing?: ByoEditTarget;
12
+ labels?: Partial<ByoModelDialogLabels>;
13
+ /** Where the dialog portals to; defaults to the nearest `PortalContainerProvider`. */
14
+ container?: PortalContainerOverride;
15
+ }
16
+ /**
17
+ * "Use your own model": pick a provider, reuse a saved connection or create
18
+ * one inline from the provider's credentials, pick a model, name it or pick the
19
+ * UiPath model it replaces, choose the API it is called through, then test and
20
+ * add it. A saved connection can be edited in place. With `editing`, the same
21
+ * steps start from a saved model and save the changes to it.
22
+ * Every call goes through `api`.
23
+ */
24
+ export declare function ByoModelDialog({ open, onOpenChange, ...rest }: ByoModelDialogProps): import("react/jsx-runtime").JSX.Element;