import React from "react"; import type { Workflow } from "../AppProvider/workflow"; /** * Union type representing different lookup keys */ export declare type HeaderItem = "NPS"; interface HeaderItemData { /** * Optional configuration data to be passed when opening a component */ [key: string]: unknown; } export declare type TriggeredHeaderData = { [key in HeaderItem]: HeaderItemData; }; interface ContextProps { workflows: Workflow[]; /** * Will trigger the given header item based on the key, saving any optional data * This is useful for when a component would like to trigger an item in the header through some state change, * such as the NPS component opening or opening a search and prefilling it * * Example of utilizing with NPS * Opening - triggerHeaderItem("NPS", { defaultOption: "Example 1" }) * Closing - triggerHeaderItem("NPS", null) */ triggerHeaderItem?: (item: HeaderItem, data?: unknown) => void; /** * Will return the triggered data, used as a lookup for listening components */ triggeredHeaderData?: TriggeredHeaderData; } declare const ApplicationContext: React.Context; declare const useAppContext: () => ContextProps; export { ApplicationContext, useAppContext }; //# sourceMappingURL=app-context.d.ts.map