UNPKG

box-ui-elements

Version:
27 lines (26 loc) 955 B
import type { API } from '../../api'; export interface ItemData { id: string; permissions: { can_set_share_access: boolean; can_share: boolean; }; } export interface Options extends ItemData { access?: string; isDownloadAvailable?: boolean; serverUrl?: string; } export interface CreateSharingServiceArgs { itemApiInstance: API; onUpdateSharedLink: (itemData: ItemData) => void; onRemoveSharedLink: (itemData: ItemData) => void; options: Options; } export declare const createSharingService: ({ itemApiInstance, onUpdateSharedLink, onRemoveSharedLink, options, }: CreateSharingServiceArgs) => { createSharedLink: () => Promise<any>; changeSharedLinkAccess: (access: string) => Promise<any>; changeSharedLinkPermission: (permissionLevel: string) => Promise<any>; deleteSharedLink: () => Promise<any>; updateSharedLink: (sharedLinkSettings: SharedLinkSettings) => Promise<any>; };