declare module 'slash2';
declare module '*.css';
declare module '*.less';
declare module '*.scss';
declare module '*.sass';
declare module '*.svg';
declare module '*.png';
declare module '*.jpg';
declare module '*.jpeg';
declare module '*.gif';
declare module '*.bmp';
declare module '*.tiff';

// google analytics interface
interface GAFieldsObject {
    eventCategory: string;
    eventAction: string;
    eventLabel?: string;
    eventValue?: number;
    nonInteraction?: boolean;
}
interface Window {
    ga: (
        command: 'send',
        hitType: 'event' | 'pageview',
        fieldsObject: GAFieldsObject | string,
    ) => void;
    reloadAuthorized: () => void;
}

declare let ga: Function;

// preview.pro.ant.design only do not use in your production ;
// preview.pro.ant.design 专用环境变量，请不要在你的项目中使用它。
declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined;

declare const REACT_APP_ENV: 'test' | 'dev' | 'pre' | false;

declare const BUILD_APP_ENV: 'opensource' | 'openanolis' | false | undefined

declare const self_agent: string

declare const self_agent_name: string

declare const open_agent: string

declare const agentItem : { 
    value: string;
    label: string;
}

declare const agent_list: agentItem[]

declare const logoutUrl: string | undefined
interface FunctionComponent {
    onClick?: any
}
declare module 'react-beautiful-dnd';