import { ScrollTopPassThrough, ScrollTopIconTemplateContext } from 'primeng/types/scrolltop'; export * from 'primeng/types/scrolltop'; import * as i0 from '@angular/core'; import { TemplateRef, QueryList } from '@angular/core'; import { MotionOptions, MotionEvent } from '@primeuix/motion'; import * as i2 from 'primeng/api'; import { PrimeTemplate } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { ButtonProps } from 'primeng/button'; import * as _primeuix_styled from '@primeuix/styled'; import { BaseStyle } from 'primeng/base'; /** * * ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly. * * [Live Demo](https://www.primeng.org/scrolltop/) * * @module scrolltopstyle * */ declare enum ScrollTopClasses { /** * Class name of the root element */ root = "p-scrolltop", /** * Class name of the icon element */ icon = "p-scrolltop-icon" } declare class ScrollTopStyle extends BaseStyle { name: string; style: _primeuix_styled.StyleType; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-scrolltop-sticky': boolean; })[]; icon: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ScrollTopStyle extends BaseStyle { } /** * ScrollTop gets displayed after a certain scroll position and used to navigates to the top of the page quickly. * @group Components */ declare class ScrollTop extends BaseComponent { $pcScrollTop: ScrollTop | undefined; bindDirectiveInstance: Bind; onAfterViewChecked(): void; /** * Class of the element. * @group Props */ styleClass: string | undefined; /** * Inline style of the element. * @group Props */ style: { [klass: string]: any; } | null | undefined; /** * Target of the ScrollTop. * @group Props */ target: 'window' | 'parent' | undefined; /** * Defines the threshold value of the vertical scroll position of the target to toggle the visibility. * @group Props */ threshold: number; /** * Name of the icon or JSX.Element for icon. * @group Props */ get icon(): string | undefined; /** * Defines the scrolling behavior, "smooth" adds an animation and "auto" scrolls with a jump. * @group Props */ behavior: 'auto' | 'smooth' | undefined; /** * A string value used to determine the display transition options. * @group Props * @deprecated since v21.0.0. Use `motionOptions` instead. */ showTransitionOptions: string; /** * A string value used to determine the hiding transition options. * @group Props * @deprecated since v21.0.0. Use `motionOptions` instead. */ hideTransitionOptions: string; /** * The motion options. * @group Props */ motionOptions: i0.InputSignal; computedMotionOptions: i0.Signal; /** * Establishes a string value that labels the scroll-top button. * @group Props */ buttonAriaLabel: string | undefined; /** * Used to pass all properties of the ButtonProps to the Button component. * @group Props */ buttonProps: ButtonProps; /** * Custom icon template. * @param {ScrollTopIconTemplateContext} context - icon context. * @see {@link ScrollTopIconTemplateContext} * @group Templates */ iconTemplate: TemplateRef | undefined; templates: QueryList | undefined; _iconTemplate: TemplateRef | undefined; _icon: string | undefined; set icon(value: string | undefined); documentScrollListener: VoidFunction | null | undefined; parentScrollListener: VoidFunction | null | undefined; visible: i0.WritableSignal; render: i0.WritableSignal; overlay: any; _componentStyle: ScrollTopStyle; onInit(): void; onAfterContentInit(): void; onClick(): void; onBeforeEnter(event: MotionEvent): void; onBeforeLeave(): void; onAfterLeave(): void; checkVisibility(scrollY: number): void; bindParentScrollListener(): void; bindDocumentScrollListener(): void; unbindParentScrollListener(): void; unbindDocumentScrollListener(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_threshold: unknown; } declare class ScrollTopModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ScrollTop, ScrollTopClasses, ScrollTopModule, ScrollTopStyle };