import { Availability, CreateOptions, ExpectedIO, LanguageModelSession, ModelParams } from './types.js'; /** Prompt API를 못 쓰는 환경에서 던지는 에러. instanceof로 폴백 분기할 때 쓴다. */ export declare class UnavailableError extends Error { constructor(message?: string); } /** Prompt API 전역 존재 여부. 다운로드 여부까지는 보지 않는다. */ export declare function isSupported(): boolean; /** * 모델 사용 가능 상태 조회. * 전역 자체가 없으면 'unavailable'을 돌려주므로 호출부에서 try/catch가 필요 없다. */ export declare function availability(options?: { expectedInputs?: Array; expectedOutputs?: Array; }): Promise; /** 모델 기본 파라미터(topK/temperature 범위). 미지원이면 null. */ export declare function modelParams(): Promise; export interface SessionOptions extends Omit { /** 모델 다운로드 진행률 콜백. 0~1 사이 값이 들어온다. */ onDownloadProgress?: (loaded: number) => void; } /** * 세션 생성. monitor 콜백 배선을 대신 해준다. * 'downloadable' 상태면 이 호출에서 모델 다운로드가 시작되고, 끝날 때까지 resolve되지 않는다. */ export declare function createSession(options?: SessionOptions): Promise;