| 1 |
/// <reference types="react" /> |
| 2 |
export interface SSRSafeIdsProps { |
| 3 |
/** Prefix for the generated component ID */ |
| 4 |
prefix: string; |
| 5 |
/** OUIA component type. If provided, a stable OUIA ID will be generated. */ |
| 6 |
ouiaComponentType?: string; |
| 7 |
/** Children render function receiving (generatedId, generatedOuiaId?) */ |
| 8 |
children: (id: string, ouiaId?: string) => React.ReactNode; |
| 9 |
} |
| 10 |
/** |
| 11 |
* Provides SSR/Strict-Mode-safe IDs for class components via render props. |
| 12 |
* Uses useSSRSafeId() (React.useId) for both component ID and OUIA ID, |
| 13 |
* ensuring consistent values between server and client rendering. |
| 14 |
*/ |
| 15 |
export declare const SSRSafeIds: { |
| 16 |
({ prefix, ouiaComponentType, children }: SSRSafeIdsProps): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>; |
| 17 |
displayName: string; |
| 18 |
}; |
| 19 |
//# sourceMappingURL=SSRSafeIds.d.ts.map |