27 lines
933 B
TypeScript
27 lines
933 B
TypeScript
export interface DeckMetadata {
|
|
slug: string;
|
|
entry: string;
|
|
directory: string;
|
|
title: string;
|
|
description: string;
|
|
author: string;
|
|
date: string;
|
|
tags: string[];
|
|
cover?: string;
|
|
draft: boolean;
|
|
}
|
|
export interface ValidationIssue {
|
|
level: 'error' | 'warning';
|
|
file: string;
|
|
message: string;
|
|
}
|
|
export declare function discoverDecks(cwd?: string, slidesDir?: string): Promise<DeckMetadata[]>;
|
|
export declare function readDeck(entry: string): Promise<DeckMetadata>;
|
|
export declare function resolveDeck(input: string | undefined, cwd?: string, slidesDir?: string): Promise<DeckMetadata>;
|
|
export declare function validateDeck(deck: DeckMetadata): Promise<ValidationIssue[]>;
|
|
export declare function extractMarkdownImages(markdown: string): {
|
|
source: string;
|
|
attributes: Record<string, string>;
|
|
}[];
|
|
export declare function parseAttributes(input: string): Record<string, string>;
|