import type { IAutomationMetadataObject, IAutomationMetadataObjectDefinition } from "@gooddata/sdk-model"; import type { DashboardCommands } from "../../../../model/commands/index.js"; import type { DashboardEventType } from "../../../../model/events/base.js"; import type { DashboardEvents } from "../../../../model/events/index.js"; type AutomationInput = IAutomationMetadataObjectDefinition | IAutomationMetadataObject; /** * Wraps a Redux dashboard command in a promise-based API using a single-slot pending ref. * Sanitizes the input via sanitizeAutomationForSave before dispatching the command. * * @internal */ export declare function useCommandAsPromise({ commandCreator, successEvent, resolveWith }: { commandCreator: (input: TIn) => DashboardCommands; successEvent: TSuccessEventType; resolveWith: (event: Extract, input: TIn) => TOut; }): (input: TIn) => Promise; /** * Returns a stable callback that deletes an automation via the backend directly (no Redux command). * * @internal */ export declare function useDeleteAutomation(): (automation: IAutomationMetadataObject) => Promise; export {}; //# sourceMappingURL=useCommandAsPromise.d.ts.map