import { FileOpenManager } from "./FileOpenManager";
import type { FileOpenResult, FileHandlerInfo } from "@edenapp/types";
/**
 * FileOpenHandler
 *
 * Command endpoints for file opening functionality.
 */
export declare class FileOpenHandler {
    private manager;
    constructor(manager: FileOpenManager);
    /**
     * Open a file with its default handler
     */
    handleOpen(args: {
        path: string;
    }): Promise<FileOpenResult>;
    /**
     * Open a file with a specific app
     */
    handleOpenWith(args: {
        path: string;
        appId: string;
    }): Promise<FileOpenResult>;
    /**
     * Get the default handler app for a file extension
     */
    handleGetHandler(args: {
        extension: string;
    }): Promise<{
        appId: string | undefined;
    }>;
    /**
     * Set user preference for a file extension's default handler
     */
    handleSetDefaultHandler(args: {
        extension: string;
        appId: string;
    }): Promise<void>;
    /**
     * Remove user preference for a file extension (revert to default)
     */
    handleRemoveDefaultHandler(args: {
        extension: string;
    }): Promise<void>;
    /**
     * Get all apps that can handle a specific file extension
     */
    handleGetSupportedHandlers(args: {
        extension: string;
    }): Promise<FileHandlerInfo[]>;
    /**
     * Get all file type associations
     */
    handleGetAssociations(args: Record<string, never>): Promise<Record<string, {
        default: string | undefined;
        userOverride: string | undefined;
    }>>;
}
//# sourceMappingURL=FileOpenHandler.d.ts.map