@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
38 lines (37 loc) • 1.48 kB
TypeScript
import State from './tools/state/state.js';
import IGirafeContext from './tools/context/icontext.js';
declare global {
interface Document {
geogirafe: {
context: IGirafeContext;
state: State;
};
}
interface Window {
CESIUM_BASE_URL: string;
Cesium: unknown;
cordova: unknown;
gConfirm(message: string, title: string, messageHandler?: (translatedMessage: string) => string): Promise<boolean>;
gAlert(message: string, title?: string): Promise<boolean>;
gInfo(message: string | string[], title: string, messageHandler?: (translatedMessage: string | string[]) => string): Promise<boolean>;
gPrompt(message: string, title?: string, placeholder?: string): Promise<string | false>;
gPromptChoice(message: string, title?: string, choices?: string[]): Promise<string | false>;
gOpenWindow(title: string, url: string, width?: string | number, height?: string | number, top?: string | number, left?: string | number): void;
gCloseModal(): void;
}
interface Navigator {
connection: Connection;
}
}
interface Connection {
type: string;
}
export declare class SplashScreen {
private splash?;
begin(): void;
private setDefaultWaitingText;
end(): void;
}
export declare function redirectTo(page: string): void;
export declare function initializeGeoGirafeCustomStyles(cssOverrides?: Record<string, string>): void;
export {};