export interface GDoc { body: Body; } export interface Body { content: StructuralElement[]; } export interface StructuralElement { paragraph?: Paragraph; } export interface Paragraph { elements: ParagraphElement[]; } export interface ParagraphElement { startIndex: number; endIndex: number; textRun?: TextRun; } export interface TextRun { content: string; } export interface Request { replaceAllText?: ReplaceAllTextRequest; insertInlineImage?: InsertInlineImageRequest; } export interface ReplaceAllTextRequest { replaceText: string; containsText: SubstringMatchCriteria; } export interface SubstringMatchCriteria { text: string; matchCase: boolean; } export interface InsertInlineImageRequest { uri: string; objectSize?: Size; location: Location; } export interface Size { height?: Dimension; width?: Dimension; } export interface Dimension { magnitude: number; unit: Unit; } export declare enum Unit { UNIT_UNSPECIFIED = "UNIT_UNSPECIFIED", PT = "PT" } export interface Location { segmentId: string; index: number; }