/**!
 * @author Elgato
 * @module elgato/streamdeck
 * @license MIT
 * @copyright Copyright (c) Corsair Memory Inc.
 */
/**
 * Defines the structure of a custom layout file.
 */
type Layout$1 = {
    /**
     * JSON schema responsible for describing the manifest's data format and validation.
     */
    $schema?: string;
    /**
     * Unique identifier associated with the layout.
     */
    id: string;
    /**
     * Items within the layout.
     */
    items: LayoutItem[];
};
/**
 * A layout item.
 * @discriminator type
 */
type LayoutItem = Bar | GBar | Pixmap | Text;
/**
 * Extended information used to define a layout item within a layout's JSON file.
 */
type LayoutItemBase<T extends string> = {
    /**
     * Background color represented as a named color, hexadecimal value, or gradient. Gradients can be defined by specifying multiple color-stops separated by commas, in the following
     * format `[{offset}:{color}[,]]`.
     *
     * **Examples:**
     * - "pink"
     * - "#204cfe" (Elgato blue)
     * - "0:#ff0000,0.5:yellow,1:#00ff00" (Gradient)
     */
    background?: string;
    /**
     * Determines whether the item is enabled (i.e. visible); default is `true`.
     */
    enabled?: boolean;
    /**
     * Unique name used to identify the layout item. When calling `setFeedback` this value should be used as the key as part of the object that represents the feedback.
     *
     * Note: The `key` of the layout item cannot be changed at runtime.
     * @pattern
     * ^[A-Za-z0-9\-_]+$
     * @errorMessage
     * String must only contain alphanumeric characters (A-z, 0-9), hyphens (-), and underscores (_)
     */
    key: string;
    /**
     * Defines the opacity of the item being shown based on a single-decimal value ranging from `0..1`, e.g. `0.1`, `0.2`, etc. with `0` being invisible and `1` being fully visible.
     * Default is `1`.
     */
    opacity?: Opacity;
    /**
     * Array defining the items coordinates in the format `[x, y, width, height]`; coordinates must be within canvas size of 200 x 100, e.g. [0, 0, 200, 100]. Items with the same `zOrder`
     * must **not** have an overlapping `rect`.
     *
     * Note: The `rect` of the layout item cannot be changed at runtime.
     */
    rect: Rect;
    /**
     * Type of layout item this instance represents, e.g. "pixmap", "bar", etc.
     *
     * Note: The `type` of the layout item cannot be changed at runtime.
     */
    type: T;
    /**
     * Z-order of the item, used to layer items within a layout; must be between 0-700. Items with the same `zOrder` must **not** have an overlapping `rect`. Default is `0`.
     */
    zOrder?: ZOrder;
};
/**
 * Bar layout item used to render a horizontal bar with a filler, e.g. a progress bar. The amount to fill the bar by can be specified by setting the `value`.
 */
type Bar<T extends string = "bar"> = LayoutItemBase<T> & {
    /**
     * Bar background color represented as a named color, hexadecimal value, or gradient. Default is `darkGray`. Gradients can be defined by specifying multiple color-stops separated
     * by commas, in the following format `[{offset}:{color}[,]]`.
     *
     * **Examples:**
     * - "pink"
     * - "#204cfe" (Elgato blue)
     * - "0:#ff0000,0.5:yellow,1:#00ff00" (Gradient)
     * @example
     * "darkGray"
     */
    bar_bg_c?: string;
    /**
     * Border color represented as a named color, or hexadecimal value. Default is `white`.
     *
     * **Examples:**
     * - "pink"
     * - "#204cfe" (Elgato blue)
     * @example
     * "white"
     */
    bar_border_c?: string;
    /**
     * Fill color of the bar represented as a named color, hexadecimal value, or gradient. Default is `white`. Gradients can be defined by specifying multiple color-stops separated
     * by commas, in the following format `[{offset}:{color}[,]]`.
     *
     * **Examples:**
     * - "pink"
     * - "#204cfe" (Elgato blue)
     * - "0:#ff0000,0.5:yellow,1:#00ff00" (Gradient)
     * @example
     * "white"
     */
    bar_fill_c?: string;
    /**
     * Width of the border around the bar, as a whole number. Default is `2`.
     * @example
     * 2
     */
    border_w?: number;
    /**
     * Defines the range of the value the bar represents, e.g. 0-20, 0-100, etc.
     */
    range?: Range;
    /**
     * Sub-type used to determine the type of bar to render. Default is {@link BarSubType.Groove} (4).
     *
     * **Options**
     * - Rectangle (0)
     * - DoubleRectangle (1)
     * - Trapezoid (2)
     * - DoubleTrapezoid (3)
     * - Groove (4)
     */
    subtype?: (typeof BarSubType)[keyof typeof BarSubType];
    /**
     * Value used to determine how much of the bar is filled. Correlates with the item's `range` if specified in the layout's JSON definition; default range is `0..100`.
     */
    value: number;
};
/**
 * Defines the range of the value the bar represents, e.g. 0-20, 0-100, etc.
 */
