import { Future, GuidValue, IExtendApiManifestWithConfiguration } from "@omnia/fx/models"; import { ControlledDocument, DraftControlledDocument } from "../../data"; import { DocumentLibraryViewType } from "./DocumentLibraryCommandButtonApi"; export interface IDocumentComponent { documentItem: T; } export interface CustomRenderView { internalName: string; manifestId: GuidValue; viewType: string; } export interface IDocumentItemCustomRender extends DraftControlledDocument { disabled?: boolean; hidden?: boolean; } export interface IDocumentItemCustomRenderFieldApi { addCustomRenderField: (viewType: DocumentLibraryViewType, internalName: string, manifestId: GuidValue) => void; getCustomRenderFieldsByType: (viewType: DocumentLibraryViewType) => Future>; } declare module "../../../apis/index" { interface IMSApi { documentItemCustomRender: { registration: Promise; }; } interface IMSExtendApiManifest { documentItemCustomRender: { registration: IExtendApiManifestWithConfiguration; }; } }