import { type ReactNode } from 'react'; export interface SettingsCardProps { /** Names the card above it. Leave it out on a page's first card, where the * page title already names it. */ title?: string | undefined; description?: ReactNode; /** Beside the title, such as an add button; with `actionAlign="end"`, at the * header's far edge, such as Save. */ action?: ReactNode; actionAlign?: 'beside' | 'end' | undefined; /** The title's level in the page's outline; its SettingsHeadings sit one below. */ headingLevel?: 2 | 3 | undefined; /** Lets content such as an inline menu reach past the card's rounded edge. */ overflowVisible?: boolean | undefined; className?: string | undefined; /** An error about the whole card, such as its header's Save or Connect failing: at the top of * the card, inside it, above its rows, and announced. */ error?: ReactNode; /** SettingRows, and SettingsHeadings between groups of them. */ children: ReactNode; } /** A page's settings, grouped: a titled panel of SettingRows, each ruled off from * the next. Cards stack with room between them. An error about one setting, such as its * Save failing, is its row's `error`; one about the whole card, such as its header's * action failing, is the card's `error`. */ export declare function SettingsCard({ title, description, action, actionAlign, headingLevel, overflowVisible, className, error, children, }: SettingsCardProps): import("react").JSX.Element; /** A heading between groups of rows inside a SettingsCard, a level below the card's title. */ export declare function SettingsHeading({ children }: { children: ReactNode; }): import("react").JSX.Element; /** One setting in a SettingsCard: its name and help on the left, its control on * the right, or under the name across the row with `fill`. * * On a phone a small control, such as a switch, a checkbox or a short select, stays on the * name's line at the row's end. One too wide to fit beside the name, such as a text field * with its Save button, moves to a line of its own and takes the row's width from its start: * a single wrapper the host puts it in, such as a `
`, stretches * across the row, and a text field in it grows while a button beside it keeps its size. A * control of the host's own that should grow there takes `flex-1`. */ export declare function SettingRow({ label, htmlFor, helpText, fill, onClick, error, children, }: { label: string; /** The control's id, so the name labels it. */ htmlFor?: string | undefined; helpText?: ReactNode; /** The control takes the row's width, as a text field does; otherwise it sits compact at the right. */ fill?: boolean | undefined; /** Makes the whole row press its control, such as a switch. The control still * handles its own press; stop it propagating there so it doesn't toggle twice. */ onClick?: (() => void) | undefined; /** An error about this setting, such as its Save failing: under the row from the name's * start, or with `fill` under the control from its start, on a wide screen; across the row * on a phone. It is announced and describes the control that `htmlFor` names. */ error?: ReactNode; children: ReactNode; }): import("react").JSX.Element;