mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 12:01:00 +00:00
12 lines
367 B
TypeScript
12 lines
367 B
TypeScript
export interface EyeDropperOpenOptions {
|
|
signal?: AbortSignal;
|
|
}
|
|
export interface EyeDropperOpenReturnType {
|
|
sRGBHex: string;
|
|
}
|
|
export interface UseEyeDropperReturnValue {
|
|
supported: boolean;
|
|
open: (options?: EyeDropperOpenOptions) => Promise<EyeDropperOpenReturnType | undefined>;
|
|
}
|
|
export declare function useEyeDropper(): UseEyeDropperReturnValue;
|