import { AbstractType } from "./AbstractType"; import { Req, scalar } from "@huz-com/types"; import { FolderTypeOption } from "./index.interfaces"; declare type T = scalar.Folder; declare type O = FolderTypeOption; export declare class FolderType extends AbstractType { protected static readonly _ALLOWED_SEPARATORS: string[]; protected static readonly _RESTRICTED: RegExp; protected static readonly _START_WITH_SLASH: RegExp; protected static readonly _RESTRICTED_ON_LINUX: RegExp; protected static readonly _RESTRICTED_ON_WINDOWS: RegExp; protected static readonly _START_WITH_DRIVE: RegExp; protected static _ins: FolderType; /** * Returns skeleton instance * */ static ins(): FolderType; constructor(); protected _numberOfColons(str: string): number; protected _trimPath(str: string, dirSeparator: string): string; protected _isNotAbsolute(str: string, opt: O): boolean; protected _isNotRestricted(str: string, opt: O): boolean; protected _isPath(str: string, opt: O): boolean; /** * Checks is folder? */ is(value: scalar.Unknown, opt?: O, req?: Req): boolean; /** * Converts a value to folder */ cast(value: scalar.Unknown, opt?: O, req?: Req): T | null; } export {};