/**
 * Root Identity Parsing
 *
 * Parses root strings into structured identity objects.
 * Distinguishes between root groups (e.g., "flowpad") and
 * root instances (e.g., "flowpad.tab-abc123").
 */
import { RootId } from './identity';
export interface RootGroup {
    kind: 'group';
    value: string;
    group: RootId;
}
export interface RootInstance {
    kind: 'instance';
    value: string;
    group: RootId;
    instance: string;
}
export type RootIdentity = RootGroup | RootInstance;
/** @deprecated Use RootGroup */
export type RealmGroup = RootGroup;
/** @deprecated Use RootInstance */
export type RealmInstance = RootInstance;
/** @deprecated Use RootIdentity */
export type RealmIdentity = RootIdentity;
/**
 * Parse a root string into a structured identity.
 *
 * - "flowpad" -> RootGroup { group: "flowpad" }
 * - "flowpad.tab-abc123" -> RootInstance { group: "flowpad", instance: "abc123" }
 */
export declare function parseRootIdentity(root: string): RootIdentity;
/** @deprecated Use parseRootIdentity instead */
export declare const parseRealmIdentity: typeof parseRootIdentity;
/**
 * Check if a root identity is an instance (has .tab-xxx suffix).
 */
export declare function isRootInstance(identity: RootIdentity): identity is RootInstance;
/** @deprecated Use isRootInstance instead */
export declare const isRealmInstance: typeof isRootInstance;
/**
 * Get the group root from any root identity.
 */
export declare function getRootGroup(identity: RootIdentity): RootId;
/** @deprecated Use getRootGroup instead */
export declare const getRealmGroup: typeof getRootGroup;
//# sourceMappingURL=root_identity.d.ts.map