/** * Runs an async action with a spinner, logging success or failure. * Allows for a custom success message generated from the action's result. * @param text - The initial text to display next to the spinner. * @param action - The async function to execute. * @param getSuccessText - Optional function to generate success text from the result. * @returns The result of the action. */ export declare function runStep(text: string, action: () => Promise, getSuccessText?: (result: T) => string): Promise;