export type NewsletterFormError = Readonly<{
    kind: 'field';
    fieldId: string;
    message: string;
}> | Readonly<{
    kind: 'form';
    message: string;
}>;
export declare function newsletterFieldError(fieldId: string, message: string): NewsletterFormError;
export declare function newsletterFormError(message: string): NewsletterFormError;
export declare function getNewsletterFieldError(error: NewsletterFormError | null, fieldId: string): string | null;
export declare function getNewsletterFormError(error: NewsletterFormError | null): string | null;
