import type { Channel, ChannelOptions } from "../channel";
import { AppState } from "../state/app.js";
export declare const init: () => Promise<AppState | null>;
export declare const register: (options: {
    username: string;
    email?: string;
}) => Promise<{
    success: boolean;
}>;
export declare const isUsernameValid: (username: string) => Promise<boolean>;
export declare const isUsernameAvailable: (username: string) => Promise<boolean>;
export declare const createChannel: (options: ChannelOptions) => Promise<Channel>;
export declare const checkCapability: (username: string) => Promise<boolean>;
export declare const delegateAccount: (username: string, audience: string) => Promise<Record<string, unknown>>;
export declare const linkDevice: (data: Record<string, unknown>) => Promise<void>;
export declare const BASE_IMPLEMENTATION: {
    auth: {
        init: () => Promise<AppState | null>;
        register: (options: {
            username: string;
            email?: string;
        }) => Promise<{
            success: boolean;
        }>;
        isUsernameValid: (username: string) => Promise<boolean>;
        isUsernameAvailable: (username: string) => Promise<boolean>;
        createChannel: (options: ChannelOptions) => Promise<Channel>;
        checkCapability: (username: string) => Promise<boolean>;
        delegateAccount: (username: string, audience: string) => Promise<Record<string, unknown>>;
        linkDevice: (data: Record<string, unknown>) => Promise<void>;
    };
};
