import { UnityChangeset as UnityChangesetClass, UnityReleaseEntitlement, UnityReleaseStream } from "./unityChangeset.js"; export declare const UnityChangeset: typeof UnityChangesetClass; export type UnityChangeset = UnityChangesetClass; export { UnityReleaseEntitlement, UnityReleaseStream }; /** * Retrieves the Unity changeset for a specific version. * @param version - The Unity version string (e.g., "2020.1.14f1"). * @param db - Optional database URL or true to use the default database. * @returns A Promise that resolves to the UnityChangeset object. * @throws Error if the version is not found. */ export declare function getUnityChangeset(version: string, db?: string | true, includeExternalSources?: boolean): Promise; export declare enum SearchMode { All = 0, Default = 2, PreRelease = 3, LTS = 4, Supported = 6 } export declare enum GroupMode { All = "all", OldestPatch = "oldest-patch", LatestPatch = "latest-patch", LatestLifecycle = "latest-lifecycle" } export interface FilterOptions { min: string; max: string; grep: string; allLifecycles: boolean; xlts: boolean; ignoreAlpha: boolean; ignoreBeta: boolean; } export declare enum OutputMode { Changeset = "changeset", VersionOnly = "version", MinorVersionOnly = "minor-version" } export declare enum FormatMode { None = "none", Json = "json", PrettyJson = "pretty-json" } /** * Lists Unity changesets based on search, filter, group, output, and format options. * @param searchMode - The search mode to use. * @param filterOptions - The filter options to apply. * @param groupMode - The group mode to use. * @param outputMode - The output mode for the results. * @param formatMode - The format mode for the output. * @param db - Optional database URL or true to use the default database. * @returns A Promise that resolves to a formatted string of the results. */ export declare function listChangesets(searchMode: SearchMode, filterOptions: FilterOptions, groupMode: GroupMode, outputMode: OutputMode, formatMode: FormatMode, db?: string | true, includeExternalSources?: boolean): Promise; /** * Searches for Unity changesets based on the specified search mode. * @param searchMode - The search mode to use. * @param db - Optional database URL or true to use the default database. * @returns A Promise that resolves to an array of UnityChangeset objects. * @throws Error if the search mode is not supported. */ export declare function searchChangesets(searchMode: SearchMode, db?: string | true, includeExternalSources?: boolean): Promise; /** * Filters an array of Unity changesets based on the provided options. * @param changesets - The array of UnityChangeset objects to filter. * @param options - The filter options. * @returns An array of filtered UnityChangeset objects. */ export declare function filterChangesets(changesets: UnityChangeset[], options: FilterOptions): UnityChangeset[]; /** * Groups an array of Unity changesets based on the specified group mode. * @param changesets - The array of UnityChangeset objects to group. * @param groupMode - The group mode to use. * @returns An array of grouped UnityChangeset objects. * @throws Error if the group mode is not supported. */ export declare function groupChangesets(changesets: UnityChangeset[], groupMode: GroupMode): UnityChangeset[]; /** * Retrieves all Unity changesets from the database. * @param db - Database URL. If not specified, use the default database. * @returns A Promise that resolves to an array of all UnityChangeset objects from the database. * @throws Error if the database cannot be fetched or is invalid. */ export declare function getAllChangesetsFromDb(db?: string): Promise; /** * Searches for Unity changesets from the database based on the specified search mode. * @param streams - The array of release streams to filter by. * @param db - Database URL. If not specified, use the default database. * @returns A Promise that resolves to an array of UnityChangeset objects from the database. */ export declare function searchChangesetsFromDb(streams: UnityReleaseStream[], db?: string): Promise;