type Range = {
    /**
     * Minimum value of the bar.
     */
    min: number;
    /**
     * Maximum value of the bar.
     */
    max: number;
};
/**
 * Bar layout item used to render a horizontal bar with an indicator represented as a triangle beneath the bar. The location of the indicator can be specified by setting the `value`.
 */
type GBar = Bar<"gbar"> & {
    /**
     * Height of the bar's indicator. Default is `10`.
     * @example
     * 10
     */
    bar_h?: number;
};
/**
 * Image layout item used to render an image sourced from either a local file located under the plugin's folder, or base64 encoded `string`. The `value` defines the image.
 */
type Pixmap = LayoutItemBase<"pixmap"> & {
    /**
     * Image to render; this can be either a path to a local file within the plugin's folder, a base64 encoded `string` with the mime type declared (e.g. PNG, JPEG, etc.), or an SVG
     * `string`.
     *
     * **Examples:**
     * - "imgs/Logo.png"
     * - "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MHB0IiBoZWlnaHQ9…"
     */
    value?: string;
};
/**
 * Text layout item used to render text within a layout. **Note**, when adding a text item to the layout's JSON definition, setting the `key` to the `"title"` keyword will enable the
 * user to specify the font's
 * settings via the property inspector, and will cause `setTitle` to update this item.
 */
type Text = LayoutItemBase<"text"> & {
    /**
     * Alignment of the text. Default is `"center"`. **Note**, when the `key` of this layout item is set to `"title"` within the layout's JSON definition, these values will be ignored
     * in favour of the user's preferred title settings, as set in property inspector.
     */
    alignment?: "center" | "left" | "right";
    /**
     * Color of the font represented as a named color, or hexadecimal value. Default is `white`. **Note**, when the `key` of this layout item is set to `"title"` within the layout's
     * JSON definition, these values will be ignored in favour of the user's preferred title settings, as set in property inspector.
     *
     * **Examples:**
     * - "pink"
     * - "#204cfe" (Elgato blue)
     */
    color?: string;
    /**
     * Defines how the font should be rendered. **Note**, when the `key` of this layout item is set to `"title"` within the layout's JSON definition, these values will be ignored in
     * favour of the user's preferred title settings, as set in property inspector.
     */
    font?: {
        /**
         * Size of the font, in pixels, represented as a whole number.
         *
         * **Note**, when the `key` of this layout item is set to `"title"` within the layout's JSON definition, this value will be ignored in favour of the user's preferred title settings, as set in property inspector.
         */
        size?: number;
        /**
         * Weight of the font; value must be a whole `number` in the range of `100..1000`. **Note**, when the `key` of this layout item is set to `"title"` within the layout's JSON
         * definition, this value will be ignored in favour of the user's preferred title settings, as set in property inspector.
         * @minimum 100
         * @maximum 1000
         */
        weight?: number;
    };
    /**
     * Defines how overflowing text should be rendered on the layout.
     * - clip, truncates the text at the boundary of the element (default).
     * - ellipsis, truncates the text prior to the boundary of the element, and adds an ellipsis (…) to the end.
     * - fade, applies a fade-gradient over the end of the text.
     * @default ellipsis
     */
    "text-overflow"?: "clip" | "ellipsis" | "fade";
    /**
     * Text to be displayed.
     */
    value?: string;
};
/**
 * List of available types that can be applied to {@link Bar} and {@link GBar} to determine their style.
 */
declare enum BarSubType {
    /**
     * Rectangle bar; the bar fills from left to right, determined by the {@link Bar.value}, similar to a standard progress bar.
     */
    Rectangle = 0,
    /**
     * Rectangle bar; the bar fills outwards from the centre of the bar, determined by the {@link Bar.value}.
     * @example
     * // Value is 2, range is 1-10.
     * // [  ███     ]
     * @example
     * // Value is 10, range is 1-10.
     * // [     █████]
     */
    DoubleRectangle = 1,
    /**
     * Trapezoid bar, represented as a right-angle triangle; the bar fills from left to right, determined by the {@link Bar.value}, similar to a volume meter.
     */
    Trapezoid = 2,
    /**
     * Trapezoid bar, represented by two right-angle triangles; the bar fills outwards from the centre of the bar, determined by the {@link Bar.value}. See {@link BarSubType.DoubleRectangle}.
     */
    DoubleTrapezoid = 3,
    /**
     * Rounded rectangle bar; the bar fills from left to right, determined by the {@link Bar.value}, similar to a standard progress bar.
     */
    Groove = 4
}
/**
 * Array defining the items coordinates and size.
 */
