UNPKG

812 BTypeScriptView Raw
1export interface StoryData {
2 viewMode?: string;
3 storyId?: string;
4 refId?: string;
5}
6export declare const parsePath: (path: string | undefined) => StoryData;
7interface Args {
8 [key: string]: any;
9}
10export declare const DEEPLY_EQUAL: unique symbol;
11export declare const deepDiff: (value: any, update: any) => any;
12export declare const buildArgsParam: (initialArgs: Args, args: Args) => string;
13interface Query {
14 [key: string]: any;
15}
16export declare const queryFromString: (s: string) => Query;
17export declare const queryFromLocation: (location: {
18 search: string;
19}) => Query;
20export declare const stringifyQuery: (query: Query) => any;
21declare type Match = {
22 path: string;
23};
24export declare const getMatch: (current: string, target: string, startsWith?: any) => Match | null;
25export {};