import { TraktSearch, TraktSearchResult, TraktIdLookup } from '../../models/trakt-search.model.cjs'; import { TraktClientEndpoint } from '../../models/trakt-client.model.cjs'; import '../trakt-api.filters.cjs'; import '@dvcol/common-utils/common/models'; import '../../models/trakt-entity.model.cjs'; import '../../models/trakt-id.model.cjs'; import '@dvcol/base-http-client'; import '@dvcol/common-utils/http/fetch'; import '../../models/trakt-episode.model.cjs'; import '../../models/trakt-image.model.cjs'; import '../../models/trakt-people.model.cjs'; import '../../trakt-list.model-DUX3arQu.cjs'; import '../../models/trakt-movie.model.cjs'; import '../../models/trakt-season.model.cjs'; import '../../models/trakt-show.model.cjs'; /** * Searches can use queries or ID lookups. Queries will search text fields like the title and overview. * ID lookups are helpful if you have an external ID and want to get the Trakt ID and info. * These methods can search for movies, shows, episodes, people, and lists. */ declare const search: { /** * Search all text fields that a media object contains (i.e. title, overview, etc). Results are ordered by the most relevant score. * Specify the type of results by sending a single value or a comma delimited string for multiple types. * * * Special Characters * * Our search engine (Solr) gives the following characters special meaning when they appear in a query: * * + - && || ! ( ) { } [ ] ^ " ~ * ? : / * * To interpret any of these characters literally (and not as a special character), precede the character with a backslash \ character. * * * Search Fields * * By default, all text fields are used to search for the query. You can optionally specify the fields parameter with a single value or comma delimited string for multiple fields. * Each type has specific fields that can be specified. This can be useful if you want to support more strict searches (i.e. title only). * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * @filters common - {@link TraktApiCommonFilters} * * @see [search-text-query]{@link https://trakt.docs.apiary.io/#reference/search/text-query/get-text-query-results} */ text: TraktClientEndpoint; /** * Lookup items by their Trakt, IMDB, TMDB, or TVDB ID. If you use the search url without a type it might return multiple items if the id_type is not globally unique. * Specify the type of results by sending a single value or a comma delimited string for multiple types. * * @pagination true - {@link TraktApiPagination} * @extended true - {@link TraktApiExtended.Full} * * @see [get-id-lookup-results]{@link https://trakt.docs.apiary.io/#reference/search/id-lookup/get-id-lookup-results} */ id: TraktClientEndpoint; }; export { search };