import type { AdminCollection } from "@rebasepro/cms-types"; export declare function removeInitialAndTrailingSlashes(s: string): string; export declare function removeInitialSlash(s: string): string; export declare function removeTrailingSlash(s: string): string; export declare function addInitialSlash(s: string): string; export declare function getLastSegment(path: string): string; export declare function resolveCollectionPathIds(path: string, allCollections: AdminCollection[]): string; /** * Find the corresponding view at any depth for a given path. * Note that path or segments of the paths can be collection aliases. * @param slugOrPath * @param collections */ export declare function getCollectionBySlugWithin(slugOrPath: string, collections: AdminCollection[]): AdminCollection | undefined; /** * Get the subcollection combinations from a path: * "sites/es/locales" => ["sites/es/locales", "sites"] * @param subpaths */ export declare function getCollectionPathsCombinations(subpaths: string[]): string[];