type Rect = [x: X, y: Y, width: Width, height: Height];
/**
 * X coordinate of the rectangle.
 * @minimum 0
 * @maximum 200
 */
type X = number;
/**
 * Y coordinate of the rectangle.
 * @minimum 0
 * @maximum 100
 */
type Y = number;
/**
 * Width of the rectangle.
 * @minimum 0
 * @maximum 200
 */
type Width = number;
/**
 * Height of the rectangle.
 * @minimum 0
 * @maximum 100
 */
type Height = number;
/**
 * Numerical value used to specify the opacity of an item within a layout.
 */
type Opacity = 0 | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 | 1;
/**
 * Numerical value used to specify the z-order of an item, allowing for items to be layered within a layout.
 * @minimum 0
 * @maximum 700
 */
type ZOrder = number;

/**
 * Stream Deck device types.
 */
declare enum DeviceType {
    /**
     * Stream Deck, comprised of 15 customizable LCD keys in a 5 x 3 layout.
     */
    StreamDeck = 0,
    /**
     * Stream Deck Mini, comprised of 6 customizable LCD keys in a 3 x 2 layout.
     */
    StreamDeckMini = 1,
    /**
     * Stream Deck XL, comprised of 32 customizable LCD keys in an 8 x 4 layout.
     */
    StreamDeckXL = 2,
    /**
     * Stream Deck Mobile, for iOS and Android.
     */
    StreamDeckMobile = 3,
    /**
     * Corsair G Keys, available on select Corsair keyboards.
     */
    CorsairGKeys = 4,
    /**
     * Stream Deck Pedal, comprised of 3 customizable pedals.
     */
    StreamDeckPedal = 5,
    /**
     * Corsair Voyager laptop, comprising 10 buttons in a horizontal line above the keyboard.
     */
    CorsairVoyager = 6,
    /**
     * Stream Deck +, comprised of 8 customizable LCD keys in a 4 x 2 layout, a touch strip, and 4 dials.
     */
    StreamDeckPlus = 7,
    /**
     * SCUF controller G keys, available on select SCUF controllers, for example SCUF Envision.
     */
    SCUFController = 8,
    /**
     * Stream Deck Neo, comprised of 8 customizable LCD keys in a 4 x 2 layout, an info bar, and 2 touch points for page navigation.
     */
    StreamDeckNeo = 9,
    /**
     * Stream Deck Studio, comprised of 32 customizable LCD keys in a 16 x 2 layout, and 2 dials (1 on either side).
     */
    StreamDeckStudio = 10
}

/**
 * Gets the element type of the {@template ArrayType}.
 */
type ElementOf<ArrayType extends readonly unknown[] | undefined> = ArrayType extends readonly (infer ElementType)[] ? ElementType : never;

/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest_6_9 = Omit<Manifest, "Software"> & {
    /**
     * Determines the Stream Deck software requirements for this plugin.
     */
    Software: {
        /**
         * Minimum version of the Stream Deck application required for this plugin to run.
         */
        MinimumVersion: "6.9";
    };
};

/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest_6_6 = Omit<Manifest_6_9, "Actions" | "SDKVersion" | "Software" | "SupportURL"> & {
    /**
     * Collection of actions provided by the plugin, and all of their information; this can include actions that are available to user's via the actions list, and actions that are
     * hidden to the user but available to pre-defined profiles distributed with the plugin (`Manifest.Actions.VisibleInActionsList`).
     */
    Actions: Omit<ElementOf<Manifest_6_9["Actions"]>, "SupportURL">[];
    /**
     * Determines the Stream Deck software requirements for this plugin.
     */
    Software: {
        /**
         * Minimum version of the Stream Deck application required for this plugin to run.
         */
        MinimumVersion: "6.6" | "6.7" | "6.8";
    };
    /**
     * Preferred SDK version; this should _currently_ always be 2.
     */
    SDKVersion: 2;
};

/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest_6_5 = Omit<Manifest_6_6, "Actions" | "Profiles" | "Software"> & {
    /**
     * Collection of actions provided by the plugin, and all of their information; this can include actions that are available to user's via the actions list, and actions that are
     * hidden to the user but available to pre-defined profiles distributed with the plugin (`Manifest.Actions.VisibleInActionsList`).
     */
    Actions: Omit<ElementOf<Manifest_6_6["Actions"]>, "OS">[];
    /**
     * Collection of pre-defined profiles that are distributed with this plugin. Upon the plugin switching to the profile, the user will be prompted to install the profiles.
     *
     * Note: Plugins may only switch to profiles distributed with the plugin, as defined within the manifest, and cannot access user-defined profiles.
     *
     * **Also see:**
     * `streamDeck.profiles.switchToProfile(...)`
     */
    Profiles?: Omit<ElementOf<Manifest_6_6["Profiles"]>, "AutoInstall">[];
    /**
     * Determines the Stream Deck software requirements for this plugin.
     */
    Software: {
        /**
         * Minimum version of the Stream Deck application required for this plugin to run.
         */
        MinimumVersion: "6.5";
    };
};

