import { SpaceResource } from '@opencloud-eu/web-client'; /** * Locating resources that an app labels as its own. A folder carries a name * extension (`New folder.vault`), a space a content type in its * `@libre.graph.contentType` drive property (`application/vnd.opencloud.vault`). */ export interface ExtensionMarker { /** Name extension a folder carries, without the leading dot, e.g. `vault`. */ extension: string; /** Drive content type a space carries, e.g. `application/vnd.opencloud.vault`. */ contentType: string; } /** Whether a space carries a given content type. */ export declare function isContentTypeSpace(space: SpaceResource | undefined, contentType: string): boolean; /** * Root path of the folder carrying a given extension within a clear-text path: * the first segment with the extension, returned as an absolute path. Null when * no segment carries it. */ export declare function findExtensionRootInPath(path: string | undefined, extension: string): string | null; /** * Find the root path for a (space, path). Two cases: * 1. The space itself carries the marker, so its root `/` is the root for * everything inside it. * 2. A folder carrying the extension in its path. */ export declare function findExtensionRoot(space: SpaceResource | undefined, path: string | undefined, marker: ExtensionMarker): string | null;