import { EdinetClientOptions } from "./edinet-xbrl-downloader.js"; import { EdinetDocumentType } from "./edinet-document-type.js"; import { EdinetMetadata } from "./db/edinet-metadata.js"; export interface EdinetConfig extends EdinetClientOptions { dbPath?: string; } export interface FinancialHistory { periodEnd: string; submitDate: string; docID: string; filerName: string; metrics: any; } /** * EDINETライブラリの高レベルファサード。 * ローカルデータベース(メタデータ)とAPI(XBRLダウンロード)を統合します。 */ export declare class Edinet { private repo; private downloader; private parser; constructor(config?: EdinetConfig); /** * 特定の銘柄の財務推移を取得します。 * ローカルDBを使用して書類IDを検索し、その後API(またはキャッシュ)からXBRLを取得します。 * * @param ticker 証券コード (例: "7203") * @param years 取得する年数 (デフォルト: 5) * @param docType 書類種別 (デフォルト: 有価証券報告書 / 120) */ getFinancialHistory(ticker: string, years?: number, docType?: string): Promise; /** * 特定の「イベント」が発生した書類を探します (横断検索)。 * 例: TOB(公開買付)が発表された書類を直近30日分取得する場合などに使用します。 * * @param docType 書類種別 (例: EdinetDocumentType.TenderOfferStatement / "240") * @param days 過去何日分を検索するか (デフォルト: 30) */ findDocumentsByType(docType: EdinetDocumentType | string, days?: number): Promise; /** * 特定の「提出者」が提出した書類を探します (横断検索)。 * 例: "株式会社光通信" や "バークシャー" などで検索。 * * @param filerNamePartial 提出者名の一部 */ findDocumentsByFiler(filerNamePartial: string): Promise; close(): void; }