///
///
import { ExerciseSet, Options } from './exercises.math';
/**
*
* Serializer API
*
*/
export interface SerializerOptions {
}
export interface PageOptions extends SerializerOptions {
pageLabel?: string;
pageLocale?: string;
pageDatum?: string;
pageDimension?: number[];
pageFont?: FontOptions;
}
export interface FontOptions {
src: string;
family: string;
size: number;
}
export declare const default_pdfkit_fontsrc = "Courier-Bold";
export declare const default_fontfamily = "Courier";
export declare const default_fontsize = 16;
export declare const default_pageDim: number[];
export declare function preparePageOptions(pageOptions?: PageOptions): PageOptions;
export declare function extractExerciseTypes(types: string): Options[];
export declare function asPDF(sets: ExerciseSet[], pageOptions: PageOptions, targetStream: T): void;
/**
*
* Instruction API
*
*/
export declare type InstructionType = 'textAt' | 'lineAtTo' | 'rectangleAtTo' | 'unknown';
export interface Instruction {
type: InstructionType;
text?: string;
x_1?: number;
y_1?: number;
x_2?: number;
y_2?: number;
w?: number;
h?: number;
lineWidth?: number;
color?: string;
args?: string;
}
export declare const makeInstruction: (t: InstructionType, ...args: any[]) => Instruction;
export declare const applyInstructions: (doc: PDFKit.PDFDocument, instructions: Instruction[]) => void;