@wix/design-system
Version:
@wix/design-system
16 lines • 831 B
TypeScript
import { RefObject } from 'react';
import type { UseControlledStateOutput } from './types';
type AnyFunction = (...args: any[]) => unknown;
export declare const noop: () => void;
export declare function getElementHeight(el: RefObject<HTMLElement> | {
current?: {
scrollHeight: number;
};
}): string | number;
export declare const callAll: (...fns: AnyFunction[]) => (...args: any[]) => void;
export declare function getAutoHeightDuration(height: number | string): number;
export declare function useControlledState(isExpanded?: boolean, defaultExpanded?: boolean): UseControlledStateOutput;
export declare function useEffectAfterMount(cb: () => void, dependencies: unknown[]): void;
export declare function useUniqueId(idFromProps?: string | null): string | undefined;
export {};
//# sourceMappingURL=utils.d.ts.map