import type { PortalItemUrlInfo } from "./shared"; import type { Task } from "../../Task"; import type { ChannelProvider } from "../core/ChannelProvider"; /** * Represents a parameter used when running a Print or Report job. * @product This is intended for internal use only within VertiGIS Studio products. */ export interface JobParameter { containsMultipleValues?: boolean; containsSingleValue?: boolean; description?: string; item?: any; itemData?: any; name: string; purpose?: string; value?: any; valueType?: string; values?: any; visible?: boolean; } /** * Checks the status of a Print/Report job. * @param serviceUrl The URL of the Printing or Reporting service. * @param token The Bearer token. * @param ticket The ticket returned from the original job/run request. * @param timeDelay The time in milliseconds to wait before making a request. * @param channelProvider The ChannelProvider to use for sending requests. * @param cancellationToken The cancellation token. */ export declare function checkResult(serviceUrl: string, token: string | undefined, ticket: string, timeDelay: number, channelProvider: ChannelProvider, cancellationToken: Task): Promise; /** * Retrieves a list of the names of all map controls in the specified Report or Print template. * @param portalItemUrlInfo The PortalItemUrlInfo containing the portal URL and AGOL/Portal itemId. * @param serviceUrl The URL to the printing/reporting service. * @param token The bearer token for the printing/reporting service. * @param channelProvider The ChannelProvider to use for sending requests. * @param cancellationToken The cancellation token. */ export declare function getMapControlNames(portalItemUrlInfo: PortalItemUrlInfo, serviceUrl: string, token: string | undefined, channelProvider: ChannelProvider, cancellationToken: Task): Promise; /** * Gets a bearer token from the Workflow/Printing/Reporting service. * @param serviceUrl The URL to the workflow/printing/reporting service. * @param portalUrl The URL to an ArcGIS portal. * @param token The token for accessing the ArcGIS portal. * @param channelProvider The ChannelProvider to use when making a web request. */ export declare function getServiceToken(serviceUrl: string, portalUrl: string, token: string, channelProvider: ChannelProvider): Promise; /** * Runs a Server Workflow, Print or Report job. * @param serviceUrl The URL to the Workflow/Printing/Reporting service. * @param runToken The bearer token. * @param data The data to send when running the job. * @param channelProvider The ChannelProvider to use when making a web request. */ export declare function runJob(serviceUrl: string, runToken: string | undefined, data: object, channelProvider: ChannelProvider): Promise; export declare function getServiceUrl(itemUrl: string, service: "printing" | "reporting"): string;