/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest_6_4 = Omit<Manifest_6_5, "Software"> & {
    /**
     * Determines the Stream Deck software requirements for this plugin.
     */
    Software: {
        /**
         * Minimum version of the Stream Deck application required for this plugin to run.
         */
        MinimumVersion: "6.4";
    };
};

/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest$1 = JsonSchema<Manifest_6_4> | JsonSchema<Manifest_6_5> | JsonSchema<Manifest_6_6> | JsonSchema<Manifest_6_9>;

/**
 * @inheritdoc
 */
type JsonSchema<T> = T & {
    /**
     * JSON schema responsible for describing the manifest's data format and validation.
     */
    $schema?: string;
};

/**
 * Determines the Stream Deck software requirements for this plugin.
 */
type Software = {
    /**
     * Minimum version of the Stream Deck application required for this plugin to run.
     */
    MinimumVersion: Manifest$1["Software"]["MinimumVersion"];
};
/**
 * Defines the plugin and available actions, and all information associated with them, including the plugin's entry point, all iconography, action default behavior, etc.
 */
type Manifest = {
    /**
     * Collection of actions provided by the plugin, and all of their information; this can include actions that are available to user's via the actions list, and actions that are
     * hidden to the user but available to pre-defined profiles distributed with the plugin (`Manifest.Actions.VisibleInActionsList`).
     */
    Actions: Action[];
    /**
     * Applications to monitor on Mac and Windows; upon a monitored application being launched or terminated, Stream Deck will notify the plugin.
     *
     * **Also see:**
     * - `streamDeck.system.onApplicationDidLaunch(...)`
     * - `streamDeck.system.onApplicationDidTerminate(...)`
     */
    ApplicationsToMonitor?: ApplicationMonitoring;
    /**
     * Author's name that will be displayed on the plugin's product page on the Marketplace, e.g. "Elgato".
     */
    Author: string;
    /**
     * Defines the actions list group, providing a natural grouping of the plugin's actions with the Stream Deck application's action list.
     *
     * Note: `Category` should be distinctive and synonymous with your plugin, and it is therefore recommended that this be the same value as the plugin's `Name` field. When `undefined`, the
     * actions will be available under the "Custom" group.
     */
    Category?: string;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed next to the action list group within the Stream Deck application. The icon should accurately represent
     * the plugin, and enable users to quickly identify the plugin.
     *
     * Image must be:
     * - PNG or SVG format.
     * - Provided in two sizes, 28 × 28 px and 56 × 56 px (@2x).
     * - Monochromatic, with foreground color of #FFFFFF and a transparent background.
     *
     * **Examples**:
     * - assets/category-icon
     * - imgs/category
     * @filePath
     * { extensions: [".svg", ".png"], includeExtension: false }
     * @imageDimensions
     * [28, 28]
     */
    CategoryIcon?: string;
    /**
     * Path to the plugin's main entry point; this is executed when the Stream Deck application starts the plugin.
     *
     * **Examples**:
     * - index.js
     * - Counter
     * - Counter.exe
     * @filePath
     */
    CodePath: string;
    /**
     * Path to the plugin's entry point specific to macOS; this is executed when the Stream Deck application starts the plugin on macOS.
     *
     * **Examples:**
     * - index.js
     * - Counter
     * @filePath
     */
    CodePathMac?: string;
    /**
     * Path to the plugin's entry point specific to Windows; this is executed when the Stream Deck application starts the plugin on Windows.
     *
     * **Examples:**
     * - index.js
     * - Counter.exe
     * @filePath
     */
    CodePathWin?: string;
    /**
     * Size of a window (`[width, height]`) opened when calling `window.open()` from the property inspector. Default value is `[500, 650]`.
     * @example
     * [500, 650]
     */
    DefaultWindowSize?: [number, number];
    /**
     * Description of the plugin, and the functionality it provides, that will be displayed on the plugin's product page on the Marketplace.
     */
    Description: string;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed within Stream Deck's preferences.
     *
     * Image must be:
     * - PNG format.
     * - Provided in two sizes, 288 × 288 px and 512 × 512 px (@2x).
     *
     * **Examples:**
     * - assets/plugin-icon
     * - imgs/plugin
     * @filePath
     * { extensions: [".png"], includeExtension: false }
     * @imageDimensions
     * [288, 288]
     */
    Icon: string;
    /**
     * Name of the plugin, e.g. "Wave Link", "Camera Hub", "Control Center", etc.
     */
    Name: string;
    /**
     * Configuration options for Node.js based plugins.
     *
     * Note: All Node.js plugins are executed with the following command-line arguments:
     *
     * - [`--no-addons`](https://nodejs.org/api/cli.html#--no-addons) (Stream Deck 6.4 only)
     * - [`--enable-source-maps`](https://nodejs.org/api/cli.html#--enable-source-maps)
     * - [`--no-global-search-paths`](https://nodejs.org/api/cli.html#--no-global-search-paths)
     */
    Nodejs?: Nodejs;
    /**
     * Collection of operating systems, and their minimum required versions, that the plugin supports.
     */
    OS: [OS, OS?];
    /**
     * Collection of pre-defined profiles that are distributed with this plugin. Upon the plugin switching to the profile, the user will be prompted to install the profiles.
     *
     * Note: Plugins may only switch to profiles distributed with the plugin, as defined within the manifest, and cannot access user-defined profiles.
     *
     * **Also see:**
     * `streamDeck.profiles.switchToProfile(...)`
     */
    Profiles?: Profile[];
    /**
     * Optional path to the HTML file that represents the property inspector for all actions; this is displayed to the user in the Stream Deck application when they add an action,
     * allowing them to configure the action's settings.
     *
     * Note: Path should be relative to the root of the plugin's folder, with no leading slash.
     *
     *  **Examples:**
     * - mute.html
     * - actions/join-voice-chat/settings.html
     *
     * **Also see:**
     * - `streamDeck.ui.onSendToPlugin(...)`
     * @filePath
     * { extensions: [".htm", ".html"], includeExtension: true }
     */
    PropertyInspectorPath?: FilePath<"htm" | "html">;
    /**
     * Preferred SDK version.
     *
     * Note: SDK version 3 is available in preview mode from Stream Deck 6.9; this SDK version is
     * subject to change.
     */
    SDKVersion: 2 | 3;
    /**
     * Determines the Stream Deck software requirements for this plugin.
     */
    Software: Software;
    /**
     * Link to the plugin's support website.
     *
     * **Examples**:
     * - https://help.corsair.com/
     * - https://help.elgato.com/
     */
    SupportURL?: string;
    /**
     * Link to the plugin's website.
     *
     * **Examples**:
     * - https://elgato.com
     * - https://corsair.com
     */
    URL?: string;
    /**
     * Unique identifier of the plugin, represented in reverse-DNS format.
     *
     * **Allowed characters:**
     * - Lowercase alphanumeric characters (a-z, 0-9)
     * - Hyphens (-)
     * - Periods (.)
     *
     * **Examples:**
     * - com.elgato.wavelink
     * - com.elgato.discord
     * - tv.twitch
     * @pattern
     * ^([a-z0-9-]+)(\.[a-z0-9-]+)+$
     * @errorMessage
     * String must be in reverse DNS format, and must only contain lowercase alphanumeric characters (a-z, 0-9), hyphens (-), and periods (.)
     */
    UUID: string;
    /**
     * Version of the plugin, in the format `{major}.{minor}.{patch}.{build}`.
     * @example
     * "1.0.0.0"
     * @pattern
     * ^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$
     * @errorMessage
     * String must use format {major}.{minor}.{patch}.{build}
     */
    Version: string;
};
/**
 * Defines the controller type the action is applicable to. **Keypad** refers to a standard action on a Stream Deck device, e.g. 1 of the 15 buttons on the Stream Deck MK.2, or a pedal
 * on the Stream Deck Pedal, etc., whereas an **Encoder** refers to a dial / touchscreen on the Stream Deck +.
 */
