UNPKG

@nextcloud/vue

Version:
27 lines (26 loc) 1.24 kB
/** * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors * SPDX-License-Identifier: AGPL-3.0-or-later */ /** * Creates a reference picker modal and return a promise which provides the link URL * * @param providerId - Optional ID of initial selected provider * @param isInsideViewer - Should be true if this function is called while the Viewer is displayed */ export declare function getLinkWithPicker(providerId?: string, isInsideViewer?: boolean): Promise<string>; /** * Creates a reference picker modal and return a promise which provides the reference object. * * The function guarantees a `link: string` on the resolved object. Custom picker elements may * include additional fields (e.g. `title`). * * @experimental The shape of the resolved reference and the signature of this function may still change. * * @template T - Expected shape of the resolved reference, must include `link: string` * @param providerId - Optional ID of initial selected provider * @param isInsideViewer - Should be true if this function is called while the Viewer is displayed */ export declare function getReferenceWithPicker<T extends { link: string; }>(providerId?: string, isInsideViewer?: boolean): Promise<T>;