import { ActionData, ShortcutData } from "~/main"; import { ActionDefinition } from "~/actions"; import { DictionaryItem } from "~/actions/dictionary"; export declare let container: HTMLElement; export declare let containers: HTMLElement[]; export declare let containerIndex: number; interface ActionParameters { [key: string]: any; } export declare const controlFlowStart = 0; export declare const controlFlowItem = 1; export declare const controlFlowEnd = 2; export declare function renderShortcut(actionData: Array): void; export declare function resetContainers(): void; export declare function newContainer(): void; export declare function prevContainer(): void; export declare function setContainer(newContainer: HTMLElement): void; export declare function getActionByUUID(uuid: string): ActionDefinition | null; export declare function renderActionIcon(icon?: string, color?: string, background?: string): string; export declare function renderActionHeader(actionData: ActionDefinition, ...content: HTMLElement[]): HTMLElement; export declare function renderContainer(...content: HTMLElement[]): HTMLElement; export declare function renderHeader(media: string | null, title: string): HTMLElement; export declare function renderActionContent(...content: HTMLElement[]): HTMLElement; export declare function renderList(...content: HTMLElement[]): HTMLElement; export declare function renderInsetList(...content: HTMLElement[]): HTMLElement; export declare function renderListItem(image?: HTMLElement | string | null, title?: HTMLElement | string, after?: HTMLElement | string): HTMLElement; export declare function renderParameters(actionData: ActionDefinition | null, parameters: ActionParameters): HTMLElement; export declare const contentItemTypes: { WFAppStoreAppContentItem: string; WFArticleContentItem: string; WFContactContentItem: string; WFDateContentItem: string; WFEmailAddressContentItem: string; WFDictionaryContentItem: string; WFFolderContentItem: string; WFGenericFileContentItem: string; WFImageContentItem: string; WFiTunesProductContentItem: string; WFLocationContentItem: string; WFDCMapsLinkContentItem: string; WFAVAssetContentItem: string; WFPDFContentItem: string; WFPhoneNumberContentItem: string; WFRichTextContentItem: string; WFSafariWebPageContentItem: string; WFStringContentItem: string; WFNumberContentItem: string; WFURLContentItem: string; }; export declare function renderInputs(shortcut: ShortcutData): void; export declare function renderVariables(actionData: Array): void; export declare function renderDetails(shortcut: ShortcutData): void; export declare function renderBlockHeader(header: string): HTMLElement; export declare function renderScrollableContent(...content: HTMLElement[]): HTMLElement; interface SegmentedButton { text: string; } export declare function renderSegmentedControl(buttons: Array): HTMLElement; export declare function renderDictionary(data: Array): HTMLElement; export declare function renderTreeItems(data: Array): HTMLElement[]; export declare function renderTreeItem(contents: HTMLElement[], ...children: HTMLElement[]): HTMLElement; export declare function renderLabel(label: string, ...children: HTMLElement[]): HTMLElement; export declare function renderInlineIcon(icon: string): HTMLElement; declare enum NoInputBehavior { ShowError = "WFWorkflowNoInputBehaviorShowError", GetClipboard = "WFWorkflowNoInputBehaviorGetClipboard", AskForInput = "WFWorkflowNoInputBehaviorAskForInput" } export interface WFWorkflowNoInputBehavior { Name: NoInputBehavior; Parameters?: NoInputBehaviorParameters; } interface NoInputBehaviorParameters { Error?: string; ItemClass?: string; } export interface StopAndOutputParameters { WFOutput: string | object; WFNoOutputSurfaceBehavior: string; WFResponse: string | object; } export declare function renderOutputSurfaceBehavior(WFNoOutputSurfaceBehavior: any, WFResponse?: any): HTMLElement; export declare function renderShortcutOutputSurfaceBehavior(shortcut: ShortcutData): HTMLElement; export {};