import { createRemoteFooterComponent } from "../../interactive/remote-footer-adapter.js";
export class ForkedFooterComponent {
    adapter = createRemoteFooterComponent();
    setView(view) {
        const session = this.adapter.session.setView(view);
        const providers = new Set((view.session?.availableModels ?? []).map((model) => model.provider));
        this.adapter.footerData.setCwd(view.footer.cwd);
        this.adapter.footerData.setAvailableProviderCount(providers.size);
        this.adapter.footer.setAutoCompactEnabled(view.session?.autoCompactionEnabled ?? true);
        this.adapter.footer.setSession(session);
    }
    invalidate() {
        this.adapter.footer.invalidate();
    }
    render(width) {
        return this.adapter.footer.render(width);
    }
}
//# sourceMappingURL=footer.js.map