import * as React from 'react'; /** What {@link withFieldControlId} resolved for one render. */ export interface FieldControlIdResult { /** The children to render, with the generated id cloned onto the control when one was found. */ children: React.ReactNode; /** The id the control carries in this render's markup, or `undefined` when none was recognisable. */ controlId: string | undefined; } /** * Finds the Field's control in `children` and gives it `generatedId`, so the * `for`/`id` pair exists in server markup instead of appearing only after * hydration. * * @param children the Field's children, exactly as passed * @param generatedId the Field's own generated control id */ export declare function withFieldControlId(children: React.ReactNode, generatedId: string): FieldControlIdResult;