type Controller = "Encoder" | "Keypad";
/**
 * Provides information about an action provided by the plugin.
 */
type Action = {
    /**
     * Defines the controller type the action is applicable to. **Keypad** refers to a standard action on a Stream Deck device, e.g. 1 of the 15 buttons on the Stream Deck MK.2,
     * or a pedal on the Stream Deck Pedal, etc., whereas an **Encoder** refers to a dial / touchscreen on the Stream Deck +.
     * @uniqueItems
     */
    Controllers?: [Controller, Controller?];
    /**
     * Determines whether the state of the action should automatically toggle when the user presses the action; only applies to actions that have more than one state defined. Default is
     * `false`.
     * @example
     * false
     */
    DisableAutomaticStates?: boolean;
    /**
     * Determines whether Stream Deck should cache images associated with the plugin, and its actions. Default is `false`.
     * @example
     * false
     */
    DisableCaching?: boolean;
    /**
     * Provides information about how the action functions as part of an `Encoder` (dial / touchscreen).
     */
    Encoder?: Encoder;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed next to the action in the Stream Deck application's action list.
     *
     * Image must be:
     * - PNG or SVG format.
     * - Provided in two sizes, 20 × 20 px and 40 × 40 px (@2x).
     * - Monochromatic, with foreground color of #FFFFFF and a transparent background.
     *
     * **Examples:**
     * - assets/counter
     * - imgs/actions/mute
     * @filePath
     * { extensions: [".svg", ".png"], includeExtension: false }
     * @imageDimensions
     * [20, 20]
     */
    Icon: string;
    /**
     * Name of the action; this is displayed to the user in the actions list, and is used throughout the Stream Deck application to visually identify the action.
     */
    Name: string;
    /**
     * Operating system that the action supports.
     * @minItems 1
     * @maxItems 2
     * @uniqueItems
     */
    OS?: OS["Platform"][];
    /**
     * Optional path to the HTML file that represents the property inspector for this action; this is displayed to the user in the Stream Deck application when they add the
     * action, allowing them to configure the action's settings. When `undefined`, the manifest's top-level `PropertyInspectorPath` is used, otherwise none.
     *
     * Note: Path should be relative to the root of the plugin's folder, with no leading slash.
     *
     * **Examples:**
     * - mute.html
     * - actions/join-voice-chat/settings.html
     * @filePath
     * { extensions: [".htm", ".html"], includeExtension: true }
     */
    PropertyInspectorPath?: FilePath<"htm" | "html">;
    /**
     * States the action can be in. When two states are defined the action will act as a toggle, with users being able to select their preferred iconography for each state.
     *
     * Note: Automatic toggling of the state on action activation can be disabled by setting `DisableAutomaticStates` to `true`.
     * @minItems 1
     */
    States: State[];
    /**
     * Determines whether the action is available to user's when they are creating multi-actions. Default is `true`.
     */
    SupportedInMultiActions?: boolean;
    /**
     * Link to the actions's support website.
     *
     * **Examples**:
     * - https://help.corsair.com/
     * - https://help.elgato.com/
     */
    SupportURL?: string;
    /**
     * Tooltip shown to the user when they hover over the action within the actions list in the Stream Deck application.
     */
    Tooltip?: string;
    /**
     * Unique identifier of the action, represented in reverse-DNS format. This value is supplied by Stream Deck when events are emitted that relate to the action enabling you
     * to identify the source of the event.
     *
     * **Allowed characters:**
     * - Lowercase alphanumeric characters (a-z, 0-9)
     * - Hyphens (-)
     * - Periods (.)
     *
     * Note: `UUID` must be unique, and should be prefixed with the plugin's UUID.
     *
     *
     * **Examples:**
     * - com.elgato.wavelink.toggle-mute
     * - com.elgato.discord.join-voice
     * - tv.twitch.go-live
     * @pattern
     * ^([a-z0-9-]+)(\.[a-z0-9-]+)+$
     * @errorMessage
     * String must be in reverse DNS format, and must only contain lowercase alphanumeric characters (a-z, 0-9), hyphens (-), and periods (.)
     */
    UUID: string;
    /**
     * Determines whether the title field is available to the user when viewing the action's property inspector. Setting this to `false` will disable the user from specifying a
     * title, thus allowing the plugin to have exclusive access to the title. Default is `true`, i.e. the title field is enabled.
     */
    UserTitleEnabled?: boolean;
    /**
     * Determines whether the action is available to user's via the actions list in the Stream Deck application. Setting this to `false` allows for the action to be used as
     * part of pre-defined profiles distributed with the plugins, whilst not being available to users. Default is `true`.
     */
    VisibleInActionsList?: boolean;
};
/**
 * Applications to monitor on Mac and Windows; upon a monitored application being launched or terminated, Stream Deck will notify the plugin.
 */
