import { ValueOrOnDemand } from '../models';
/**
 * Returns the value and a loading indicator
 * @param input the text or function to retrieve the text
 * @param onError a callback that will be called when the input could not be retrieved. It should return a fallback value that will be used instead.
 */
export declare const useValueOrOnDemand: (input?: ValueOrOnDemand, onError?: (err: any) => string) => readonly [string, boolean];
//# sourceMappingURL=useValueOrOnDemand.d.ts.map