export type AnalyticsEventName = 'app_launch' | 'home_view' | 'home_click' | 'project_create_result' | 'settings_view' | 'settings_click' | 'settings_cli_test_result' | 'settings_byok_test_result' | 'studio_view' | 'studio_click' | 'run_created' | 'run_finished' | 'artifact_export_result';
export type TrackingProjectKind = 'prototype' | 'slide_deck' | 'template' | 'live_artifact' | 'image' | 'video' | 'audio';
export type TrackingSourceTab = 'prototype' | 'slide_deck' | 'from_template' | 'live_artifact' | 'image' | 'video' | 'audio';
export type TrackingFidelity = 'wireframe' | 'high_fidelity' | 'not_applicable';
export type TrackingExecutionMode = 'local_cli' | 'byok';
export type TrackingConfiguredProviderType = 'local_cli' | 'byok' | 'both' | 'none' | 'unknown';
export type TrackingExecutionAvailability = 'available' | 'unavailable' | 'unknown';
export type TrackingPlatform = 'web' | 'desktop';
export type TrackingLaunchSource = 'direct' | 'deeplink' | 'reload' | 'unknown';
export type TrackingTopTabId = 'designs' | 'examples' | 'design_systems' | 'image_templates' | 'video_templates';
export type TrackingActiveSection = 'execution_model' | 'media_providers' | 'language' | 'appearance' | 'pets' | 'about' | 'connectors' | 'mcp_client' | 'orbit' | 'routines' | 'integrations' | 'skills' | 'design_systems' | 'memory' | 'privacy' | 'notifications';
export type TrackingCliProviderId = 'claude_code' | 'codex_cli' | 'devin_terminal' | 'gemini_cli' | 'opencode' | 'hermes' | 'kimi_cli' | 'cursor_agent' | 'qwen_code' | 'github_copilot_cli' | 'pi' | 'other';
export type TrackingArtifactKind = 'html' | 'markdown' | 'image' | 'video' | 'audio' | 'doc' | 'unknown';
export type TrackingExportFormat = 'pdf' | 'pptx' | 'zip' | 'html' | 'markdown' | 'template' | 'vercel' | 'cloudflare_pages';
export type TrackingRunResult = 'success' | 'failed' | 'cancelled';
export type TrackingCreateResult = 'success' | 'failed';
export type TrackingExportResult = 'success' | 'failed' | 'cancelled';
export type TrackingTokenCountSource = 'provider_usage' | 'estimated' | 'unknown';
export interface AppLaunchProps {
    page: 'app';
    launch_source: TrackingLaunchSource;
    platform: TrackingPlatform;
}
export interface HomeViewPageProps {
    page: 'home';
    has_available_cli: boolean;
    has_available_byok: boolean;
    configured_provider_type: TrackingConfiguredProviderType;
    execution_availability: TrackingExecutionAvailability;
}
export interface HomeViewAssetPanelProps {
    page: 'home';
    area: 'asset_panel';
    element: 'tab_content';
    view_type: 'tab_content';
    target_id: TrackingTopTabId;
    result_count: number;
    is_empty: boolean;
}
export interface HomeClickCreateButtonProps {
    page: 'home';
    area: 'create_panel';
    element: 'create_button';
    action: 'create_project';
    source_tab: TrackingSourceTab;
    project_kind: TrackingProjectKind;
    has_project_name: boolean;
}
export interface ProjectCreateResultProps {
    page: 'home';
    area: 'create_panel';
    action_source: 'create_button' | 'import_claude_design_zip' | 'open_folder';
    project_id: string | null;
    project_kind: TrackingProjectKind | null;
    creation_source: 'blank' | 'template' | 'zip' | 'folder';
    fidelity: TrackingFidelity;
    result: TrackingCreateResult;
    error_code?: string;
}
export interface SettingsViewProps {
    page: 'settings';
    area: 'settings_panel';
    element: 'page';
    view_type: 'page';
    active_section: TrackingActiveSection;
    execution_mode: TrackingExecutionMode;
    has_available_cli: boolean;
    selected_cli_id?: TrackingCliProviderId;
}
export interface SettingsClickExecutionModeTabProps {
    page: 'settings';
    area: 'execution_model';
    element: 'execution_mode_tab';
    action: 'switch_execution_mode';
    mode_before: TrackingExecutionMode;
    mode_after: TrackingExecutionMode;
    byok_protocol_after?: 'anthropic' | 'openai';
}
export interface SettingsClickCliProviderCardProps {
    page: 'settings';
    area: 'execution_model';
    element: 'cli_provider_card';
    action: 'select_cli_provider';
    cli_provider_id: TrackingCliProviderId;
    install_status: 'installed' | 'not_installed' | 'unknown';
    is_selected: boolean;
}
export interface SettingsClickByokProviderOptionProps {
    page: 'settings';
    area: 'execution_model';
    element: 'byok_provider_option';
    action: 'select_byok_provider';
    provider_id: 'anthropic' | 'openai' | 'azure' | 'ollama' | 'google';
    is_selected: boolean;
}
export interface SettingsClickByokFieldProps {
    page: 'settings';
    area: 'execution_model';
    element: 'byok_field';
    action: 'focus_byok_field';
    field_id: 'api_key' | 'base_url' | 'model';
    provider_id: 'anthropic' | 'openai' | 'azure' | 'ollama' | 'google';
    has_value: boolean;
}
export interface SettingsCliTestResultProps {
    page: 'settings';
    area: 'execution_model';
    cli_provider_id: TrackingCliProviderId;
    result: 'success' | 'failed' | 'timeout';
    error_code?: string;
    duration_ms: number;
}
export interface SettingsByokTestResultProps {
    page: 'settings';
    area: 'execution_model';
    provider_id: 'anthropic' | 'openai' | 'azure' | 'ollama' | 'google';
    result: 'success' | 'failed' | 'timeout';
    error_code?: string;
    duration_ms: number;
}
export interface StudioViewChatPanelProps {
    page: 'studio';
    area: 'chat_panel';
    element: 'chat_tab';
    view_type: 'panel';
    source: 'create_project' | 'template' | 'open_project';
    conversation_id: string | null;
}
export interface StudioClickChatComposerProps {
    page: 'studio';
    area: 'chat_composer';
    element: 'prompt_template_card' | 'chat_composer_input' | 'composer_settings_button' | 'attachment_button' | 'send_button';
    action: 'click_composer_control';
    user_query_tokens: number;
    has_attachment: boolean;
}
export interface RunCreatedProps {
    page: 'studio';
    area: 'chat_composer';
    project_id: string;
    conversation_id: string | null;
    run_id: string;
    project_kind: TrackingProjectKind | null;
    design_system_id?: string;
    design_system_source: 'default' | 'user_selected' | 'template_inherited' | 'project_saved' | 'not_applicable' | 'unknown';
    design_system_version?: string;
    has_attachment: boolean;
    user_query_tokens: number;
    model_id: string | null;
    agent_provider_id: string | null;
    skill_id: string | null;
    mcp_id: string | null;
    token_count_source: TrackingTokenCountSource;
}
export interface RunFinishedProps extends Omit<RunCreatedProps, 'area'> {
    area: 'chat_panel';
    result: TrackingRunResult;
    error_code?: string;
    artifact_count: number;
    input_tokens?: number;
    output_tokens?: number;
    total_tokens?: number;
    time_to_first_token_ms?: number;
    generation_duration_ms?: number;
    total_duration_ms: number;
}
export interface StudioViewArtifactProps {
    page: 'studio';
    area: 'artifact';
    element: 'artifact_view';
    view_type: 'artifact';
    artifact_id: string;
    artifact_kind: TrackingArtifactKind;
    project_id: string;
    project_kind: TrackingProjectKind;
}
export interface StudioClickShareOptionProps {
    page: 'studio';
    area: 'app_header';
    artifact_id: string;
    element: 'share_option';
    action: 'select_share_option';
    share_context: 'artifact';
    export_format: TrackingExportFormat;
    project_id: string;
    project_kind: TrackingProjectKind;
}
export interface ArtifactExportResultProps {
    page: 'studio';
    area: 'app_header';
    artifact_id: string;
    project_id: string;
    project_kind: TrackingProjectKind;
    export_format: TrackingExportFormat;
    result: TrackingExportResult;
    error_code?: string;
    export_duration_ms: number;
}
export type AnalyticsEventPayload = {
    event: 'app_launch';
    props: AppLaunchProps;
} | {
    event: 'home_view';
    props: HomeViewPageProps | HomeViewAssetPanelProps;
} | {
    event: 'home_click';
    props: HomeClickCreateButtonProps;
} | {
    event: 'project_create_result';
    props: ProjectCreateResultProps;
} | {
    event: 'settings_view';
    props: SettingsViewProps;
} | {
    event: 'settings_click';
    props: SettingsClickExecutionModeTabProps | SettingsClickCliProviderCardProps | SettingsClickByokProviderOptionProps | SettingsClickByokFieldProps;
} | {
    event: 'settings_cli_test_result';
    props: SettingsCliTestResultProps;
} | {
    event: 'settings_byok_test_result';
    props: SettingsByokTestResultProps;
} | {
    event: 'studio_view';
    props: StudioViewChatPanelProps | StudioViewArtifactProps;
} | {
    event: 'studio_click';
    props: StudioClickChatComposerProps | StudioClickShareOptionProps;
} | {
    event: 'run_created';
    props: RunCreatedProps;
} | {
    event: 'run_finished';
    props: RunFinishedProps;
} | {
    event: 'artifact_export_result';
    props: ArtifactExportResultProps;
};
export declare function projectKindToTracking(kind: string | null | undefined): TrackingProjectKind | null;
export declare function createTabToTracking(tab: string): TrackingSourceTab;
export declare function fidelityToTracking(fidelity: string | null | undefined): TrackingFidelity;
export declare function topTabToTracking(tab: string): TrackingTopTabId;
export declare function settingsSectionToTracking(section: string): TrackingActiveSection;
export declare function executionModeToTracking(mode: string | null | undefined): TrackingExecutionMode;
export declare function agentIdToTracking(agentId: string | null | undefined): TrackingCliProviderId;
export declare function artifactKindToTracking(args: {
    rendererId?: string | null;
    fileKind?: string | null;
}): TrackingArtifactKind;
//# sourceMappingURL=events.d.ts.map