export type FormButtonRole = 'next' | 'previous' | 'submit' | 'reset'; /** * Optimizely Forms has no property marking a button as step navigation: Next, * Previous and Submit are all the same element type, told apart only by their * label. Override these when the form is authored in another language, or the * step buttons will submit instead of navigating. * * Matching is case-insensitive. */ export declare const DEFAULT_STEP_BUTTON_LABELS: Record<'next' | 'previous', string[]>; export type FormButtonContent = { Label?: string | null; Tooltip?: string | null; }; export type FormButtonLabelOptions = { labels?: { next?: string[]; previous?: string[]; }; role?: FormButtonRole; }; /** * What a form button does, from its label alone. * * Kept free of React so a server component can ask the same question — a footer * has to know whether one of its buttons goes back before it can decide how to * align them. */ export declare function getFormButtonRole(content: FormButtonContent, options?: FormButtonLabelOptions): FormButtonRole;