import type { WorkspaceFileLister } from "../workspace/WorkspaceFileLister.js";
/**
 * Creates a {@link WorkspaceFileLister} backed by the GitHub Trees API.
 *
 * Uses the existing client-side OAuth token (same one that powers
 * `GitHubRepoPicker`) to call `GET /repos/{owner}/{repo}/git/trees/{branch}?recursive=1`.
 *
 * Returns `null` for:
 * - Non-git workspace entries
 * - Missing or empty token
 * - Non-GitHub git URLs
 * - Failed API responses (graceful degradation)
 *
 * @example
 * ```tsx
 * const gitHubConnection = useGitHubConnection(org);
 * const fileLister = useGitHubTreeLister(gitHubConnection.token);
 *
 * <SessionViewer workspaceFileLister={fileLister} />
 * ```
 */
export declare function useGitHubTreeLister(token: string | null): WorkspaceFileLister | undefined;
//# sourceMappingURL=useGitHubTreeLister.d.ts.map