import FileSystem from "../../fs/index.js";
export declare enum AppScenario {
    NotAuthed = "NOT_AUTHORIZED",
    Authed = "AUTHORIZED"
}
export declare function scenarioAuthed(username: string, fs: FileSystem | undefined): Authed;
export declare function scenarioNotAuthed(): NotAuthed;
export declare type AppState = NotAuthed | Authed;
declare type AppBase = {
    kind: "appState";
};
export declare type NotAuthed = AppBase & {
    scenario: AppScenario.NotAuthed;
    authenticated: false;
};
export declare type Authed = AppBase & {
    scenario: AppScenario.Authed;
    authenticated: true;
    username: string;
    fs?: FileSystem;
};
export {};
