import { z } from "zod";
/** Reason a value looks like script/markup, or `null` when it is clean. */
export declare function markupIssue(value: string): string | null;
/** Normalises whitespace and strips control characters (they corrupt CSV, logs and mail headers). */
export declare function normalizeFreeText(value: string, multiline?: boolean): string;
export type TextFieldOptions = {
    label: string;
    min: number;
    max: number;
    /** Keep newlines and cap blank-line runs instead of collapsing to one line. */
    multiline?: boolean;
};
/** A trimmed, markup-free, length-checked text field. */
export declare function textField(opts: TextFieldOptions): z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
/** Email address: trimmed, lower-cased, length-capped and structurally validated. */
export declare const emailField: z.ZodEffects<z.ZodString, string, string>;
/** Phone: digits plus `+ - ( )` and spaces only. Empty string is allowed (treated as absent). */
export declare const phoneField: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
/** Numeric database id passed in a body (guards `BigInt()` from throwing on garbage). */
export declare function idField(label: string): z.ZodString;
export declare const FEEDBACK_CATEGORY_ENUM: readonly ["complaint", "suggestion", "question", "appreciation"];
/** Full validation for an unauthenticated GRM submission. */
export declare const publicFeedbackSchema: z.ZodObject<{
    trainingProviderId: z.ZodString;
    category: z.ZodEnum<["complaint", "suggestion", "question", "appreciation"]>;
    subject: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
    description: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
    submitterName: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
    submitterEmail: z.ZodEffects<z.ZodString, string, string>;
    submitterPhone: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
    region: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
}, "strip", z.ZodTypeAny, {
    trainingProviderId: string;
    description: string;
    category: "complaint" | "suggestion" | "question" | "appreciation";
    subject: string;
    submitterName: string;
    submitterEmail: string;
    region?: string | undefined;
    submitterPhone?: string | undefined;
}, {
    trainingProviderId: string;
    description: string;
    category: "complaint" | "suggestion" | "question" | "appreciation";
    subject: string;
    submitterName: string;
    submitterEmail: string;
    region?: string | undefined;
    submitterPhone?: string | undefined;
}>;
export type PublicFeedbackInput = z.infer<typeof publicFeedbackSchema>;
/** Body text typed by staff in a GRM reply (also flows into notification emails). */
export declare const feedbackReplyBodyField: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
/** Coerces blank optional strings to `undefined` so `.optional()` accepts them. */
export declare function blankToUndefined(value: unknown): string | undefined;
/** Route params come straight off the URL — never hand them to `BigInt()` unchecked. */
export declare function parseIdParam(value: string | undefined): bigint | null;
export declare const publicFormLimiter: import("express-rate-limit").RateLimitRequestHandler;
export declare const publicSubmitLimiter: import("express-rate-limit").RateLimitRequestHandler;
//# sourceMappingURL=publicInput.d.ts.map