Files
study-bible-project/node_modules/docx/dist/file/paragraph/links/hyperlink.d.ts
T

26 lines
933 B
TypeScript

import { XmlComponent } from '../../xml-components';
import { ParagraphChild } from '../paragraph';
export declare const HyperlinkType: {
readonly INTERNAL: "INTERNAL";
readonly EXTERNAL: "EXTERNAL";
};
export type IInternalHyperlinkOptions = {
readonly children: readonly ParagraphChild[];
readonly anchor: string;
};
export type IExternalHyperlinkOptions = {
readonly children: readonly ParagraphChild[];
readonly link: string;
};
export declare class ConcreteHyperlink extends XmlComponent {
readonly linkId: string;
constructor(children: readonly ParagraphChild[], relationshipId: string, anchor?: string);
}
export declare class InternalHyperlink extends ConcreteHyperlink {
constructor(options: IInternalHyperlinkOptions);
}
export declare class ExternalHyperlink extends XmlComponent {
readonly options: IExternalHyperlinkOptions;
constructor(options: IExternalHyperlinkOptions);
}