import type { MarkOptional } from 'ts-essentials';
import type { ServerProps } from '../../config/types.js';
import type { ClientField, Field } from '../../fields/config/types.js';
import type { MappedComponent } from '../types.js';
export type GenericErrorProps = {
    readonly CustomError?: MappedComponent;
    readonly alignCaret?: 'center' | 'left' | 'right';
    readonly message?: string;
    readonly path?: string;
    readonly showError?: boolean;
};
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
export type FieldErrorClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
    field: TFieldClient;
} & GenericErrorProps;
export type FieldErrorServerProps<TFieldServer extends Field> = {
    field: TFieldServer;
} & GenericErrorProps & Partial<ServerProps>;
export type FieldErrorClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldErrorClientProps<TFieldClient>>;
export type FieldErrorServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldErrorServerProps<TFieldServer>>;
export {};
//# sourceMappingURL=Error.d.ts.map