import type { ImageSourcePropType } from 'react-native'; import type { PaletteSwatchOptions, PaletteSwatch } from './types'; /** * A hook to get a palette swatch from an image source. * * Returns `undefined` while loading or if generation fails. * * To preload palettes, call `createPalette` or `createPaletteForTarget` * ahead of time with the same image and options. * * @param source - The image source to extract colors from. * @param options - Options for palette generation. * @returns The palette swatch, or `undefined` if loading or on error. */ export declare function usePaletteSwatch(source: ImageSourcePropType | undefined, options: PaletteSwatchOptions): PaletteSwatch | undefined; //# sourceMappingURL=usePaletteSwatch.d.ts.map