UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

35 lines (34 loc) 1.78 kB
import { TLicenseContext } from "../../types/LicenseContext"; import { ILicenseInfo } from "../../types/licensingClasses"; import { SciChartSurfaceBase } from "./SciChartSurfaceBase"; export declare type TLicenseDependencies = { fetchFromWizard: (url: string) => Promise<Response>; setCookie: (name: string, val: string, validDays: number) => void; getCookie: (name: string) => string; fetchForChallenge: (url: string) => Promise<Response>; debug: (message: string) => void; }; export declare const setDependencies: (dependencies: TLicenseDependencies) => TLicenseDependencies; export declare const setIsDebugLicensing: (value: boolean, persist?: boolean) => void; export declare const setLicenseCallback: (callback: (queryString: string) => Promise<Response>) => void; export declare const setRuntimeLicenseKey: (value: string) => void; export declare const setUseLicenseWizard: (value: boolean) => void; interface ILicenseCookie { key: string; token: string; expiry: Date; lastValidated: Date; } export declare const getLicenseCookie: () => ILicenseCookie; export declare const applyLicense: (licenseContext: TLicenseContext, source: string) => void; export declare const getLicenseInfo: (licenseContext: TLicenseContext) => ILicenseInfo; export declare const licenseManager: { clear: () => void; setRuntimeLicenseKey: (value: string) => void; setIsDebugLicensing: (value: boolean) => void; setLicenseCallback: (callback: (queryString: string) => Promise<Response>) => void; setServerLicenseEndpoint: (value: string) => void; applyLicense: (licenseContext: TLicenseContext, source: string) => void; updateLicenseDisplay: (sciChartSurface: SciChartSurfaceBase) => void; }; export {};