import type { RichText } from "@notion-md-converter/types";
export type CaptionMetadataType = Record<string, string | undefined>;
export declare class CaptionMetadata {
    private readonly metadata;
    private readonly text;
    private constructor();
    /**
     * RichTextからCaptionMetadataを生成する
     * example:
     * ex1) メタデータが存在しない場合
     * sample caption
     * => { metadata: {}, text: [sample caption] }
     *
     * ex2) メタデータが存在する場合
     * hoge=fuga:sample caption
     * => { metadata: { hoge: "fuga" }, text: [sample caption] }
     */
    static fromRichText(richText: RichText[]): CaptionMetadata;
    /**
     * メタデータを取得する
     */
    getMetadata(): CaptionMetadataType;
    /**
     * テキスト部分のRichTextを取得する
     */
    getText(): RichText[];
    /**
     * 特定のメタデータの値を取得する
     */
    getMetadataValue(key: string): string | undefined;
    /**
     * メタデータが存在するかどうかを確認する
     */
    hasMetadata(key: string): boolean;
}
