import type { LogEntry, ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery } from '@sigstore/rekor-types'; import type { FetchOptions } from '../types/fetch'; export type { ProposedDSSEEntry, ProposedEntry, ProposedHashedRekordEntry, ProposedIntotoEntry, SearchIndex, SearchLogQuery, }; export type Entry = { uuid: string; } & LogEntry[string]; export type RekorOptions = { baseURL: string; } & FetchOptions; /** * Rekor API client. */ export declare class Rekor { private fetch; private baseUrl; constructor(options: RekorOptions); /** * Create a new entry in the Rekor log. * @param propsedEntry {ProposedEntry} Data to create a new entry * @returns {Promise} The created entry */ createEntry(propsedEntry: ProposedEntry): Promise; /** * Get an entry from the Rekor log. * @param uuid {string} The UUID of the entry to retrieve * @returns {Promise} The retrieved entry */ getEntry(uuid: string): Promise; /** * Search the Rekor log index for entries matching the given query. * @param opts {SearchIndex} Options to search the Rekor log * @returns {Promise} UUIDs of matching entries */ searchIndex(opts: SearchIndex): Promise; /** * Search the Rekor logs for matching the given query. * @param opts {SearchLogQuery} Query to search the Rekor log * @returns {Promise} List of matching entries */ searchLog(opts: SearchLogQuery): Promise; }