{"version":3,"file":"youtube.d.ts","names":["Document","BaseDocumentLoader","YoutubeConfig","YoutubeLoader","Omit","Promise"],"sources":["../../../src/document_loaders/web/youtube.d.ts"],"sourcesContent":["import { Document } from \"@langchain/core/documents\";\nimport { BaseDocumentLoader } from \"@langchain/core/document_loaders/base\";\n/**\n * Configuration options for the YoutubeLoader class. Includes properties\n * such as the videoId, language, and addVideoInfo.\n */\ninterface YoutubeConfig {\n    videoId: string;\n    language?: string;\n    addVideoInfo?: boolean;\n}\n/**\n * A document loader for loading data from YouTube videos. It uses the\n * youtubei.js library to fetch the transcript and video metadata.\n * @example\n * ```typescript\n * const loader = new YoutubeLoader(\n *   \"https:\n *   \"en\",\n *   true,\n * );\n * const docs = await loader.load();\n * ```\n */\nexport declare class YoutubeLoader extends BaseDocumentLoader {\n    private videoId;\n    private language?;\n    private addVideoInfo;\n    constructor(config: YoutubeConfig);\n    /**\n     * Extracts the videoId from a YouTube video URL.\n     * @param url The URL of the YouTube video.\n     * @returns The videoId of the YouTube video.\n     */\n    private static getVideoID;\n    /**\n     * Creates a new instance of the YoutubeLoader class from a YouTube video\n     * URL.\n     * @param url The URL of the YouTube video.\n     * @param config Optional configuration options for the YoutubeLoader instance, excluding the videoId.\n     * @returns A new instance of the YoutubeLoader class.\n     */\n    static createFromUrl(url: string, config?: Omit<YoutubeConfig, \"videoId\">): YoutubeLoader;\n    /**\n     * Loads the transcript and video metadata from the specified YouTube\n     * video. It uses the youtubei.js library to fetch the video metadata and transcripts.\n     * @returns An array of Documents representing the retrieved data.\n     */\n    load(): Promise<Document[]>;\n}\nexport {};\n//# sourceMappingURL=youtube.d.ts.map"],"mappings":";;;;;;;AAC2E;AAuB3E;UAlBUE,aAAAA,CAsBcA;EAc4BA,OAAAA,EAAAA,MAAAA;EAALE,QAAAA,CAAAA,EAAAA,MAAAA;EAAiCD,YAAAA,CAAAA,EAAAA,OAAAA;;;;AAlBnB;;;;;;;;;;;cAAxCA,aAAAA,SAAsBF,kBAAAA;;;;sBAInBC;;;;;;;;;;;;;;6CAcuBE,KAAKF,4BAA4BC;;;;;;UAMpEE,QAAQL"}