export interface EyeDropperOpenOptions { /** * An AbortSignal to cancel the operation. * * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal */ signal?: AbortSignal; } interface EyeDropperConstructor { new (): EyeDropper; } export interface EyeDropper extends EyeDropperConstructor { open: (options?: EyeDropperOpenOptions) => Promise<{ sRGBHex: string; }>; [Symbol.toStringTag]: 'EyeDropper'; } export interface UseEyeDropperOptions { /** * Initial sRGBHex. * * @defaultValue '' */ initialValue?: string; /** * Whether to convert the sRGBHex to uppercase. * * @defaultValue true */ upperCase?: boolean; /** * Whether to keep the leading hash in the sRGBHex. * * @defaultValue true */ keepLeadingHash?: boolean; } export interface UseEyeDropperReturns { /** * Whether the EyeDropper is supported. */ isSupported: boolean; /** * The sRGBHex color value. */ sRGBHex: string; /** * Open the EyeDropper. * * @param options - The open options. */ open: (options?: EyeDropperOpenOptions) => Promise; } /** * A React Hook that allows you to use the eye dropper tool to get the color of a pixel on the screen. */ export declare function useEyeDropper(options?: UseEyeDropperOptions): UseEyeDropperReturns; export {};