export declare const isTopPage: (path: string) => boolean; export * from './generate-children-regexp'; /** * Whether path is the top page of users * @param path */ export declare const isUsersTopPage: (path: string) => boolean; /** * Whether the path is permalink * @param path */ export declare const isPermalink: (path: string) => boolean; /** * Whether path is user's homepage * @param path */ export declare const isUsersHomepage: (path: string) => boolean; /** * Whether path is the protected pages for systems * @param path */ export declare const isUsersProtectedPages: (path: string) => boolean; /** * Whether path is movable * @param path */ export declare const isMovablePage: (path: string) => boolean; /** * Whether path belongs to the user page * @param path */ export declare const isUserPage: (path: string) => boolean; /** * Whether path is the top page of users * @param path */ export declare const isTrashTopPage: (path: string) => boolean; /** * Whether path belongs to the trash page * @param path */ export declare const isTrashPage: (path: string) => boolean; /** * Whether path belongs to the shared page * @param path */ export declare const isSharedPage: (path: string) => boolean; export declare const isCreatablePage: (path: string) => boolean; /** * return user's homepage path * @param user */ export declare const userHomepagePath: (user: { username: string; } | null | undefined) => string; /** * return user path * @param parentPath * @param childPath * @param newPath */ export declare const convertToNewAffiliationPath: (oldPath: string, newPath: string, childPath: string) => string; /** * Encode SPACE and IDEOGRAPHIC SPACE * @param {string} path * @returns {string} */ export declare const encodeSpaces: (path?: string) => string | undefined; /** * Generate editor path * @param {string} paths * @returns {string} */ export declare const generateEditorPath: (...paths: string[]) => string; /** * return paths without duplicate area of regexp /^${path}\/.+/i * ex. expect(omitDuplicateAreaPathFromPaths(['/A', '/A/B', '/A/B/C'])).toStrictEqual(['/A']) * @param paths paths to be tested * @returns omitted paths */ export declare const omitDuplicateAreaPathFromPaths: (paths: string[]) => string[]; /** * return pages with path without duplicate area of regexp /^${path}\/.+/i * if the pages' path are the same, it will NOT omit any of them since the other attributes will not be the same * @param paths paths to be tested * @returns omitted paths */ export declare const omitDuplicateAreaPageFromPages: (pages: any[]) => any[]; /** * Check if the area of either path1 or path2 includes the area of the other path * The area of path is the same as /^\/hoge\//i * @param pathToTest string * @param pathToBeTested string * @returns boolean */ export declare const isEitherOfPathAreaOverlap: (path1: string, path2: string) => boolean; /** * Check if the area of pathToTest includes the area of pathToBeTested * The area of path is the same as /^\/hoge\//i * @param pathToTest string * @param pathToBeTested string * @returns boolean */ export declare const isPathAreaOverlap: (pathToTest: string, pathToBeTested: string) => boolean; /** * Determine whether can move by fromPath and toPath * @param fromPath string * @param toPath string * @returns boolean */ export declare const canMoveByPath: (fromPath: string, toPath: string) => boolean; /** * check if string has '/' in it */ export declare const hasSlash: (str: string) => boolean; /** * Get username from user page path * @param path string * @returns string | null */ export declare const getUsernameByPath: (path: string) => string | null; export declare const isGlobPatternPath: (path: string) => boolean; export * from './is-top-page';