import { IEventDetail, IEventEmitter } from '@breadstone/mosaik-elements';
import { type IAttachable } from '../../../Behaviors/Attachable';
import { CustomElement } from '../../Abstracts/CustomElement';
/**
 * Represents the `{@link IBackTopElementProps}` interface.
 *
 * @public
 */
export interface IBackTopEvents {
    restored: IEventEmitter<IEventDetail<BackTopElement>>;
}
/**
 * Represents the `{@link IBackTopElementProps}` interface.
 *
 * @public
 */
export interface IBackTopElementProps {
    offset: number;
}
declare const BackTopElement_base: (abstract new (...args: Array<any>) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array<any>) => IAttachable) & typeof CustomElement & import("../../../Behaviors/Themeable").IThemeableCtor;
/**
 * The `{@link BackTopElement}` element.
 *
 * @public
 */
export declare class BackTopElement extends BackTopElement_base implements IBackTopElementProps, IAttachable, IBackTopEvents {
    private readonly _restored;
    private _offset;
    private _visible;
    private _position;
    private _to;
    /**
     * @public
     */
    constructor();
    /**
     * Returns the `{@link is}` property.
     * The `{@link is}` property represents natural name of this element.
     *
     * @public
     * @static
     * @readonly
     */
    static get is(): string;
    /**
     * Gets or sets the `offset` property.
     *
     * @public
     * @attr
     */
    get offset(): number;
    set offset(value: number);
    /**
     * Gets or sets the `to` property.
     *
     * @public
     * @attr
     */
    get to(): 'top' | 'bottom';
    set to(value: 'top' | 'bottom');
    /**
     * Returns the `position` property.
     *
     * @public
     * @readonly
     */
    get position(): number;
    /**
     * Called when <ACTION>.
     * Provides reference to `{@link IEventDetail}` as event detail.
     *
     * @public
     * @readonly
     * @eventProperty
     */
    get restored(): IEventEmitter<IEventDetail<this>>;
    /**
     * Emits the {@link restored} event.
     *
     * @protected
     */
    protected onRestored(args: any): void;
    /**
     * @public
     */
    protected onApplyTemplate(): void;
    /**
     * @public
     */
    onClick(): void;
    /**
     * @private
     */
    private scrollToPostion;
    /**
     * @private
     */
    private getPosition;
    /**
     * Measures the scroll offset relative to the specified edge of the viewport. This method can be
     * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent
     * about what scrollLeft means in RTL. The values returned by this method are normalized such that
     * left and right always refer to the left and right side of the scrolling container irrespective
     * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
     * in an RTL context.
     *
     * @private
     * @param from The edge to measure from.
     */
    private measureScrollOffset;
}
/**
* @public
*/
export declare namespace BackTopElement {
    type Props = IBackTopElementProps;
}
/**
 * @public
 */
declare global {
    interface HTMLElementTagNameMap {
        'mosaik-back-top': BackTopElement;
    }
    interface HTMLElementEventMap {
        restored: CustomEvent<IEventDetail>;
    }
}
export {};
//# sourceMappingURL=BackTopElement.d.ts.map