import type { DopplerCapsule } from "../config/capsule/capsule.js"; import type { GenerationOptions } from '../config/generation-contract.js'; import type { DopplerCapsuleOpenOptions } from './model-host/index.js'; import type { DopplerRunSession } from './runtime/composition-root.js'; import type { ResidentPartitionAllocation, ResidentPartitionSession } from "../inference/pipelines/text/partitions/resident-partition-contract.js"; export function configureDeviceMemoryBudget(options: {maxBytes: number | null}): Promise; export function inspectDeviceMemory(): import('../memory/device-budget.js').DeviceMemorySnapshot | null; export interface ResidentAdapterSelection { identity: string; baseModelIdentity: string; } export interface ResidentPartitionOpenOptions extends Omit { model: { id: string; identity: string; capsule: string | DopplerCapsule; generation: GenerationOptions; adapters?: ResidentAdapterSelection[] }; signal: AbortSignal; } export interface ResidentPartitionFactory { /** The returned session declares recovery separately from readiness and signed model qualification. */ openResidentPartition(options: ResidentPartitionOpenOptions): Promise; } export function createResidentPartitionFactory(options: { openCapsule(capsule: string | DopplerCapsule, options: DopplerCapsuleOpenOptions): Promise; capsuleOptions: DopplerCapsuleOpenOptions; }): ResidentPartitionFactory; /** Pinned RDRR development lane; does not assert signed Capsule qualification. */ export function createManifestResidentPartitionFactory(options: { manifest: import('../formats/rdrr/index.js').RDRRManifest; manifestIdentity: string; runtimeConfig: object; createStorage: (input: Omit & {model: {id:string;identity:string;generation:GenerationOptions;adapters?:ResidentAdapterSelection[]}}) => Promise>; /** Pipeline preparation progress for every opening of this factory; signed openings use Capsule `onLoadProgress`. */ resolveAdapter?: (adapter: ResidentAdapterSelection, controls: {signal: AbortSignal}) => Promise<{manifest: import('./runtime/types.js').LoRAManifest; options?: import('./runtime/lora.js').LoRALoadOptions}>; onLoadProgress?: ((progress: import("../inference/pipelines/text/partitions/resident-partition-contract.js").ResidentPipelinePreparationProgress) => void) | null; }): { openResidentPartition(options: Omit & {model:{id:string;identity:string;generation:GenerationOptions;adapters?:ResidentAdapterSelection[]}}): Promise };