import { InstalmentOptions, ProgramOptions, SeasonOptions, SeriesOptions, TvPageOptions, TvSectionOptions, TvSubPagesOptions } from '../interfaces'; /** ______ _____ ____ _ _ _______ _____ _______ ______ _____ ____ _______ __ _____ _____ ______ _____ | ____| __ \ / __ \| \ | |__ __| ___ / ____| /\|__ __| ____/ ____|/ __ \| __ \ \ / / | __ \ /\ / ____| ____|/ ____| | |__ | |__) | | | | \| | | | ( _ ) | | / \ | | | |__ | | __| | | | |__) \ \_/ /_____| |__) / \ | | __| |__ | (___ | __| | _ /| | | | . ` | | | / _ \/\ | | / /\ \ | | | __|| | |_ | | | | _ / \ /______| ___/ /\ \| | |_ | __| \___ \ | | | | \ \| |__| | |\ | | | | (_> < | |____ / ____ \| | | |___| |__| | |__| | | \ \ | | | | / ____ \ |__| | |____ ____) | |_| |_| \_\\____/|_| \_| |_| \___/\/ \_____/_/ \_\_| |______\_____|\____/|_| \_\ |_| |_| /_/ \_\_____|______|_____/ */ /** * Get a given tv page, like frontDeskTv * @param {string} pageId - The id of the page * @param {TvPageOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getGivenTvPage('frontDeskTv', { limit: 2 }) * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getGivenTvPage: (pageId: string, options?: TvPageOptions) => Promise; /** * Get all tv sub-pages * @param {TvSubPagesOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getAllTVSubPages() * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getAllTVSubPages: (options?: TvSubPagesOptions) => Promise; /** * Get the front page of tv * @param {TvFrontPageOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTVFrontPage() * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTVFrontPage: (options?: TvPageOptions) => Promise; /** * Get the tv category page * @param {TvCategoryPageOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTVCategoryPage() * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTVCategoryPage: (options?: TvPageOptions) => Promise; /** * Get a given section for a tv page * @param {string} pageId - The id of the page * @param {string} sectionTitle - The title of the section * @param {TvSectionOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getGivenSectionForTVPage('frontDeskTv', 'anbefalt') * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getGivenSectionForTVPage: (pageId: string, sectionTitle: string, options?: TvSectionOptions) => Promise; /** * Get a given offline tv page * @param {string} pageId - The id of the page * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getGivenOfflineTVPage('frontDeskTv') * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getGivenOfflineTVPage: (pageId: string) => Promise; /** _____ _____ ____ _____ _____ __ __ _____ _____ ______ _____ _____ ______ _____ _____ _____ ______ _____ | __ \| __ \ / __ \ / ____| __ \ /\ | \/ |/ ____| ___ / ____| ____| __ \|_ _| ____|/ ____| | __ \ /\ / ____| ____|/ ____| | |__) | |__) | | | | | __| |__) | / \ | \ / | (___ ( _ ) | (___ | |__ | |__) | | | | |__ | (___ ______| |__) / \ | | __| |__ | (___ | ___/| _ /| | | | | |_ | _ / / /\ \ | |\/| |\___ \ / _ \/\ \___ \| __| | _ / | | | __| \___ \______| ___/ /\ \| | |_ | __| \___ \ | | | | \ \| |__| | |__| | | \ \ / ____ \| | | |____) | | (_> < ____) | |____| | \ \ _| |_| |____ ____) | | | / ____ \ |__| | |____ ____) | |_| |_| \_\\____/ \_____|_| \_\/_/ \_\_| |_|_____/ \___/\/ |_____/|______|_| \_\_____|______|_____/ |_| /_/ \_\_____|______|_____/ */ /** * Get the front page of a program * @param {string} programId - The id of the program * @param {ProgramOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getProgramPage('KOIF75001319') * @throws {InvalidProgramIdError} - If the program id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getProgramPage: (programId: string, options?: ProgramOptions) => Promise; /** * Get the navigation aid for a program * @param {string} programId - The id of the program * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getNavigationAidForProgram('KOIF75001319') * @throws {InvalidProgramIdError} - If the program id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getNavigationAidForProgram: (programId: string) => Promise; /** * Get the navigation aid for a offline program * @param {string} programId - The id of the program * @param {ProgramOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getNavigationAidForOfflineProgram('KOIF75001319') * @throws {InvalidProgramIdError} - If the program id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getNavigationAidForOfflineProgram: (programId: string, options?: ProgramOptions) => Promise; /** * Gets the specified TV series * @param {string} seriesId - The id of the series * @param {SeriesOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTVSeries('kongen-av-gulset') * @throws {InvalidProgramIdError} - If the series id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTVSeries: (seriesId: string, options?: SeriesOptions) => Promise; /** * Gets the specified TV series extramaterials * @param {string} seriesId - The id of the series * @param {ProgramOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTVSeriesExtramaterials('kongen-av-gulset') * @throws {InvalidProgramIdError} - If the series id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTVSeriesExtramaterials: (seriesId: string, options?: ProgramOptions) => Promise; /** * Gets the type of the specified TV series * @param {string} seriesId - The id of the series * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTypeOfTVSeries('kongen-av-gulset') * @throws {InvalidProgramIdError} - If the series id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTypeOfTVSeries: (seriesId: string) => Promise; /** * Gets the specified TV series instalments * @param {string} seriesId - The id of the series * @param {InstalmentOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getTvSeriesInstalments('kongen-av-gulset') * @throws {InvalidProgramIdError} - If the series id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getTvSeriesInstalments: (seriesId: string, options?: InstalmentOptions) => Promise; /** * Gets the specified TV series season * @param {string} seriesId - The id of the series * @param {string | number} seasonId - The id of the season * @param {SeasonOptions} options - The options for the request (default: undefined) * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getSeriesSeason('kongen-av-gulset', 1) * @throws {InvalidProgramIdError} - If the series id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getSeriesSeason: (seriesId: string, seasonId: string | number, options?: SeasonOptions) => Promise; /** * Gets the dimensions for the specified program * @param {string} programId - The id of the program * @returns {Promise} - The response from the query, a custom error, or an axios error for request failed * @example getDimensionsForProgram('KOIF75001319') * @throws {InvalidProgramIdError} - If the program id is invalid * @throws {PageNotFoundError} if the page doesn't exist * @throws {RateLimitError} if the rate limit is exceeded * @throws {AgeRestrictionError} if the item is age restricted * @throws {AxiosError} if the request fails */ export declare const getDimensionsForProgram: (programId: string) => Promise;