import { DraftDecorator, DraftDecoratorComponentProps } from 'draft-js'; import { ComponentType } from 'react'; import { CustomLinkifyRule } from '../@utils'; export interface LinkEntityData { href: string; } export interface DraftDecoratorComponentPropsWithOffsetKey extends DraftDecoratorComponentProps { /** * A internal props of draft-js. may be removed in the future. */ offsetKey: string; } export interface LinkComponentProps extends DraftDecoratorComponentPropsWithOffsetKey { href: string; } export interface LinkDecoratorOptions { component?: ComponentType; rules?: CustomLinkifyRule[]; } export declare function createLinkDecorator({ component, rules, }: LinkDecoratorOptions): DraftDecorator; //# sourceMappingURL=link-decorator.d.ts.map