import { ColorName } from "./colors"; export declare const documentStyle: CSSStyleDeclaration; export declare const normalizeColor: (color: string) => string; export declare const getStyle: (className: string) => string; export declare const normalizeFontNames: (fonts: string | null) => string; export declare const transparentize: (color: string, amount: number) => string; export declare const capitalizeString: (str: string) => string; export declare const isFunction: (f: unknown) => f is (...args: never[]) => never; export declare const copyToClipboard: (text: string) => Promise; export declare const EMPTY_IMMUTABLE_ARRAY: readonly []; /** * Helper function returning an empty immutable array. * This can for example be used as a default value for array props when so desired. * Note: Errors will be thrown at runtime when code tries to modify the returned array. * @returns An empty immutable array */ export declare const getEmptyImmutableArray: >() => NonNullable; export declare const EMPTY_IMMUTABLE_OBJECT: Readonly<{}>; /** * Helper function returning an empty immutable object. * This can for example be used as a default value for object props when so desired. * Note: Errors will be thrown at runtime when code tries to modify the returned object. * @returns An empty immutable array */ export declare const getEmptyImmutableObject: >() => NonNullable; export type Nullable = T | null; export type Optional = T | undefined; export interface LabelValuePair { value: T; label: string; } export interface KeyValuePair { key: T; value: K; } export declare const isValidColorName: (color?: string) => color is ColorName; export declare const isLTR: boolean; export declare const isRTL: boolean; //# sourceMappingURL=utils.d.ts.map