51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { PaneLayout } from "@/app/carnet/page";
|
|
|
|
declare module "@/components/carnet/navigation" {
|
|
interface NavigationProps {
|
|
onLayoutChange: (layout: PaneLayout) => void;
|
|
}
|
|
export const Navigation: React.FC<NavigationProps>;
|
|
}
|
|
|
|
declare module "@/components/carnet/notes-view" {
|
|
interface Note {
|
|
id: string;
|
|
title: string;
|
|
content: string;
|
|
lastEdited: Date;
|
|
category?: string;
|
|
tags?: string[];
|
|
}
|
|
interface NotesViewProps {
|
|
onNoteSelect: (note: Note) => void;
|
|
}
|
|
export const NotesView: React.FC<NotesViewProps>;
|
|
}
|
|
|
|
declare module "@/components/carnet/editor" {
|
|
interface Note {
|
|
id: string;
|
|
title: string;
|
|
content: string;
|
|
lastEdited: Date;
|
|
}
|
|
interface EditorProps {
|
|
note: Note | null;
|
|
onSave: (note: Note) => void;
|
|
}
|
|
export const Editor: React.FC<EditorProps>;
|
|
}
|
|
|
|
declare module "@/components/carnet/panel-resizer" {
|
|
interface PanelResizerProps {
|
|
isDragging: boolean;
|
|
onDragStart: () => void;
|
|
onDragEnd: () => void;
|
|
onDrag: (e: MouseEvent) => void;
|
|
}
|
|
export const PanelResizer: React.FC<PanelResizerProps>;
|
|
}
|
|
|
|
declare module "@/hooks/use-media-query" {
|
|
export function useMediaQuery(query: string): boolean;
|
|
}
|