type ApplicationMonitoring = {
    /**
     * Collection of applications to monitor on macOS.
     *
     * **Examples:**
     * - com.apple.mail
     */
    mac?: string[];
    /**
     * Collection of applications to monitor on Windows.
     *
     * **Examples:**
     * - Notepad.exe
     */
    windows?: string[];
};
/**
 * Provides information about how the action functions as part of an `Encoder` (dial / touchscreen).
 */
type Encoder = {
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed in the Stream Deck application in the circular canvas that represents the dial of the
     * action.
     *
     * Image must be:
     * - PNG or SVG format.
     * - Provided in two sizes, 72 × 72 px and 144 × 144 px (@2x).
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     *
     * **Examples:**
     * - assets/actions/mute/encoder-icon
     * - imgs/join-voice-chat-encoder
     * @filePath
     * { extensions: [".svg", ".png"], includeExtension: false }
     * @imageDimensions
     * [72, 72]
     */
    Icon?: string;
    /**
     * Background color to display in the Stream Deck application when the action is part of a dial stack, and is the current action. Represented as a hexadecimal value.
     *
     * **Examples:**
     * - #D60270
     * - #F1F1F1
     * - #0038A8
     */
    StackColor?: string;
    /**
     * Descriptions that define the interaction of the action when it is associated with a dial / touchscreen on the Stream Deck +. This information is shown to the user.
     *
     * **Examples:**
     * - "Adjust volume"
     * - "Play / Pause"
     */
    TriggerDescription?: TriggerDescriptions;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed on the touchscreen behind the action's layout.
     *
     * Image must be:
     * - PNG or SVG format.
     * - Provided in two sizes, 200 × 100 px and 400 × 200 px (@2x).
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     *
     * **Examples:**
     * - assets/backgrounds/main
     * - imgs/bright-blue-bg
     * @imageDimensions
     * [200, 100]
     * @filePath
     * { extensions: [".png", ".svg"], includeExtension: false }
     */
    background?: string;
    /**
     * Name of a pre-defined layout, or the path to a JSON file that details a custom layout and its components, to be rendered on the action's touchscreen canvas.
     *
     * **Pre-defined Layouts:**
     * - `$X1`, layout with the title at the top and the icon beneath it in the center.
     * - `$A0`, layout with the title at the top and a full-width image canvas beneath it in the center.
     * - `$A1`, layout with the title at the top, the icon on the left, and text value on the right.
     * - `$B1`, layout with the title at the top, the icon on the left, and a text value on the right with a progress bar beneath it.
     * - `$B2`, layout with the title at the top, the icon on the left, and a text value on the right with a gradient progress bar beneath it.
     * - `$C1`, layout with the title at the top, and two rows that display an icon on the left and progress bar on the right (i.e. a double progress bar layout).
     *
     * **Examples:**
     * - $A1
     * - layouts/my-custom-layout.json
     * @example
     * "$X1"
     * @example
     * "$A0"
     * @example
     * "$A1"
     * @example
     * "$B1"
     * @example
     * "$B2"
     * @example
     * "$C1"
     * @example
     * "custom.json"
     * @pattern
     * ^(^(?![\.]*[\\\/]+).+\.([Jj][Ss][Oo][Nn])$)|(\$(X1|A0|A1|B1|B2|C1))$
     * @errorMessage
     * String must reference .json file in the plugin directory, or a pre-defined layout.
     */
    layout?: FilePath<"json"> | "$A0" | "$A1" | "$B1" | "$B2" | "$C1" | "$X1";
};
/**
 * Descriptions that define the interaction of the action when it is associated with a dial / touchscreen on the Stream Deck +. This information is shown to the user.
 *
 * **Examples:**
 * - "Adjust volume"
 * - "Play / Pause"
 */
