export type TrueContextCustomScheme = 'truecontext' | 'tcxt' | 'prontoforms'; export type TrueContextUrlFormat = 'scheme' | 'web'; export type TrueContextParameterValue = string | number; export type TrueContextAnswers = Record; export type TrueContextTagOperator = 'AND' | 'OR'; export type TrueContextListType = 'forms' | 'drafts' | 'inbox' | 'sent' | 'groupinbox' | 'resourcelibrary'; export type TrueContextOpenType = Exclude; export type TrueContextSendType = 'forms' | 'drafts' | 'inbox'; export type TrueContextStateFilter = 'Any' | 'AllComplete' | 'AllIncomplete' | 'IncompleteUnassigned'; export type TrueContextDateSearchType = 'AnyDate' | 'DatePeriod' | 'DateRange'; export type TrueContextDatePeriod = 'Today' | 'Yesterday' | 'ThisWeek' | 'ThisMonth' | 'LastHour' | 'TwentyFourHours' | 'SevenDays' | 'ThirtyDays'; export interface TrueContextUrlOptions { /** * Custom URL scheme to use for App-to-App calls. TrueContext recommends `truecontext` or `tcxt`. */ scheme?: TrueContextCustomScheme; /** * Use the documented `https://prontofor.ms` alternative instead of a custom URL scheme. */ format?: TrueContextUrlFormat; } export interface TrueContextCallbacks { /** * Callback URL used when the user saves, sends, or transfers a form. */ xSuccess?: string; /** * Callback URL used when the user cancels an action. */ xCancel?: string; /** * Callback URL used when the app cannot complete the requested action. */ xError?: string; } export interface TrueContextTaggedParameters { /** * Form or resource tag. */ tag?: string; /** * Form or resource tags serialized as the documented `tag.list=[tag1,tag2]` value. */ tagList?: readonly string[]; /** * Match all tags by default, or any tag when set to `OR`. */ tagOperator?: TrueContextTagOperator; } export type TrueContextActionOptions = TrueContextUrlOptions & TrueContextCallbacks; export declare function trueContextUrl(action: string, payload?: object): string;