import { ITokeniser } from '../tokeniser/type';
import { default as Model, ModelForwardAttributes } from '../models/model';
import { AdamWOptimizer } from '../training/AdamW';
import { TrainingLogEntry } from '../training/types';
import { GPTConfig } from '../models/config';
export interface SaveOptions {
    name?: string;
    metadata?: Record<string, unknown>;
    files?: Record<string, unknown>;
    includeOptimizer?: boolean;
}
export interface ExtraSaveItems {
    optimizer?: AdamWOptimizer;
    trainingLog?: TrainingLogEntry[];
}
export declare function saveModel(model: Model<ModelForwardAttributes, GPTConfig>, tokeniser: ITokeniser, options?: SaveOptions, extraItems?: ExtraSaveItems): Promise<Blob>;
