import { Provider, Type } from '@angular/core';
import { DefaultsOverride, DynamicItemLoaderValidatorFn } from '@anglr/dynamic';
import type { RelationsModuleTypes, RelationsNodeDef } from './types';
import { StaticComponentsRegister } from '../services';
/**
 * Clamps number between two values
 * @param num - Number to clamp
 * @param min - Minimum value
 * @param max - Maximum value
 */
export declare function clamp(num: number, min: number, max: number): number;
/**
 * Checks whether data is relations module types
 * @param data - Data to be checked
 */
export declare const isRelationsModuleTypes: DynamicItemLoaderValidatorFn<RelationsModuleTypes>;
/**
 * Checks whether data is relations node def
 * @param data - Data to be checked
 */
export declare const isRelationsNodeDef: DynamicItemLoaderValidatorFn<RelationsNodeDef>;
/**
 * Default providers for relations editor subpackage
 */
export declare function provideRelationsEditor(): Provider[];
/**
 * Providers for relations editor subpackage, with support of static components
 * @param staticRegister - Type that represents implementation of static components register
 */
export declare function provideRelationsEditorWithStatic(staticRegister: Type<StaticComponentsRegister>): Provider[];
/**
 * Provider for relations defaults override
 * @param defaultsOverride - Service to pride as relations defaults override
 */
export declare function provideRelationsDefaultOverride(defaultsOverride: Type<DefaultsOverride>): Provider;
/**
 * Transforms any string to colour code
 * @param str - String to be changed to colour code
 */
export declare function stringToColour(str: string): string;
//# sourceMappingURL=utils.d.ts.map