structured-render - v1.2.0
    Preparing search index...

    Function emptyStructuredRenderTableFallback

    • A helper for falling back to a different structured render section if the given structured render table is empty. Returns a full StructuredRenderSection with the given sectionTitle.

      Type Parameters

      • Fallback extends Omit<
            | {
                fileBoundingBoxes?: | (
                    { x1: number; x2: number; y1: number; y2: number }
                    | null
                    | undefined
                )[]
                | null;
                fileName?: string | null;
                pageNumbers?: (number | null | undefined)[] | null;
                quote?: string | null;
                type: "source";
            }
            | { type: "empty" }
            | {
                icon?:
                    | {
                        fillColor?: string
                        | null;
                        iconKey: string;
                        strokeColor?: string | null;
                        strokeWidth?: string | number | null;
                        type: "icon";
                    }
                    | null;
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                style?: Faint
                | Small
                | Bold
                | null;
                text?: string | number | bigint | boolean | symbol | null;
                type: "text";
            }
            | {
                color?: | {
                    custom: {
                        backgroundColor?: string
                        | null;
                        foregroundColor?: string | null;
                    };
                }
                | { variant: ViraColorVariant }
                | null;
                sectionTitle?: string | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                text: string
                | number
                | bigint
                | boolean
                | symbol
                | null
                | undefined;
                type: "tag";
                useBigTag?: boolean | null;
            }
            | {
                code: string;
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                type: "inlineCode";
            }
            | {
                items: {
                    content?: | { type: "empty" }
                    | {
                        icon?:
                            | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | {
                        color?: | {
                            custom: {
                                backgroundColor?: (...)
                                | (...)
                                | (...);
                                foregroundColor?: (...) | (...) | (...);
                            };
                        }
                        | { variant: ViraColorVariant }
                        | null;
                        sectionTitle?: string | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        text: string
                        | number
                        | bigint
                        | boolean
                        | symbol
                        | null
                        | undefined;
                        type: "tag";
                        useBigTag?: boolean | null;
                    }
                    | null;
                    icon?: | {
                        fillColor?: string
                        | null;
                        iconKey: string;
                        strokeColor?: string | null;
                        strokeWidth?: string | number | null;
                        type: "icon";
                    }
                    | null;
                    sources?: | (
                        | {
                            fileBoundingBoxes?: (...)[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (...)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                }[];
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                type: "list";
            }
            | {
                markdown: string;
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                type: "markdown";
            }
            | { type: "processing" }
            | {
                fillColor?: string | null;
                iconKey: string;
                strokeColor?: string | null;
                strokeWidth?: string | number | null;
                type: "icon";
            }
            | {
                code: string;
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                syntax?: string
                | null;
                type: "codeBlock";
            }
            | {
                direction: StructuredRenderCellDirection;
                entries: {
                    data: Record<
                        string,
                        | { type: "empty" }
                        | {
                            icon?:
                                | {
                                    fillColor?: (...)
                                    | (...)
                                    | (...);
                                    iconKey: string;
                                    strokeColor?: (...) | (...) | (...);
                                    strokeWidth?: (...) | (...) | (...) | (...);
                                    type: "icon";
                                }
                                | null;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            style?: Faint | Small | Bold | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | {
                            color?: | {
                                custom: { backgroundColor?: ...; foregroundColor?: ... };
                            }
                            | { variant: ViraColorVariant }
                            | null;
                            sectionTitle?: string | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            text: string | number | bigint | boolean | symbol | null | undefined;
                            type: "tag";
                            useBigTag?: boolean | null;
                        }
                        | {
                            code: string;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "inlineCode";
                        }
                        | {
                            items: {
                                content?: (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                icon?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                            }[];
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "list";
                        }
                        | {
                            markdown: string;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "markdown";
                        }
                        | { type: "processing" }
                        | (
                            | { type: "empty" }
                            | {
                                icon?: (...) | (...) | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                style?: (...) | (...) | (...) | (...) | (...);
                                text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "text";
                            }
                            | {
                                color?: (...)
                                | (...)
                                | (...)
                                | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "tag";
                                useBigTag?: (...) | (...) | (...) | (...);
                            }
                            | {
                                code: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "inlineCode";
                            }
                            | {
                                items: (...)[];
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                type: "list";
                            }
                            | {
                                markdown: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "markdown";
                            }
                            | { type: "processing" }
                            | null
                            | undefined
                        )[]
                        | null
                        | undefined,
                    >;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                }[];
                footerRows?: | {
                    alignment?: Left
                    | Right
                    | null;
                    cells:
                        | { type: "empty" }
                        | {
                            icon?:
                                | {
                                    fillColor?: (...)
                                    | (...)
                                    | (...);
                                    iconKey: string;
                                    strokeColor?: (...) | (...) | (...);
                                    strokeWidth?: (...) | (...) | (...) | (...);
                                    type: "icon";
                                }
                                | null;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            style?: Faint | Small | Bold | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | {
                            color?: | {
                                custom: { backgroundColor?: ...; foregroundColor?: ... };
                            }
                            | { variant: ViraColorVariant }
                            | null;
                            sectionTitle?: string | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            text: string | number | bigint | boolean | symbol | null | undefined;
                            type: "tag";
                            useBigTag?: boolean | null;
                        }
                        | {
                            code: string;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "inlineCode";
                        }
                        | {
                            items: {
                                content?: (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...);
                                icon?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                            }[];
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "list";
                        }
                        | {
                            markdown: string;
                            sectionTitle?: string
                            | null;
                            sources?: ((...) | (...) | (...))[] | null;
                            type: "markdown";
                        }
                        | { type: "processing" }
                        | (
                            | { type: "empty" }
                            | {
                                icon?: (...) | (...) | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                style?: (...) | (...) | (...) | (...) | (...);
                                text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "text";
                            }
                            | {
                                color?: (...)
                                | (...)
                                | (...)
                                | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "tag";
                                useBigTag?: (...) | (...) | (...) | (...);
                            }
                            | {
                                code: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "inlineCode";
                            }
                            | {
                                items: (...)[];
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                type: "list";
                            }
                            | {
                                markdown: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "markdown";
                            }
                            | { type: "processing" }
                            | null
                            | undefined
                        )[]
                        | null
                        | undefined;
                }[]
                | null;
                headers: {
                    hidden?: boolean
                    | null;
                    key: string;
                    text?:
                        | {
                            icon?: | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                            sectionTitle?: string
                            | null;
                            sources?:
                                | (
                                    | {
                                        fileBoundingBoxes?: ...;
                                        fileName?: ...;
                                        pageNumbers?: ...;
                                        quote?: ...;
                                        type: ...;
                                    }
                                    | null
                                    | undefined
                                )[]
                                | null;
                            style?: Faint
                            | Small
                            | Bold
                            | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | null;
                }[];
                sectionTitle?: string
                | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                type: "table";
            }
            | {
                content: (
                    | { type: "empty" }
                    | {
                        icon?:
                            | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | {
                        color?: | {
                            custom: {
                                backgroundColor?: string
                                | null;
                                foregroundColor?: string | null;
                            };
                        }
                        | { variant: ViraColorVariant }
                        | null;
                        sectionTitle?: string | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        text: string
                        | number
                        | bigint
                        | boolean
                        | symbol
                        | null
                        | undefined;
                        type: "tag";
                        useBigTag?: boolean | null;
                    }
                    | {
                        code: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "inlineCode";
                    }
                    | {
                        items: {
                            content?: | { type: "empty" }
                            | {
                                icon?: (...) | (...) | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                style?: (...) | (...) | (...) | (...) | (...);
                                text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "text";
                            }
                            | {
                                color?: (...)
                                | (...)
                                | (...)
                                | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "tag";
                                useBigTag?: (...) | (...) | (...) | (...);
                            }
                            | null;
                            icon?: | {
                                fillColor?: (...)
                                | (...)
                                | (...);
                                iconKey: string;
                                strokeColor?: (...) | (...) | (...);
                                strokeWidth?: (...) | (...) | (...) | (...);
                                type: "icon";
                            }
                            | null;
                            sources?: ((...) | (...) | (...))[]
                            | null;
                        }[];
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "list";
                    }
                    | {
                        markdown: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "markdown";
                    }
                    | { type: "processing" }
                    | {
                        fillColor?: string | null;
                        iconKey: string;
                        strokeColor?: string | null;
                        strokeWidth?: string | number | null;
                        type: "icon";
                    }
                    | {
                        code: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        syntax?: string
                        | null;
                        type: "codeBlock";
                    }
                    | {
                        direction: StructuredRenderCellDirection;
                        entries: {
                            data: Record<
                                string,
                                | { type: ... }
                                | {
                                    icon?: ...;
                                    sectionTitle?: ...;
                                    sources?: ...;
                                    style?: ...;
                                    text?: ...;
                                    type: ...;
                                }
                                | {
                                    color?: ...;
                                    sectionTitle?: ...;
                                    sources?: ...;
                                    text: ...;
                                    type: ...;
                                    useBigTag?: ...;
                                }
                                | { code: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { items: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { markdown: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { type: ... }
                                | (...)[]
                                | null
                                | undefined,
                            >;
                            sources?: ((...) | (...) | (...))[] | null;
                        }[];
                        footerRows?: | {
                            alignment?: Left
                            | Right
                            | null;
                            cells:
                                | { type: ... }
                                | {
                                    icon?: ...;
                                    sectionTitle?: ...;
                                    sources?: ...;
                                    style?: ...;
                                    text?: ...;
                                    type: ...;
                                }
                                | {
                                    color?: ...;
                                    sectionTitle?: ...;
                                    sources?: ...;
                                    text: ...;
                                    type: ...;
                                    useBigTag?: ...;
                                }
                                | { code: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { items: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { markdown: ...; sectionTitle?: ...; sources?: ...; type: ... }
                                | { type: ... }
                                | (...)[]
                                | null
                                | undefined;
                        }[]
                        | null;
                        headers: {
                            hidden?: boolean
                            | null;
                            key: string;
                            text?:
                                | {
                                    icon?: (...)
                                    | (...)
                                    | (...);
                                    sectionTitle?: (...) | (...) | (...);
                                    sources?: (...) | (...) | (...);
                                    style?: (...) | (...) | (...) | (...) | (...);
                                    text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                    type: "text";
                                }
                                | null;
                        }[];
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "table";
                    }
                )[];
                header: string
                | number
                | bigint
                | boolean
                | symbol
                | null
                | undefined;
                sectionTitle?: string | null;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: | (
                                { x1: ...; x2: ...; y1: ...; y2: ... }
                                | null
                                | undefined
                            )[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: (number | null | undefined)[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
                type: "collapsible";
            },
            "sectionTitle",
        >

      Parameters

      Returns
          | {
              fileBoundingBoxes?: | (
                  { x1: number; x2: number; y1: number; y2: number }
                  | null
                  | undefined
              )[]
              | null;
              fileName?: string | null;
              pageNumbers?: (number | null | undefined)[] | null;
              quote?: string | null;
              type: "source";
          }
          | { type: "empty" }
          | {
              icon?:
                  | {
                      fillColor?: string
                      | null;
                      iconKey: string;
                      strokeColor?: string | null;
                      strokeWidth?: string | number | null;
                      type: "icon";
                  }
                  | null;
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              style?: Faint
              | Small
              | Bold
              | null;
              text?: string | number | bigint | boolean | symbol | null;
              type: "text";
          }
          | {
              color?: | {
                  custom: {
                      backgroundColor?: string
                      | null;
                      foregroundColor?: string | null;
                  };
              }
              | { variant: ViraColorVariant }
              | null;
              sectionTitle?: string | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              text: string
              | number
              | bigint
              | boolean
              | symbol
              | null
              | undefined;
              type: "tag";
              useBigTag?: boolean | null;
          }
          | {
              code: string;
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              type: "inlineCode";
          }
          | {
              items: {
                  content?: | { type: "empty" }
                  | {
                      icon?:
                          | {
                              fillColor?: string
                              | null;
                              iconKey: string;
                              strokeColor?: string | null;
                              strokeWidth?: string | number | null;
                              type: "icon";
                          }
                          | null;
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)
                                  | (...)
                                  | (...);
                                  fileName?: (...) | (...) | (...);
                                  pageNumbers?: (...) | (...) | (...);
                                  quote?: (...) | (...) | (...);
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      style?: Faint
                      | Small
                      | Bold
                      | null;
                      text?: string | number | bigint | boolean | symbol | null;
                      type: "text";
                  }
                  | {
                      color?: | {
                          custom: {
                              backgroundColor?: string
                              | null;
                              foregroundColor?: string | null;
                          };
                      }
                      | { variant: ViraColorVariant }
                      | null;
                      sectionTitle?: string | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)
                                  | (...)
                                  | (...);
                                  fileName?: (...) | (...) | (...);
                                  pageNumbers?: (...) | (...) | (...);
                                  quote?: (...) | (...) | (...);
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      text: string
                      | number
                      | bigint
                      | boolean
                      | symbol
                      | null
                      | undefined;
                      type: "tag";
                      useBigTag?: boolean | null;
                  }
                  | null;
                  icon?: | {
                      fillColor?: string
                      | null;
                      iconKey: string;
                      strokeColor?: string | null;
                      strokeWidth?: string | number | null;
                      type: "icon";
                  }
                  | null;
                  sources?: | (
                      | {
                          fileBoundingBoxes?: ((...) | (...) | (...))[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: ((...) | (...) | (...))[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              }[];
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              type: "list";
          }
          | {
              markdown: string;
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              type: "markdown";
          }
          | { type: "processing" }
          | {
              fillColor?: string | null;
              iconKey: string;
              strokeColor?: string | null;
              strokeWidth?: string | number | null;
              type: "icon";
          }
          | {
              code: string;
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              syntax?: string
              | null;
              type: "codeBlock";
          }
          | {
              direction: StructuredRenderCellDirection;
              entries: {
                  data: Record<
                      string,
                      | { type: "empty" }
                      | {
                          icon?:
                              | {
                                  fillColor?: string
                                  | null;
                                  iconKey: string;
                                  strokeColor?: string | null;
                                  strokeWidth?: string | number | null;
                                  type: "icon";
                              }
                              | null;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          style?: Faint
                          | Small
                          | Bold
                          | null;
                          text?: string | number | bigint | boolean | symbol | null;
                          type: "text";
                      }
                      | {
                          color?: | {
                              custom: {
                                  backgroundColor?: (...)
                                  | (...)
                                  | (...);
                                  foregroundColor?: (...) | (...) | (...);
                              };
                          }
                          | { variant: ViraColorVariant }
                          | null;
                          sectionTitle?: string | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          text: string
                          | number
                          | bigint
                          | boolean
                          | symbol
                          | null
                          | undefined;
                          type: "tag";
                          useBigTag?: boolean | null;
                      }
                      | {
                          code: string;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "inlineCode";
                      }
                      | {
                          items: {
                              content?: | { type: ... }
                              | {
                                  icon?: ...;
                                  sectionTitle?: ...;
                                  sources?: ...;
                                  style?: ...;
                                  text?: ...;
                                  type: ...;
                              }
                              | {
                                  color?: ...;
                                  sectionTitle?: ...;
                                  sources?: ...;
                                  text: ...;
                                  type: ...;
                                  useBigTag?: ...;
                              }
                              | null;
                              icon?: | {
                                  fillColor?: ...;
                                  iconKey: ...;
                                  strokeColor?: ...;
                                  strokeWidth?: ...;
                                  type: ...;
                              }
                              | null;
                              sources?: (...)[]
                              | null;
                          }[];
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "list";
                      }
                      | {
                          markdown: string;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "markdown";
                      }
                      | { type: "processing" }
                      | (
                          | { type: "empty" }
                          | {
                              icon?:
                                  | {
                                      fillColor?: ...;
                                      iconKey: ...;
                                      strokeColor?: ...;
                                      strokeWidth?: ...;
                                      type: ...;
                                  }
                                  | null;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              style?: Faint | Small | Bold | null;
                              text?: string | number | bigint | boolean | symbol | null;
                              type: "text";
                          }
                          | {
                              color?: { custom: ... }
                              | { variant: ... }
                              | null;
                              sectionTitle?: string | null;
                              sources?: (...)[] | null;
                              text: string | number | bigint | boolean | symbol | null | undefined;
                              type: "tag";
                              useBigTag?: boolean | null;
                          }
                          | {
                              code: string;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              type: "inlineCode";
                          }
                          | {
                              items: { content?: ...; icon?: ...; sources?: ... }[];
                              sectionTitle?: string | null;
                              sources?: (...)[] | null;
                              type: "list";
                          }
                          | {
                              markdown: string;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              type: "markdown";
                          }
                          | { type: "processing" }
                          | null
                          | undefined
                      )[]
                      | null
                      | undefined,
                  >;
                  sources?:
                      | (
                          | {
                              fileBoundingBoxes?: ((...) | (...) | (...))[]
                              | null;
                              fileName?: string | null;
                              pageNumbers?: ((...) | (...) | (...))[] | null;
                              quote?: string | null;
                              type: "source";
                          }
                          | null
                          | undefined
                      )[]
                      | null;
              }[];
              footerRows?: | {
                  alignment?: Left
                  | Right
                  | null;
                  cells:
                      | { type: "empty" }
                      | {
                          icon?:
                              | {
                                  fillColor?: string
                                  | null;
                                  iconKey: string;
                                  strokeColor?: string | null;
                                  strokeWidth?: string | number | null;
                                  type: "icon";
                              }
                              | null;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          style?: Faint
                          | Small
                          | Bold
                          | null;
                          text?: string | number | bigint | boolean | symbol | null;
                          type: "text";
                      }
                      | {
                          color?: | {
                              custom: {
                                  backgroundColor?: (...)
                                  | (...)
                                  | (...);
                                  foregroundColor?: (...) | (...) | (...);
                              };
                          }
                          | { variant: ViraColorVariant }
                          | null;
                          sectionTitle?: string | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          text: string
                          | number
                          | bigint
                          | boolean
                          | symbol
                          | null
                          | undefined;
                          type: "tag";
                          useBigTag?: boolean | null;
                      }
                      | {
                          code: string;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "inlineCode";
                      }
                      | {
                          items: {
                              content?: | { type: ... }
                              | {
                                  icon?: ...;
                                  sectionTitle?: ...;
                                  sources?: ...;
                                  style?: ...;
                                  text?: ...;
                                  type: ...;
                              }
                              | {
                                  color?: ...;
                                  sectionTitle?: ...;
                                  sources?: ...;
                                  text: ...;
                                  type: ...;
                                  useBigTag?: ...;
                              }
                              | null;
                              icon?: | {
                                  fillColor?: ...;
                                  iconKey: ...;
                                  strokeColor?: ...;
                                  strokeWidth?: ...;
                                  type: ...;
                              }
                              | null;
                              sources?: (...)[]
                              | null;
                          }[];
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "list";
                      }
                      | {
                          markdown: string;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          type: "markdown";
                      }
                      | { type: "processing" }
                      | (
                          | { type: "empty" }
                          | {
                              icon?:
                                  | {
                                      fillColor?: ...;
                                      iconKey: ...;
                                      strokeColor?: ...;
                                      strokeWidth?: ...;
                                      type: ...;
                                  }
                                  | null;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              style?: Faint | Small | Bold | null;
                              text?: string | number | bigint | boolean | symbol | null;
                              type: "text";
                          }
                          | {
                              color?: { custom: ... }
                              | { variant: ... }
                              | null;
                              sectionTitle?: string | null;
                              sources?: (...)[] | null;
                              text: string | number | bigint | boolean | symbol | null | undefined;
                              type: "tag";
                              useBigTag?: boolean | null;
                          }
                          | {
                              code: string;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              type: "inlineCode";
                          }
                          | {
                              items: { content?: ...; icon?: ...; sources?: ... }[];
                              sectionTitle?: string | null;
                              sources?: (...)[] | null;
                              type: "list";
                          }
                          | {
                              markdown: string;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              type: "markdown";
                          }
                          | { type: "processing" }
                          | null
                          | undefined
                      )[]
                      | null
                      | undefined;
              }[]
              | null;
              headers: {
                  hidden?: boolean
                  | null;
                  key: string;
                  text?:
                      | {
                          icon?: | {
                              fillColor?: string
                              | null;
                              iconKey: string;
                              strokeColor?: string | null;
                              strokeWidth?: string | number | null;
                              type: "icon";
                          }
                          | null;
                          sectionTitle?: string
                          | null;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: (...)
                                      | (...)
                                      | (...);
                                      fileName?: (...) | (...) | (...);
                                      pageNumbers?: (...) | (...) | (...);
                                      quote?: (...) | (...) | (...);
                                      type: "source";
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                          style?: Faint
                          | Small
                          | Bold
                          | null;
                          text?: string | number | bigint | boolean | symbol | null;
                          type: "text";
                      }
                      | null;
              }[];
              sectionTitle?: string
              | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              type: "table";
          }
          | {
              content: (
                  | { type: "empty" }
                  | {
                      icon?:
                          | {
                              fillColor?: string
                              | null;
                              iconKey: string;
                              strokeColor?: string | null;
                              strokeWidth?: string | number | null;
                              type: "icon";
                          }
                          | null;
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      style?: Faint
                      | Small
                      | Bold
                      | null;
                      text?: string | number | bigint | boolean | symbol | null;
                      type: "text";
                  }
                  | {
                      color?: | {
                          custom: {
                              backgroundColor?: string
                              | null;
                              foregroundColor?: string | null;
                          };
                      }
                      | { variant: ViraColorVariant }
                      | null;
                      sectionTitle?: string | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      text: string
                      | number
                      | bigint
                      | boolean
                      | symbol
                      | null
                      | undefined;
                      type: "tag";
                      useBigTag?: boolean | null;
                  }
                  | {
                      code: string;
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      type: "inlineCode";
                  }
                  | {
                      items: {
                          content?: | { type: "empty" }
                          | {
                              icon?:
                                  | {
                                      fillColor?: ...;
                                      iconKey: ...;
                                      strokeColor?: ...;
                                      strokeWidth?: ...;
                                      type: ...;
                                  }
                                  | null;
                              sectionTitle?: string
                              | null;
                              sources?: (...)[] | null;
                              style?: Faint | Small | Bold | null;
                              text?: string | number | bigint | boolean | symbol | null;
                              type: "text";
                          }
                          | {
                              color?: { custom: ... }
                              | { variant: ... }
                              | null;
                              sectionTitle?: string | null;
                              sources?: (...)[] | null;
                              text: string | number | bigint | boolean | symbol | null | undefined;
                              type: "tag";
                              useBigTag?: boolean | null;
                          }
                          | null;
                          icon?: | {
                              fillColor?: string
                              | null;
                              iconKey: string;
                              strokeColor?: string | null;
                              strokeWidth?: string | number | null;
                              type: "icon";
                          }
                          | null;
                          sources?: | (
                              | {
                                  fileBoundingBoxes?: ...;
                                  fileName?: ...;
                                  pageNumbers?: ...;
                                  quote?: ...;
                                  type: ...;
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      }[];
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      type: "list";
                  }
                  | {
                      markdown: string;
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      type: "markdown";
                  }
                  | { type: "processing" }
                  | {
                      fillColor?: string | null;
                      iconKey: string;
                      strokeColor?: string | null;
                      strokeWidth?: string | number | null;
                      type: "icon";
                  }
                  | {
                      code: string;
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      syntax?: string
                      | null;
                      type: "codeBlock";
                  }
                  | {
                      direction: StructuredRenderCellDirection;
                      entries: {
                          data: Record<
                              string,
                              | { type: "empty" }
                              | {
                                  icon?: (...) | (...) | (...);
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  style?: (...) | (...) | (...) | (...) | (...);
                                  text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                  type: "text";
                              }
                              | {
                                  color?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                  type: "tag";
                                  useBigTag?: (...) | (...) | (...) | (...);
                              }
                              | {
                                  code: string;
                                  sectionTitle?: (...)
                                  | (...)
                                  | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "inlineCode";
                              }
                              | {
                                  items: (...)[];
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "list";
                              }
                              | {
                                  markdown: string;
                                  sectionTitle?: (...)
                                  | (...)
                                  | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "markdown";
                              }
                              | { type: "processing" }
                              | (
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                              )[]
                              | null
                              | undefined,
                          >;
                          sources?:
                              | (
                                  | {
                                      fileBoundingBoxes?: ...;
                                      fileName?: ...;
                                      pageNumbers?: ...;
                                      quote?: ...;
                                      type: ...;
                                  }
                                  | null
                                  | undefined
                              )[]
                              | null;
                      }[];
                      footerRows?: | {
                          alignment?: Left
                          | Right
                          | null;
                          cells:
                              | { type: "empty" }
                              | {
                                  icon?: (...) | (...) | (...);
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  style?: (...) | (...) | (...) | (...) | (...);
                                  text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                  type: "text";
                              }
                              | {
                                  color?: (...)
                                  | (...)
                                  | (...)
                                  | (...);
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                  type: "tag";
                                  useBigTag?: (...) | (...) | (...) | (...);
                              }
                              | {
                                  code: string;
                                  sectionTitle?: (...)
                                  | (...)
                                  | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "inlineCode";
                              }
                              | {
                                  items: (...)[];
                                  sectionTitle?: (...) | (...) | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "list";
                              }
                              | {
                                  markdown: string;
                                  sectionTitle?: (...)
                                  | (...)
                                  | (...);
                                  sources?: (...) | (...) | (...);
                                  type: "markdown";
                              }
                              | { type: "processing" }
                              | (
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                                  | (...)
                              )[]
                              | null
                              | undefined;
                      }[]
                      | null;
                      headers: {
                          hidden?: boolean
                          | null;
                          key: string;
                          text?:
                              | {
                                  icon?: | {
                                      fillColor?: ...;
                                      iconKey: ...;
                                      strokeColor?: ...;
                                      strokeWidth?: ...;
                                      type: ...;
                                  }
                                  | null;
                                  sectionTitle?: string
                                  | null;
                                  sources?: (...)[] | null;
                                  style?: Faint | Small | Bold | null;
                                  text?: string | number | bigint | boolean | symbol | null;
                                  type: "text";
                              }
                              | null;
                      }[];
                      sectionTitle?: string
                      | null;
                      sources?:
                          | (
                              | {
                                  fileBoundingBoxes?: (...)[]
                                  | null;
                                  fileName?: string | null;
                                  pageNumbers?: (...)[] | null;
                                  quote?: string | null;
                                  type: "source";
                              }
                              | null
                              | undefined
                          )[]
                          | null;
                      type: "table";
                  }
              )[];
              header: string
              | number
              | bigint
              | boolean
              | symbol
              | null
              | undefined;
              sectionTitle?: string | null;
              sources?:
                  | (
                      | {
                          fileBoundingBoxes?: | (
                              | { x1: number; x2: number; y1: number; y2: number }
                              | null
                              | undefined
                          )[]
                          | null;
                          fileName?: string | null;
                          pageNumbers?: (number | null | undefined)[] | null;
                          quote?: string | null;
                          type: "source";
                      }
                      | null
                      | undefined
                  )[]
                  | null;
              type: "collapsible";
          }

      • {
            fileBoundingBoxes?:
                | (
                    { x1: number; x2: number; y1: number; y2: number }
                    | null
                    | undefined
                )[]
                | null;
            fileName?: string | null;
            pageNumbers?: (number | null | undefined)[] | null;
            quote?: string | null;
            type: "source";
        }
      • { type: "empty" }
      • {
            icon?:
                | {
                    fillColor?: string
                    | null;
                    iconKey: string;
                    strokeColor?: string | null;
                    strokeWidth?: string | number | null;
                    type: "icon";
                }
                | null;
            sectionTitle?: string
            | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            style?: Faint
            | Small
            | Bold
            | null;
            text?: string | number | bigint | boolean | symbol | null;
            type: "text";
        }
        • Optionalicon?:
              | {
                  fillColor?: string
                  | null;
                  iconKey: string;
                  strokeColor?: string | null;
                  strokeWidth?: string | number | null;
                  type: "icon";
              }
              | null

          Rendered before the text.

        • OptionalsectionTitle?: string | null
        • Optionalsources?:
              | (
                  | {
                      fileBoundingBoxes?: | (
                          { x1: number; x2: number; y1: number; y2: number }
                          | null
                          | undefined
                      )[]
                      | null;
                      fileName?: string | null;
                      pageNumbers?: (number | null | undefined)[] | null;
                      quote?: string | null;
                      type: "source";
                  }
                  | null
                  | undefined
              )[]
              | null
        • Optionalstyle?: Faint | Small | Bold | null
        • Optionaltext?: string | number | bigint | boolean | symbol | null
        • type: "text"
      • {
            color?:
                | {
                    custom: {
                        backgroundColor?: string
                        | null;
                        foregroundColor?: string | null;
                    };
                }
                | { variant: ViraColorVariant }
                | null;
            sectionTitle?: string | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            text: string
            | number
            | bigint
            | boolean
            | symbol
            | null
            | undefined;
            type: "tag";
            useBigTag?: boolean | null;
        }
      • {
            code: string;
            sectionTitle?: string | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            type: "inlineCode";
        }
      • {
            items: {
                content?:
                    | { type: "empty" }
                    | {
                        icon?:
                            | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | {
                        color?: | {
                            custom: {
                                backgroundColor?: string
                                | null;
                                foregroundColor?: string | null;
                            };
                        }
                        | { variant: ViraColorVariant }
                        | null;
                        sectionTitle?: string | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        text: string
                        | number
                        | bigint
                        | boolean
                        | symbol
                        | null
                        | undefined;
                        type: "tag";
                        useBigTag?: boolean | null;
                    }
                    | null;
                icon?: | {
                    fillColor?: string
                    | null;
                    iconKey: string;
                    strokeColor?: string | null;
                    strokeWidth?: string | number | null;
                    type: "icon";
                }
                | null;
                sources?: | (
                    | {
                        fileBoundingBoxes?: ((...) | (...) | (...))[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: ((...) | (...) | (...))[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            }[];
            sectionTitle?: string
            | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            type: "list";
        }
      • {
            markdown: string;
            sectionTitle?: string | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            type: "markdown";
        }
      • { type: "processing" }
      • {
            fillColor?: string | null;
            iconKey: string;
            strokeColor?: string | null;
            strokeWidth?: string | number | null;
            type: "icon";
        }
      • {
            code: string;
            sectionTitle?: string | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            syntax?: string
            | null;
            type: "codeBlock";
        }
      • {
            direction: StructuredRenderCellDirection;
            entries: {
                data: Record<
                    string,
                    | { type: "empty" }
                    | {
                        icon?:
                            | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | {
                        color?: | {
                            custom: {
                                backgroundColor?: (...)
                                | (...)
                                | (...);
                                foregroundColor?: (...) | (...) | (...);
                            };
                        }
                        | { variant: ViraColorVariant }
                        | null;
                        sectionTitle?: string | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        text: string
                        | number
                        | bigint
                        | boolean
                        | symbol
                        | null
                        | undefined;
                        type: "tag";
                        useBigTag?: boolean | null;
                    }
                    | {
                        code: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "inlineCode";
                    }
                    | {
                        items: {
                            content?: | { type: ... }
                            | {
                                icon?: ...;
                                sectionTitle?: ...;
                                sources?: ...;
                                style?: ...;
                                text?: ...;
                                type: ...;
                            }
                            | {
                                color?: ...;
                                sectionTitle?: ...;
                                sources?: ...;
                                text: ...;
                                type: ...;
                                useBigTag?: ...;
                            }
                            | null;
                            icon?: | {
                                fillColor?: ...;
                                iconKey: ...;
                                strokeColor?: ...;
                                strokeWidth?: ...;
                                type: ...;
                            }
                            | null;
                            sources?: (...)[]
                            | null;
                        }[];
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "list";
                    }
                    | {
                        markdown: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "markdown";
                    }
                    | { type: "processing" }
                    | (
                        | { type: "empty" }
                        | {
                            icon?:
                                | {
                                    fillColor?: ...;
                                    iconKey: ...;
                                    strokeColor?: ...;
                                    strokeWidth?: ...;
                                    type: ...;
                                }
                                | null;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            style?: Faint | Small | Bold | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | {
                            color?: { custom: ... }
                            | { variant: ... }
                            | null;
                            sectionTitle?: string | null;
                            sources?: (...)[] | null;
                            text: string | number | bigint | boolean | symbol | null | undefined;
                            type: "tag";
                            useBigTag?: boolean | null;
                        }
                        | {
                            code: string;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            type: "inlineCode";
                        }
                        | {
                            items: { content?: ...; icon?: ...; sources?: ... }[];
                            sectionTitle?: string | null;
                            sources?: (...)[] | null;
                            type: "list";
                        }
                        | {
                            markdown: string;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            type: "markdown";
                        }
                        | { type: "processing" }
                        | null
                        | undefined
                    )[]
                    | null
                    | undefined,
                >;
                sources?:
                    | (
                        | {
                            fileBoundingBoxes?: ((...) | (...) | (...))[]
                            | null;
                            fileName?: string | null;
                            pageNumbers?: ((...) | (...) | (...))[] | null;
                            quote?: string | null;
                            type: "source";
                        }
                        | null
                        | undefined
                    )[]
                    | null;
            }[];
            footerRows?: | {
                alignment?: Left
                | Right
                | null;
                cells:
                    | { type: "empty" }
                    | {
                        icon?:
                            | {
                                fillColor?: string
                                | null;
                                iconKey: string;
                                strokeColor?: string | null;
                                strokeWidth?: string | number | null;
                                type: "icon";
                            }
                            | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | {
                        color?: | {
                            custom: {
                                backgroundColor?: (...)
                                | (...)
                                | (...);
                                foregroundColor?: (...) | (...) | (...);
                            };
                        }
                        | { variant: ViraColorVariant }
                        | null;
                        sectionTitle?: string | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        text: string
                        | number
                        | bigint
                        | boolean
                        | symbol
                        | null
                        | undefined;
                        type: "tag";
                        useBigTag?: boolean | null;
                    }
                    | {
                        code: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "inlineCode";
                    }
                    | {
                        items: {
                            content?: | { type: ... }
                            | {
                                icon?: ...;
                                sectionTitle?: ...;
                                sources?: ...;
                                style?: ...;
                                text?: ...;
                                type: ...;
                            }
                            | {
                                color?: ...;
                                sectionTitle?: ...;
                                sources?: ...;
                                text: ...;
                                type: ...;
                                useBigTag?: ...;
                            }
                            | null;
                            icon?: | {
                                fillColor?: ...;
                                iconKey: ...;
                                strokeColor?: ...;
                                strokeWidth?: ...;
                                type: ...;
                            }
                            | null;
                            sources?: (...)[]
                            | null;
                        }[];
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "list";
                    }
                    | {
                        markdown: string;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        type: "markdown";
                    }
                    | { type: "processing" }
                    | (
                        | { type: "empty" }
                        | {
                            icon?:
                                | {
                                    fillColor?: ...;
                                    iconKey: ...;
                                    strokeColor?: ...;
                                    strokeWidth?: ...;
                                    type: ...;
                                }
                                | null;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            style?: Faint | Small | Bold | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | {
                            color?: { custom: ... }
                            | { variant: ... }
                            | null;
                            sectionTitle?: string | null;
                            sources?: (...)[] | null;
                            text: string | number | bigint | boolean | symbol | null | undefined;
                            type: "tag";
                            useBigTag?: boolean | null;
                        }
                        | {
                            code: string;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            type: "inlineCode";
                        }
                        | {
                            items: { content?: ...; icon?: ...; sources?: ... }[];
                            sectionTitle?: string | null;
                            sources?: (...)[] | null;
                            type: "list";
                        }
                        | {
                            markdown: string;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            type: "markdown";
                        }
                        | { type: "processing" }
                        | null
                        | undefined
                    )[]
                    | null
                    | undefined;
            }[]
            | null;
            headers: {
                hidden?: boolean
                | null;
                key: string;
                text?:
                    | {
                        icon?: | {
                            fillColor?: string
                            | null;
                            iconKey: string;
                            strokeColor?: string | null;
                            strokeWidth?: string | number | null;
                            type: "icon";
                        }
                        | null;
                        sectionTitle?: string
                        | null;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: (...)
                                    | (...)
                                    | (...);
                                    fileName?: (...) | (...) | (...);
                                    pageNumbers?: (...) | (...) | (...);
                                    quote?: (...) | (...) | (...);
                                    type: "source";
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                        style?: Faint
                        | Small
                        | Bold
                        | null;
                        text?: string | number | bigint | boolean | symbol | null;
                        type: "text";
                    }
                    | null;
            }[];
            sectionTitle?: string
            | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            type: "table";
        }
      • {
            content: (
                | { type: "empty" }
                | {
                    icon?:
                        | {
                            fillColor?: string
                            | null;
                            iconKey: string;
                            strokeColor?: string | null;
                            strokeWidth?: string | number | null;
                            type: "icon";
                        }
                        | null;
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    style?: Faint
                    | Small
                    | Bold
                    | null;
                    text?: string | number | bigint | boolean | symbol | null;
                    type: "text";
                }
                | {
                    color?: | {
                        custom: {
                            backgroundColor?: string
                            | null;
                            foregroundColor?: string | null;
                        };
                    }
                    | { variant: ViraColorVariant }
                    | null;
                    sectionTitle?: string | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    text: string
                    | number
                    | bigint
                    | boolean
                    | symbol
                    | null
                    | undefined;
                    type: "tag";
                    useBigTag?: boolean | null;
                }
                | {
                    code: string;
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    type: "inlineCode";
                }
                | {
                    items: {
                        content?: | { type: "empty" }
                        | {
                            icon?:
                                | {
                                    fillColor?: ...;
                                    iconKey: ...;
                                    strokeColor?: ...;
                                    strokeWidth?: ...;
                                    type: ...;
                                }
                                | null;
                            sectionTitle?: string
                            | null;
                            sources?: (...)[] | null;
                            style?: Faint | Small | Bold | null;
                            text?: string | number | bigint | boolean | symbol | null;
                            type: "text";
                        }
                        | {
                            color?: { custom: ... }
                            | { variant: ... }
                            | null;
                            sectionTitle?: string | null;
                            sources?: (...)[] | null;
                            text: string | number | bigint | boolean | symbol | null | undefined;
                            type: "tag";
                            useBigTag?: boolean | null;
                        }
                        | null;
                        icon?: | {
                            fillColor?: string
                            | null;
                            iconKey: string;
                            strokeColor?: string | null;
                            strokeWidth?: string | number | null;
                            type: "icon";
                        }
                        | null;
                        sources?: | (
                            | {
                                fileBoundingBoxes?: ...;
                                fileName?: ...;
                                pageNumbers?: ...;
                                quote?: ...;
                                type: ...;
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    }[];
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    type: "list";
                }
                | {
                    markdown: string;
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    type: "markdown";
                }
                | { type: "processing" }
                | {
                    fillColor?: string | null;
                    iconKey: string;
                    strokeColor?: string | null;
                    strokeWidth?: string | number | null;
                    type: "icon";
                }
                | {
                    code: string;
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    syntax?: string
                    | null;
                    type: "codeBlock";
                }
                | {
                    direction: StructuredRenderCellDirection;
                    entries: {
                        data: Record<
                            string,
                            | { type: "empty" }
                            | {
                                icon?: (...) | (...) | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                style?: (...) | (...) | (...) | (...) | (...);
                                text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "text";
                            }
                            | {
                                color?: (...)
                                | (...)
                                | (...)
                                | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "tag";
                                useBigTag?: (...) | (...) | (...) | (...);
                            }
                            | {
                                code: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "inlineCode";
                            }
                            | {
                                items: (...)[];
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                type: "list";
                            }
                            | {
                                markdown: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "markdown";
                            }
                            | { type: "processing" }
                            | (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[]
                            | null
                            | undefined,
                        >;
                        sources?:
                            | (
                                | {
                                    fileBoundingBoxes?: ...;
                                    fileName?: ...;
                                    pageNumbers?: ...;
                                    quote?: ...;
                                    type: ...;
                                }
                                | null
                                | undefined
                            )[]
                            | null;
                    }[];
                    footerRows?: | {
                        alignment?: Left
                        | Right
                        | null;
                        cells:
                            | { type: "empty" }
                            | {
                                icon?: (...) | (...) | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                style?: (...) | (...) | (...) | (...) | (...);
                                text?: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "text";
                            }
                            | {
                                color?: (...)
                                | (...)
                                | (...)
                                | (...);
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                text: (...) | (...) | (...) | (...) | (...) | (...) | (...) | (...);
                                type: "tag";
                                useBigTag?: (...) | (...) | (...) | (...);
                            }
                            | {
                                code: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "inlineCode";
                            }
                            | {
                                items: (...)[];
                                sectionTitle?: (...) | (...) | (...);
                                sources?: (...) | (...) | (...);
                                type: "list";
                            }
                            | {
                                markdown: string;
                                sectionTitle?: (...)
                                | (...)
                                | (...);
                                sources?: (...) | (...) | (...);
                                type: "markdown";
                            }
                            | { type: "processing" }
                            | (
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                                | (...)
                            )[]
                            | null
                            | undefined;
                    }[]
                    | null;
                    headers: {
                        hidden?: boolean
                        | null;
                        key: string;
                        text?:
                            | {
                                icon?: | {
                                    fillColor?: ...;
                                    iconKey: ...;
                                    strokeColor?: ...;
                                    strokeWidth?: ...;
                                    type: ...;
                                }
                                | null;
                                sectionTitle?: string
                                | null;
                                sources?: (...)[] | null;
                                style?: Faint | Small | Bold | null;
                                text?: string | number | bigint | boolean | symbol | null;
                                type: "text";
                            }
                            | null;
                    }[];
                    sectionTitle?: string
                    | null;
                    sources?:
                        | (
                            | {
                                fileBoundingBoxes?: (...)[]
                                | null;
                                fileName?: string | null;
                                pageNumbers?: (...)[] | null;
                                quote?: string | null;
                                type: "source";
                            }
                            | null
                            | undefined
                        )[]
                        | null;
                    type: "table";
                }
            )[];
            header: string
            | number
            | bigint
            | boolean
            | symbol
            | null
            | undefined;
            sectionTitle?: string | null;
            sources?:
                | (
                    | {
                        fileBoundingBoxes?: | (
                            | { x1: number; x2: number; y1: number; y2: number }
                            | null
                            | undefined
                        )[]
                        | null;
                        fileName?: string | null;
                        pageNumbers?: (number | null | undefined)[] | null;
                        quote?: string | null;
                        type: "source";
                    }
                    | null
                    | undefined
                )[]
                | null;
            type: "collapsible";
        }