import { Future, GuidValue, IExtendApiManifestWithConfiguration, IIcon } from "@omnia/fx/models"; import { ControlledDocument } from "../../data"; export declare enum DocumentLibraryViewType { Draft = "4074dea2-4159-422a-8c02-df6f273d3e5f" } export interface ICommandButtonComponent { button: T; } export interface ICommandButton { id: GuidValue; title: string; order: number; icon?: IIcon; disabled?: boolean; hidden?: boolean; onInit?: () => Future; onClicked?: (documents: ControlledDocument[]) => Future; componentManifestId?: GuidValue; } export interface IDraftViewCommandButton extends ICommandButton { onSelectionChanged?: (documents: ControlledDocument[]) => Future; } export interface IDocumentLibraryCommandButtonApi { addDraftViewButton: (items: IDraftViewCommandButton) => void; getCommandButtonsByType: (viewType: DocumentLibraryViewType) => Future>; } declare module "../../../apis/index" { interface IMSApi { documentLibraryCommandButton: { registration: Promise; }; } interface IMSExtendApiManifest { documentLibraryCommandButton: { registration: IExtendApiManifestWithConfiguration; }; } }