parse.d.ts 434 B

12345678
  1. import { Parsers, ParseResult, Input, Format } from "./types";
  2. export declare const parsers: Parsers;
  3. /** Tries to convert an incoming value into RGBA color by going through all color model parsers */
  4. export declare const parse: (input: Input) => ParseResult | [null, undefined];
  5. /**
  6. * Returns a color model name for the input passed to the function.
  7. */
  8. export declare const getFormat: (input: Input) => Format | undefined;