import type { AbstractControl } from '@angular/forms';
import type { INgxMatErrorDef } from '../ngx-mat-error-def.directive';
import { ErrorMessages } from '../types';
/**
 * Finds the error key or custom error for a control.
 * @returns INgxMatErrorDef | undefined
 */
export declare function findErrorForControl(control: AbstractControl, messages: ErrorMessages, customErrorMessages: readonly INgxMatErrorDef[]): string | INgxMatErrorDef | undefined;