type TriggerDescriptions = {
    /**
     * Touchscreen "long-touch" interaction behavior description.
     */
    LongTouch?: string;
    /**
     * Dial "push" (press) interaction behavior description.
     */
    Push?: string;
    /**
     * Dial rotation interaction behavior description.
     */
    Rotate?: string;
    /**
     * Touchscreen "touch" interaction behavior description.
     */
    Touch?: string;
};
/**
 * States the action can be in. When two states are defined the action will act as a toggle, with users being able to select their preferred iconography for each state.
 *
 * Note: Automatic toggling of the state on action activation can be disabled by setting `DisableAutomaticStates` to `true`.
 */
type State = {
    /**
     * Default font-family to be used when rendering the title of this state.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    FontFamily?: string;
    /**
     * Default font-size to be used when rendering the title of this state.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    FontSize?: number;
    /**
     * Default font-style to be used when rendering the title of this state.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    FontStyle?: "" | "Bold Italic" | "Bold" | "Italic" | "Regular";
    /**
     * Determines whether the title associated with this state is underlined by default.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    FontUnderline?: boolean;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed on the Stream Deck when this action's state is active.
     *
     * Image must be:
     * - GIF, PNG or SVG format.
     * - Provided in two sizes, 72 × 72 px and 144 × 144 px (@2x).
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     *
     * **Examples:**
     * - assets/counter-key
     * - assets/icons/mute
     * @filePath
     * { extensions: [".gif", ".svg", ".png"], includeExtension: false }
     * @imageDimensions
     * [72, 72]
     */
    Image: string;
    /**
     * Path to the image, with the **file extension omitted**, that will be displayed when the action is being viewed as part of a multi-action.
     *
     * Image must be:
     * - PNG or SVG format.
     * - Provided in two sizes, 72 × 72 px and 144 × 144 px (@2x).
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     *
     * **Examples:**
     * - assets/counter-key
     * - assets/icons/mute
     * @filePath
     * { extensions: [".svg", ".png"], includeExtension: false }
     * @imageDimensions
     * [72, 72]
     */
    MultiActionImage?: string;
    /**
     * Name of the state; when multiple states are defined this value is shown to the user when the action is being added to a multi-action. The user is then able to specify which
     * state they would like to activate as part of the multi-action.
     */
    Name?: string;
    /**
     * Determines whether the title should be shown.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    ShowTitle?: boolean;
    /**
     * Default title to be shown when the action is added to the Stream Deck.
     */
    Title?: string;
    /**
     * Default title alignment to be used when rendering the title of this state.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     */
    TitleAlignment?: "bottom" | "middle" | "top";
    /**
     * Default title color to be used when rendering the title of this state, represented a hexadecimal value.
     *
     * Note: Can be overridden by the user in the Stream Deck application.
     *
     * **Examples:**
     * - #5BCEFA
     * - #F5A9B8
     * - #FFFFFF
     */
    TitleColor?: string;
};
/**
 * Configuration options for Node.js based plugins.
 */
