@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
17 lines • 880 B
text/typescript
import * as React from 'react';
import type { Code, CodeHighlighterBaseProps, CodeHighlighterClientProps } from "./types.mjs";
import type { CompressedFallback } from "./fallbackFormat.mjs";
export interface CreateClientPropsOptions<T extends {}> extends CodeHighlighterBaseProps<T> {
code?: Code;
fallback?: React.ReactNode;
skipFallback?: boolean;
processedGlobalsCode?: Array<Code>;
residualFallbacks?: CompressedFallback;
}
/**
* Assemble the props for the `'use client'` `CodeHighlighterClient` from the
* server/isomorphic props: rewrite the top-level URL to its hosted form, pre-render
* the `Content` element (functions can't cross the server-client boundary), and
* forward the loading `fallback` and compressed `residualFallbacks`.
*/
export declare function createClientProps<T extends {}>(props: CreateClientPropsOptions<T>): CodeHighlighterClientProps;