import { Bar, Modal, ResourcePicker } from '../../embedded/easdk';
export interface Options {
    /** The API key for your application from the Partner dashboard */
    apiKey: string;
    /** The current shop’s origin, provided in the session from the Shopify API */
    shopOrigin: string;
    /** Forces a redirect to the relative admin path when not rendered in an iframe */
    forceRedirect?: boolean;
    /**  Metadata for the embedded app */
    metadata?: object;
    /** Prints logs of each message passed through the EASDK */
    debug?: boolean;
}
export interface User {
    name: string;
    accountAccess: 'Account owner' | 'Full access' | 'Limited access';
}
export default class EASDK {
    currentUser?: User;
    Bar: Bar;
    Modal: Modal;
    ResourcePicker: ResourcePicker;
    private messenger;
    constructor({ apiKey, shopOrigin, debug, forceRedirect }: Options, metadata: object);
    startLoading(): void;
    stopLoading(): void;
    showFlashNotice(message: string, options?: {
        error?: boolean;
    }): void;
    pushState(location: string): void;
    redirect(location: string): void;
}
