import type { EditorEnvironment } from 'roosterjs-content-model-types'; /** * @internal * The input parameters for getDocumentSource function */ export declare type GetSourceInputParams = { /** * HTML attributes from the content that is being checked */ htmlAttributes: Record; /** * Document fragment of the checked content */ fragment: DocumentFragment | Document; /** * Whether convert single image is enabled */ shouldConvertSingleImage?: boolean; /** * Array of tag names of the first level child nodes */ htmlFirstLevelChildTags?: string[]; /** * The clipboard item types */ clipboardItemTypes?: string[]; /** * The editor environment */ environment: Omit; /** * The raw HTML string from clipboard */ rawHtml?: string | null; }; /** * @internal * Represent the types of sources to handle in the Paste Plugin */ export declare type KnownPasteSourceType = 'wordDesktop' | 'excelDesktop' | 'excelOnline' | 'powerPointDesktop' | 'googleSheets' | 'wacComponents' | 'default' | 'singleImage' | 'excelNonNativeEvent' | 'oneNoteDesktop'; /** * @internal */ export declare type GetSourceFunction = (props: GetSourceInputParams) => boolean; /** * @internal * This function tries to get the source of the Pasted content * @param event the before paste event * @param shouldConvertSingleImage Whether convert single image is enabled. * @returns The Type of pasted content, if no type found will return {KnownSourceType.Default} */ export declare function getDocumentSource(param: GetSourceInputParams): KnownPasteSourceType;