import * as i0 from '@angular/core'; import { OnInit, EventEmitter, AfterViewInit, OnDestroy, ElementRef, OnChanges, SimpleChanges } from '@angular/core'; import { Subject } from 'rxjs'; type NzCursorType = 'window' | 'grid'; type NzResizeDirection = 'top' | 'right' | 'bottom' | 'left' | 'topRight' | 'bottomRight' | 'bottomLeft' | 'topLeft'; declare class NzResizeHandleMouseDownEvent { direction: NzResizeDirection; mouseEvent: MouseEvent | TouchEvent; constructor(direction: NzResizeDirection, mouseEvent: MouseEvent | TouchEvent); } declare class NzResizeHandleComponent implements OnInit { private readonly nzResizableService; private readonly renderer; private readonly el; private readonly destroyRef; nzDirection: NzResizeDirection; nzCursorType: NzCursorType; readonly nzMouseDown: EventEmitter; ngOnInit(): void; onPointerDown(event: PointerEvent): void; onPointerUp(event: PointerEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface NzResizeEvent { width?: number; height?: number; col?: number; mouseEvent?: MouseEvent | TouchEvent; direction?: NzResizeDirection; } declare class NzResizableDirective implements AfterViewInit, OnDestroy { private readonly elementRef; private readonly renderer; private readonly nzResizableService; private readonly platform; private readonly ngZone; private readonly destroyRef; nzBounds: 'window' | 'parent' | ElementRef; nzMaxHeight?: number; nzMaxWidth?: number; nzMinHeight: number; nzMinWidth: number; nzGridColumnCount: number; nzMaxColumn: number; nzMinColumn: number; nzLockAspectRatio: boolean; nzPreview: boolean; nzDisabled: boolean; readonly nzResize: EventEmitter; readonly nzResizeEnd: EventEmitter; readonly nzResizeStart: EventEmitter; resizing: boolean; private elRect; private currentHandleEvent; private ghostElement; private el; private sizeCache; constructor(); setPosition(): void; calcSize(width: number, height: number, ratio: number): NzResizeEvent; resize(event: MouseEvent | TouchEvent): void; endResize(event: MouseEvent | TouchEvent): void; previewResize({ width, height }: NzResizeEvent): void; createGhostElement(): void; removeGhostElement(): void; ngAfterViewInit(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_nzMinHeight: unknown; static ngAcceptInputType_nzMinWidth: unknown; static ngAcceptInputType_nzGridColumnCount: unknown; static ngAcceptInputType_nzMaxColumn: unknown; static ngAcceptInputType_nzMinColumn: unknown; static ngAcceptInputType_nzLockAspectRatio: unknown; static ngAcceptInputType_nzPreview: unknown; static ngAcceptInputType_nzDisabled: unknown; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare const DEFAULT_RESIZE_DIRECTION: NzResizeDirection[]; interface NzResizeHandleOption { direction: NzResizeDirection; cursorType: NzCursorType; } declare class NzResizeHandlesComponent implements OnChanges { nzDirections: Array; resizeHandleOptions: NzResizeHandleOption[]; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NzResizableModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare class NzResizableService implements OnDestroy { private readonly document; private readonly ngZone; private listeners; /** * The `OutsideAngular` prefix means that the subject will emit events outside of the Angular zone, * so that becomes a bit more descriptive for those who'll maintain the code in the future: * ```ts * nzResizableService.handleMouseDownOutsideAngular$.subscribe(event => { * console.log(Zone.current); // * console.log(NgZone.isInAngularZone()); // false * }); * ``` */ handleMouseDownOutsideAngular$: Subject; documentMouseUpOutsideAngular$: Subject; documentMouseMoveOutsideAngular$: Subject; mouseEnteredOutsideAngular$: Subject; startResizing(event: MouseEvent | TouchEvent): void; private clearListeners; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ declare function getEventWithPoint(event: MouseEvent | TouchEvent): MouseEvent | Touch; export { DEFAULT_RESIZE_DIRECTION, NzResizableDirective, NzResizableModule, NzResizableService, NzResizeHandleComponent, NzResizeHandleMouseDownEvent, NzResizeHandlesComponent, getEventWithPoint }; export type { NzCursorType, NzResizeDirection, NzResizeEvent, NzResizeHandleOption };