import { KnownPasteSourceType } from 'roosterjs-editor-types'; import type { BeforePasteEvent, ClipboardData } from 'roosterjs-editor-types'; /** * @internal */ export declare type getSourceInputParams = { htmlAttributes: Record; fragment: DocumentFragment; shouldConvertSingleImage: boolean; clipboardData: ClipboardData; }; /** * @internal */ export declare type getSourceFunction = (props: getSourceInputParams) => boolean; /** * 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 default function getPasteSource(event: BeforePasteEvent, shouldConvertSingleImage: boolean): KnownPasteSourceType;