import { RouteLocationNamedRaw } from 'vue-router'; import { Resource, SpaceResource } from '@opencloud-eu/web-client'; export type LinkTargetRouteOptions = { space: SpaceResource; resource: Resource; path: string; /** * Open the resource with its default app (e.g. an editor) if one is registered. * Falls back to the file list if no app is available. */ openWithDefaultApp?: boolean; /** * Opens the given side bar panel in the file list. Suppresses `openWithDefaultApp`. */ details?: string; /** * Additional query params for the file list, e.g. filters. */ fileListQuery?: Record; }; /** * Builds the target route for link resolving (private links, public links). * Resolves to the resource's default app if there is one, otherwise to the file list. */ export declare const useLinkTargetRoute: () => { getLinkTargetRoute: ({ space: targetSpace, resource, path, openWithDefaultApp, details, fileListQuery }: LinkTargetRouteOptions) => RouteLocationNamedRaw; };