@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
41 lines (40 loc) • 2.94 kB
TypeScript
import { Store } from "@omnia/fx/stores";
import { CommandDefinition, ICommandStore } from "../models/CommandDefinition";
import { CommandPaletteInputBox, CommandPaletteListPickItem, CommandPaletteMessage } from "../models";
export declare class CommandStore extends Store implements ICommandStore {
private commandsState;
private showInputBoxState;
private showMessageState;
private listPickerState;
private customComponentState;
private containerStyle;
constructor();
/**
* Implementation of getters
*/
getters: {
allCommands: (search: string) => CommandDefinition[];
currentListPickItems: (search: string) => CommandPaletteListPickItem<any>[];
inputBox: () => CommandPaletteInputBox;
message: () => CommandPaletteMessage;
component: () => unknown;
containerStyle: () => {};
};
/**
* Implementation of mutations
*/
mutations: {
registerCommand: import("@omnia/fx/stores").StoreMutation<(command: CommandDefinition) => void, (command: CommandDefinition) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
setInputBoxResult: import("@omnia/fx/stores").StoreMutation<(value: string) => void, (value: string) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
setListPickerResult: import("@omnia/fx/stores").StoreMutation<(<T>(value: CommandPaletteListPickItem<T>) => void), (value: CommandPaletteListPickItem<unknown>) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
showMessage: import("@omnia/fx/stores").StoreMutation<(message: CommandPaletteMessage) => void, (message: CommandPaletteMessage) => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
resetState: import("@omnia/fx/stores").StoreMutation<() => void, () => import("@omnia/fx-models").IMessageBusSubscriptionHandler>;
};
actions: {
showInputBox: import("@omnia/fx/stores").StoreAction<unknown, (title: string) => void, (result: CommandPaletteInputBox, title: string) => void, (failureReason: any, title: string) => void, (title: string) => Promise<CommandPaletteInputBox>>;
showListPicker: import("@omnia/fx/stores").StoreAction<unknown, (pickerItems: CommandPaletteListPickItem<unknown>[]) => void, (result: CommandPaletteListPickItem<unknown>, pickerItems: CommandPaletteListPickItem<unknown>[]) => void, (failureReason: any, pickerItems: CommandPaletteListPickItem<unknown>[]) => void, <T>(pickerItems: CommandPaletteListPickItem<T>[]) => Promise<CommandPaletteListPickItem<T>>>;
showComponent: import("@omnia/fx/stores").StoreAction<unknown, (component: unknown, containerStyle: {}) => void, (result: void, component: unknown, containerStyle: {}) => void, (failureReason: any, component: unknown, containerStyle: {}) => void, (component: unknown, containerStyle: {}) => Promise<void>>;
};
onActivated(): void;
onDisposing(): void;
}