import { EventEmitter } from "./stencil-public-runtime"; export type SwirlDialogToggleEvent = { newState: "open" | "closed"; dialog: HTMLDialogElement; }; export interface SwirlFormInput { disabled?: boolean; invalid?: boolean; placeholder?: string; swirlAriaDescribedby?: string; required?: boolean; value?: ValueType; valueChange: EventEmitter; } export declare function closestPassShadow(node: any, selector: any): HTMLElement; export declare function isDescendantOf(element: Element, potentialParent: Element): boolean; export declare function getActiveElement(root?: Document | ShadowRoot): Element | undefined; export declare const getDesktopMediaQuery: () => MediaQueryList; export declare function debounce(func: Function, wait: number, immediate?: boolean): any; export declare function fullscreenStoryDecorator(padded?: boolean): (story: any) => HTMLDivElement; export declare function addAttributesToElement(element: HTMLElement, args: { [arg: string]: any; }): void; export declare function generateStoryElement(tag: string, args: { [arg: string]: any; }, content?: string): HTMLElement; export declare function getVisibleHeight(element: HTMLElement, container: HTMLElement): number; export declare function isMobileViewport(): boolean; export declare function isDesktopViewport(): boolean; export declare function prefersReducedMotion(): boolean; export declare function parentsPassShadow(node: any, selector: any, matches?: any[]): any[]; export declare function querySelectorAllDeep(root: HTMLElement, selector: string): TargetType[]; export declare function removeTimezoneOffset(date: Date): Date; export declare function getISODateString(date: Date): string; /** * Adjusts the index to fit inside the length of the array, going in a circular fashion. * Index of 5 in a list of length = 5 becomes 0 (first item). * Index of -1 in a list of length = 5 becomes 4 (last item). * * This function is needed due to a known Javascript issue with the modulo operator. * https://stackoverflow.com/questions/4467539/javascript-modulo-gives-a-negative-result-for-negative-numbers * * @param index - The next desired index * @param arrayLength - The length of the array * @returns The adjusted index */ export declare function getCircularArrayIndex(index: number, arrayLength: number): number; export declare function isSupportedImageMimeType(mimeType: string): boolean; export declare function isVideoMimeType(mimeType: string): boolean; export declare function isAudioMimeType(mimeType: string): boolean; export declare function isPdfMimeType(mimeType: string): boolean; export declare function isCompressedArchiveMimeType(mimeType: string): boolean; export declare function isDocumentMimeType(mimeType: string): boolean; export declare function getPixelsFromRemToken(token: string): number;