import { MaybePromise, Nullable, WritableProps } from 'tsdef'; import { FileAction, FileActionEffect } from '../types/action.types'; export declare const NOOP_FUNCTION: (...args: any[]) => void; export declare const isPromise: (value: any) => value is Promise; export declare const defineFileAction: (action: Action, effect?: FileActionEffect) => WritableProps; /** * Recursively check the current element and the parent elements, going bottom-up. * Returns the first element to match the predicate, otherwise returns null if such * element is not found. */ export declare const findElementAmongAncestors: (maybeElement: HTMLElement | any, predicate: (maybeElement: HTMLElement | any) => boolean) => Nullable; export declare const elementIsInsideButton: (buttonCandidate: HTMLElement | any) => boolean; export declare const getValueOrFallback: (value: T | undefined, fallback: T, desiredType?: 'boolean' | 'string' | 'number') => NonNullable;