type Nodejs = {
    /**
     * Command-line arguments supplied to the plugin when run in debug mode. Optionally, the pre-defined values `"enabled"` and `"break"` run the plugin with a debugger enabled
     * with [`--inspect`](https://nodejs.org/api/cli.html#--inspecthostport) and [`--inspect-brk`](https://nodejs.org/api/cli.html#--inspect-brkhostport) respectively.
     *
     * Note: `"enabled"` and `"break"` will automatically be assigned an available `PORT` by Stream Deck.  Alternatively, if you wish to debug on a pre-defined port, this value can be
     * a set of [command-line arguments](https://nodejs.org/api/cli.html).
     *
     * **Examples:**
     * - `"enabled"` results in `--inspect=127.0.0.1:{PORT}`
     * - `"break"` results in `--inspect-brk=127.0.0.1:{PORT}`
     * - `"--inspect=127.0.0.1:12345"` runs a local debugger on port `12345`.
     * @example
     * "enabled"
     * @example
     * "break"
     */
    Debug?: string;
    /**
     * Determines whether to generate a profiler output for the plugin; [read more](https://nodejs.org/en/docs/guides/simple-profiling).
     */
    GenerateProfilerOutput?: boolean;
    /**
     * Version of Node.js to use; currently version `"20"` is supported.
     */
    Version: "20";
};
/**
 * Provides information for pre-defined profile distributed with this plugin.
 */
type Profile = {
    /**
     * Determines whether the profile should be automatically installed when the plugin is installed. When `false`, the profile will be installed the first time
     * the plugin attempts to switch to it. Default is `true`.
     *
     * Available from Stream Deck 6.6.
     */
    AutoInstall?: boolean;
    /**
     * Type of device the profile is intended for, for example Stream Deck +, Stream Deck Pedal, etc.
     *
     * **Devices**
     * - Stream Deck (0)
     * - Stream Deck Mini (1)
     * - Stream Deck XL (2)
     * - Stream Deck Mobile (3)
     * - Corsair GKeys (4)
     * - Stream Deck Pedal (5)
     * - Corsair Voyager (6)
     * - Stream Deck + (7)
     * - SCUF Controller (8)
     * - Stream Deck Neo (9)
     * - Stream Deck Studio (10)
     */
    DeviceType: (typeof DeviceType)[keyof typeof DeviceType];
    /**
     * Determines whether the Stream Deck application should automatically switch to the profile when it is first installed. Default value is `false`.
     */
    DontAutoSwitchWhenInstalled?: boolean;
    /**
     * Path to the `.streamDeckProfile`, with the **file extension omitted**, that contains the profiles layout and action settings.
     *
     * **Examples:**
     * - assets/main-profile
     * - profiles/super-cool-profile
     * @filePath
     * { extensions: [".streamDeckProfile"], includeExtension: false }
     */
    Name: string;
    /**
     * Determines whether the profile is read-only, or if the user is able to customize it within the Stream Deck application. Default value is `false`.
     */
    Readonly?: boolean;
};
/**
 * Operating system that the plugin supports, and the minimum required version needed to run the plugin.
 */
type OS = {
    /**
     * Minimum version required of the operating system to run the plugin.
     */
    MinimumVersion: string;
    /**
     * Operating system supported by the plugin.
     */
    Platform: "mac" | "windows";
};
/**
 * File path, relative to the manifest's location.
 */
type FilePath<TExt extends string> = `${string}.${Lowercase<TExt>}`;

/**
 * Defines the structure of a custom layout file.
 */
type Layout = Omit<Layout$1, "$schema">;

export { type Action, type ApplicationMonitoring, type Bar, BarSubType, type Controller, DeviceType, type Encoder, type GBar, type Layout, type Manifest, type Nodejs, type OS, type Pixmap, type Profile, type Range, type Software, type State, type Text, type TriggerDescriptions };
