import { CCFieldType } from "@protontech/autofill/types"; import type { Fnode } from "@protontech/fathom"; export type CCFieldElement = HTMLInputElement | HTMLSelectElement; export type CCExpirationMonthFormat = { padding: boolean; }; export type CCExpirationYearFormat = { fullYear: boolean; }; export type CCExpirationFormat = { separator: string; fullYear: boolean; monthFirst: boolean; }; type CCFieldMatchParams = { visible: boolean; }; export declare const CC_ATTRIBUTES: string[]; export declare const CC_INPUT_TYPES: string[]; export declare const getExpirationFormat: (field: HTMLElement, allowFallback?: boolean) => CCExpirationFormat | undefined; export declare const formatExpirationDate: (month: string, year: string, { fullYear, separator, monthFirst }: CCExpirationFormat) => string; export declare const getInputExpirationMonthFormat: (input: HTMLInputElement) => CCExpirationMonthFormat; export declare const getInputExpirationYearFormat: (input: HTMLInputElement) => CCExpirationYearFormat; export declare const getSelectExpirationYearFormat: (select: HTMLSelectElement) => CCExpirationYearFormat | undefined; export declare const getSelectExpirationMonthFormat: (select: HTMLSelectElement) => CCExpirationMonthFormat | undefined; export declare const getCCHaystack: (field: HTMLElement) => string; export declare const getCachedCCSubtype: (el: HTMLElement) => CCFieldType | undefined; export declare const getCCFieldType: (field: CCFieldElement) => CCFieldType | undefined; export declare const matchCCFieldCandidate: (input: HTMLInputElement, { visible }: CCFieldMatchParams) => boolean; export declare const isCCSelectField: (fnode: Fnode) => boolean; export {};