import { ValidationRule as SyValidationRule } from '../../composables/validation/useValidation'; import { Ref } from 'vue'; import { locales } from './locales'; import { SyTextField } from '../../main'; import { ValidationRule as VuetifyValidationRule } from 'vuetify'; export type NirValidationProps = { customKeyRules?: SyValidationRule[]; customKeyWarningRules?: SyValidationRule[]; customNumberRules?: SyValidationRule[]; customNumberWarningRules?: SyValidationRule[]; customRulesPrecedence?: boolean; disabled?: boolean; isValidateOnBlur?: boolean; keyLabel?: string; keyRules?: VuetifyValidationRule[]; nirType?: 'simple' | 'complexe'; numberLabel?: string; numberRules?: VuetifyValidationRule[]; readonly?: boolean; required?: boolean; showSuccessMessages?: boolean; useVuetifyValidation?: boolean; }; /** * Handle validation for NIR fields, including both the number and the key */ export declare function useNirValidation(numberValue: Ref, keyValue: Ref, unmaskedNumberValue: Ref, unmaskedKeyValue: Ref, readonly: Ref, disabled: Ref, required: Ref, numberField: Ref | null>, keyField: Ref | null>, customLocale: Ref, numberLabel: Ref, keyLabel: Ref, customNumberRules: Ref, customKeyRules: Ref, customNumberWarningRules: Ref, customKeyWarningRules: Ref, displayKey: Ref, customRulesPrecedence: Ref, nirType: Ref<'simple' | 'complexe'>, label: Ref, showSuccessMessages: Ref, disableErrorHandling: Ref, isValidateOnBlur: Ref, useVuetifyValidation: Ref, vuetifyNumberRules: Ref, vuetifyKeyRules: Ref): { numberValidation: { errors: Ref; warnings: Ref; successes: Ref; hasError: import('vue').ComputedRef; hasWarning: import('vue').ComputedRef; hasSuccess: import('vue').ComputedRef; validate: () => Promise; clearValidation: () => void; } | { errors: import('vue').ComputedRef; warnings: import('vue').ComputedRef; successes: import('vue').ComputedRef; hasError: import('vue').ComputedRef; hasWarning: import('vue').ComputedRef; hasSuccess: import('vue').ComputedRef; validate: () => Promise; clearValidation: () => void; }; keyValidation: { errors: Ref; warnings: Ref; successes: Ref; hasError: import('vue').ComputedRef; hasWarning: import('vue').ComputedRef; hasSuccess: import('vue').ComputedRef; validate: () => Promise; clearValidation: () => void; } | { errors: import('vue').ComputedRef; warnings: import('vue').ComputedRef; successes: import('vue').ComputedRef; hasError: import('vue').ComputedRef; hasWarning: import('vue').ComputedRef; hasSuccess: import('vue').ComputedRef; validate: () => Promise; clearValidation: () => void; }; validateFields: (onBlur?: boolean) => Promise; hasFieldErrors: import('vue').ComputedRef; };