/** * Speech bubble module. * * Manages the cartoon speech bubble displayed above the pet. Only one bubble * is visible at a time; new bubbles immediately replace existing ones. */ /** * Truncates text to `maxLen` characters, appending "..." when truncated. */ export declare function truncateText(text: string, maxLen?: number): string; /** * Immediately hides the speech bubble. */ export declare function hideBubble(): void; /** * Shows a speech bubble with the given text for the specified duration. * * A new bubble replaces any currently-visible bubble. The bubble fades in * over 200 ms and fades out after `durationMs`. * * @param text Text to display (will be truncated to 60 chars). * @param durationMs How long to keep the bubble visible (default 3000 ms). */ export declare function showBubble(text: string, durationMs?: number): void; /** * Shows an AI-generated speech bubble. These last 8 seconds, longer than * regular event bubbles. */ export declare function showAiBubble(text: string): void; //# sourceMappingURL=bubble.d.ts.map