UNPKG

scriptable-testlab

Version:

A lightweight, efficient tool designed to manage and update scripts for Scriptable.

57 lines (54 loc) 2.24 kB
import { AbsFont } from 'scriptable-abstract'; declare const FONT_FAMILY: Readonly<{ SFUI: Readonly<Record<string, string>>; MENLO: Readonly<Record<string, string>>; SFUI_ROUNDED: Readonly<Record<string, string>>; }>; declare const FONT_SIZE: Readonly<Record<string, number>>; interface FontState { name?: string; size: number; methodCalls: string[]; } declare class MockFont extends AbsFont<FontState> { constructor(name?: string, size?: number); get asFont(): Font; protected getState(): Readonly<FontState>; private static createSystemFont; static largeTitle(): Font; static title1(): Font; static title2(): Font; static title3(): Font; static headline(): Font; static subheadline(): Font; static body(): Font; static callout(): Font; static footnote(): Font; static caption1(): Font; static caption2(): Font; static systemFont(size: number): Font; static ultraLightSystemFont(size: number): Font; static thinSystemFont(size: number): Font; static lightSystemFont(size: number): Font; static regularSystemFont(size: number): Font; static mediumSystemFont(size: number): Font; static semiboldSystemFont(size: number): Font; static boldSystemFont(size: number): Font; static heavySystemFont(size: number): Font; static blackSystemFont(size: number): Font; static italicSystemFont(size: number): Font; static ultraLightMonospacedSystemFont(size: number): Font; static thinMonospacedSystemFont(size: number): Font; static lightMonospacedSystemFont(size: number): Font; static regularMonospacedSystemFont(size: number): Font; static mediumMonospacedSystemFont(size: number): Font; static semiboldMonospacedSystemFont(size: number): Font; static boldMonospacedSystemFont(size: number): Font; static heavyMonospacedSystemFont(size: number): Font; static blackMonospacedSystemFont(size: number): Font; static ultraLightRoundedSystemFont(size: number): Font; static thinRoundedSystemFont(size: number): Font; static lightRoundedSystemFont(size: number): Font; static regularRoundedSystemFont(size: number): Font; } export { FONT_FAMILY, FONT_SIZE, MockFont };