import type { ValueOf } from 'type-fest'; import { PlexObject } from './base/plexObject.ts'; import type { AgentData, MatchSearchResult } from './search.types.ts'; export declare class SearchResult extends PlexObject { static TAG: string; guid: string; name: string; score: number; year: number; lifespanEnded: boolean; protected _loadData(data: MatchSearchResult): void; } /** * Represents a single Agent */ export declare class Agent extends PlexObject { static TAG: string; hasAttribution?: boolean; hasPrefs: boolean; identifier: string; primary?: boolean; shortIdentifier: string; name?: string; id?: number; mediaType?: number; languageCode?: string; protected _loadData(data: AgentData): void; } export declare const SEARCHTYPES: { readonly movie: 1; readonly show: 2; readonly season: 3; readonly episode: 4; readonly trailer: 5; readonly comic: 6; readonly person: 7; readonly artist: 8; readonly album: 9; readonly track: 10; readonly picture: 11; readonly clip: 12; readonly photo: 13; readonly photoalbum: 14; readonly playlist: 15; readonly playlistFolder: 16; readonly collection: 18; readonly optimizedVersion: 42; readonly userPlaylistItem: 1001; }; type SearchTypesValues = ValueOf; /** * Returns the integer value of the library string type. * @param libtype to lookup (movie, show, season, episode, artist, album, track, collection) */ export declare function searchType(libtype?: string | number | keyof typeof SEARCHTYPES | SearchTypesValues): SearchTypesValues; export {};