import { t as DeserializerRule } from "../_chunks-dts/types.js";
import { PortableTextObject, PortableTextSpan, Schema } from "@portabletext/schema";
/**
* An opinionated `DeserializerRule` that flattens tables in a way that repeats
* the header row for each cell in the row.
*
* @example
* ```html
*
*
*
* | Header 1 |
* Header 2 |
*
*
*
*
* | Cell 1 |
* Cell 2 |
*
*
*
* ```
* Turns into
* ```json
* [
* {
* _type: 'block',
* children: [
* {
* _type: 'text',
* text: 'Header 1'
* },
* {
* _type: 'text',
* text: 'Cell 1'
* }
* ]
* },
* {
* _type: 'block',
* children: [
* {
* _type: 'text',
* text: 'Header 2'
* },
* {
* _type: 'text',
* text: 'Cell 2'
* }
* ]
* }
* ]
* ```
*
* Use the `separator` option to control if a child element should separate
* headers and cells.
*
* @beta
*/
declare function createFlattenTableRule({
schema,
separator
}: {
schema: Schema;
separator?: () => (Omit & {
_key?: string;
}) | (Omit & {
_key?: string;
}) | undefined;
}): DeserializerRule;
export { createFlattenTableRule };
//# sourceMappingURL=index.d.ts.map