import dayjs from "dayjs"; import Holidays from "date-holidays"; import { CustomHoliday } from "./types"; /** * Throws error to the console if a US State abbreviation is invalid, otherwise returns true * * @param {string} stateAbbrv: State abbreviation. eg "pa" * @param {Holidays} hd: date-holidays instance * @returns {boolean} returns true if valid US state */ export declare const validateState: (stateAbbrv: string, hd: Holidays) => boolean; /** * Checks that provided date is in valid format and returns date as a dayjs object. * * @param {string| Date | dayjs.Dayjs} inputDate - date to validate * @returns {Dayjs} inputDate converted into Dayjs object. */ export declare const validateDate: (inputDate: string | Date | dayjs.Dayjs) => dayjs.Dayjs; /** * Gets the date-holiday defined 'rule' for a specific holiday. Returns empty string if name isn't found. * * @param {Holidays} hd - Holidays instance * @param {string} holName - name of holiday. eg. "Christmas Day" * @param {string | number | Date} year - year to search, defaults to current year if not provided. * @returns {string} */ export declare const getHolidayRule: (hd: Holidays, holName: string, year?: string | number | Date) => string; /** * Takes a Holidays instance and list of holidays and sets each holiday's type as 'optional' in the instance. * * @param {Holidays} hd - Holidays instance * @param {string[]} arrHols - array of holiday names. eg ["Christmas Day", "New Year's Day"] * @param {string | number | Date} year - year to search, defaults to current year if not provided. * @returns {void} */ export declare const filterHolidays: (hd: Holidays, arrHols: string[], year?: string | number | Date) => void; /** * Takes a Holidays instance and adds a list of custom public holidays. * * @param {Holidays} hd - Holidays instance * @param {CustomHoliday[]} arrHols - list of objects representing custom holidays. * @returns {void} */ export declare const addPublicHolidays: (hd: Holidays, arrHols: CustomHoliday[]) => void;