import type { Split } from 'type-fest';
export type ExpectFalse<T extends false> = T;
export type Expect<T extends true> = T;
type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
type Alpha = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z';
type AllowedChar = Alpha | Digit | '_' | '$';
export declare const createKey: <T extends string>(key: IsValid<T> extends true ? T : "Error: use @Component/Name format") => IsValid<T> extends true ? T : "Error: use @Component/Name format";
type ValidSegment<S extends string, FirstChar extends boolean = true> = S extends `${infer First}${infer Rest}` ? FirstChar extends true ? First extends Digit ? false : First extends Alpha ? ValidSegment<Rest, false> : false : First extends AllowedChar ? ValidSegment<Rest, false> : false : true;
type FirstIsValid<S extends string> = S extends `@${infer Rest}` ? Rest extends '' ? false : ValidSegment<Rest> : false;
type ValidateRest<T extends string[]> = T extends [
    infer Segment extends string,
    ...infer Rest extends string[]
] ? Segment extends '' ? false : ValidSegment<Segment> extends true ? ValidateRest<Rest> : false : true;
type IsValid<S extends string> = Split<S, '/'> extends [
    infer First extends string,
    ...infer Rest extends string[]
] ? FirstIsValid<First> extends true ? Rest extends [] ? false : ValidateRest<Rest> : false : false;
export {};
