UNPKG

slimfits

Version:

Package for loading data stored in FITS data format

21 lines (20 loc) 840 B
import { IKeyword } from '../interfaces'; export declare class Keyword implements IKeyword { key: string; value: any; comment: string; static isLastLine(line: string): boolean; constructor(key: string, value?: any, comment?: string); } export declare class KeywordsManager { static single(header: Keyword[], key: string): IKeyword; static getValue<T>(header: Keyword[], key: string, defaultValue: T): T; static hasValue<T>(header: Keyword[], key: string, value: T): boolean; static hasValueFromList<T>(header: Keyword[], key: string, values: T[]): boolean; static convert(value: any): any; static convertBack(value: any, name: string): any; static parseKeyword(line: string): IKeyword; private static getConverterByName; private static isInt; private static getConverterByType; }