import { StoryStatus } from './StorySchema';
export type Role = 'po' | 'dev' | 'qa' | 'admin';
export declare const KNOWN_ROLES: Role[];
export declare function isRole(v: string): v is Role;
interface Edge {
    from: StoryStatus;
    to: StoryStatus;
    roles: Role[];
}
export interface TransitionDecision {
    allowed: boolean;
    reason?: string;
    edge?: Edge;
}
export declare function currentRole(envRole?: string): Role;
export declare function canTransition(from: string, to: string, role?: Role): TransitionDecision;
/** Helper for CLI/HTTP surface: enumerate all transitions from a status. */
export declare function allowedNextStates(from: string): StoryStatus[];
export declare const _internals: {
    EDGES: Edge[];
};
export {};
