import type { AppPaths, LocalEndpointProbe } from "@kenkaiiii/gg-core"; import { type HfSearchRow } from "../hf-pull.js"; import type { HfPullState } from "./session-types.js"; export interface HfPullManager { /** Current/last pull (terminal state kept until the next pull). */ hfPull: HfPullState | null; hfPullPayload: (s: HfPullState) => Record; hfSearch: (query: string) => Promise; startHfPull: (repo: string) => Promise>; cancelHfPull: () => boolean; } /** Per-session Hugging Face → Ollama pull state + Hub search (moved verbatim * out of `createSession`). */ export declare function createHfPullManager(deps: { paths: AppPaths; broadcast: (type: string, data: unknown) => void; broadcastAll: (type: string, data: unknown) => void; scanLocalModels: (force: boolean) => Promise; localStatePayload: () => unknown; }): HfPullManager;