import type { EventedMixin } from "../../core/Evented.js";
import type { ResourceHandle } from "../../core/Handles.js";

/**
 * @deprecated
 * @param color
 * @internal
 */
export function toRGB(color: any): any;

/**
 * @deprecated
 * @param color
 * @internal
 */
export function toHSV(color: any): any;

/**
 * @deprecated
 * @param target
 * @param eventName
 * @param callback
 * @internal
 */
export function once(target: EventedMixin | EventTarget, eventName: string, callback: (event: any) => void): ResourceHandle;

/**
 * @deprecated
 * @param target
 * @param eventName
 * @param callback
 * @internal
 */
export function on(target: EventedMixin | EventTarget, eventName: string | string[], callback: (event: any) => void): ResourceHandle;

/**
 * @deprecated
 * @param target
 * @param type
 * @param listener
 * @internal
 */
export function pausable(target: EventedMixin | EventTarget, type: string | string[], listener: (event: any) => void): ResourceHandle & {
    pause(): void;
    resume(): void;
};

/**
 * @deprecated
 * @param name
 * @internal
 */
export function has(name: string): any;

/**
 * @deprecated
 * @param value
 * @param options
 * @internal
 */
export function format(value: number, options?: Record<string, unknown>): string | null;

/**
 * @deprecated
 * @param expression
 * @param options
 * @internal
 */
export function parse(expression: string, options?: Record<string, unknown>): number;