export declare function withSpinner(text: string, work: () => Promise): Promise;